- Timestamp:
- 08/12/11 18:07:26 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/c/modules/ModelProcessorx/Qmu/CreateParametersQmu.cpp
r8967 r9340 13 13 #include "../ModelProcessorx.h" 14 14 15 void CreateParametersQmu(Parameters** pparameters,IoModel* iomodel, FILE* iomodel_handle,int solution_type,int analysis_type){15 void CreateParametersQmu(Parameters** pparameters,IoModel* iomodel,int solution_type,int analysis_type){ 16 16 17 17 /*variable declarations: {{{1*/ … … 75 75 /*}}}*/ 76 76 /*Fetch variable descriptors: {{{1*/ 77 IoModelFetchData(&variabledescriptors,&numvariabledescriptors,iomodel_handle,VariabledescriptorsEnum);77 iomodel->FetchData(&variabledescriptors,&numvariabledescriptors,VariabledescriptorsEnum); 78 78 79 79 /*Ok, we have all the variable descriptors. Build a parameter with it: */ … … 82 82 /*}}}*/ 83 83 /*Fetch response descriptors: {{{1*/ 84 IoModelFetchData(&responsedescriptors,&numresponsedescriptors,iomodel_handle,ResponsedescriptorsEnum);84 iomodel->FetchData(&responsedescriptors,&numresponsedescriptors,ResponsedescriptorsEnum); 85 85 86 86 /*Ok, we have all the response descriptors. Build a parameter with it: */ … … 92 92 parameters->AddObject(new IntParam(QmuNPartEnum,iomodel->qmu_npart)); 93 93 94 IoModelFetchData(&dpart,NULL,NULL,iomodel_handle,PartEnum);94 iomodel->FetchData(&dpart,NULL,NULL,PartEnum); 95 95 96 96 if(!dpart){ 97 97 98 98 /*Partition elements and vertices and nodes: */ 99 ElementsAndVerticesPartitioning(&iomodel->my_elements,&iomodel->my_vertices,iomodel ,iomodel_handle);99 ElementsAndVerticesPartitioning(&iomodel->my_elements,&iomodel->my_vertices,iomodel); 100 100 101 101 dpart=(double*)xmalloc(iomodel->numberofvertices*sizeof(double)); … … 113 113 114 114 /*Recover data: */ 115 IoModelFetchData(&dakota_parameter,NULL,NULL,iomodel_handle,StringToEnumx(tag));115 iomodel->FetchData(&dakota_parameter,NULL,NULL,StringToEnumx(tag)); 116 116 117 117 /*Convert units: */ … … 138 138 139 139 /*Fetch the mass flux segments necessary to compute the mass fluxes. Build a DoubleMatArrayParam object out of them: */ 140 IoModelFetchData(&array,&mdims_array,&ndims_array,&qmu_mass_flux_num_profiles,iomodel_handle,QmuMassFluxSegmentsEnum);140 iomodel->FetchData(&array,&mdims_array,&ndims_array,&qmu_mass_flux_num_profiles,QmuMassFluxSegmentsEnum); 141 141 if(qmu_mass_flux_num_profiles==0)_error_(" qmu_mass_flux_num_profiles is 0, when MassFlux computations were requested!"); 142 142
Note:
See TracChangeset
for help on using the changeset viewer.