Ignore:
Timestamp:
08/12/11 18:07:26 (14 years ago)
Author:
Eric.Larour
Message:

Propping up IoModel class, to contain the iomodel handlle. This simplifies IoModelFetchDAta,
which then becomes the FetchData method of the IoModel class.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/c/modules/ModelProcessorx/Qmu/CreateParametersQmu.cpp

    r8967 r9340  
    1313#include "../ModelProcessorx.h"
    1414
    15 void CreateParametersQmu(Parameters** pparameters,IoModel* iomodel,FILE* iomodel_handle,int solution_type,int analysis_type){
     15void CreateParametersQmu(Parameters** pparameters,IoModel* iomodel,int solution_type,int analysis_type){
    1616
    1717        /*variable declarations: {{{1*/
     
    7575                /*}}}*/
    7676                /*Fetch variable descriptors: {{{1*/
    77                 IoModelFetchData(&variabledescriptors,&numvariabledescriptors,iomodel_handle,VariabledescriptorsEnum);
     77                iomodel->FetchData(&variabledescriptors,&numvariabledescriptors,VariabledescriptorsEnum);
    7878
    7979                /*Ok, we have all the variable descriptors. Build a parameter with it: */
     
    8282                /*}}}*/
    8383                /*Fetch response descriptors: {{{1*/
    84                 IoModelFetchData(&responsedescriptors,&numresponsedescriptors,iomodel_handle,ResponsedescriptorsEnum);
     84                iomodel->FetchData(&responsedescriptors,&numresponsedescriptors,ResponsedescriptorsEnum);
    8585
    8686                /*Ok, we have all the response descriptors. Build a parameter with it: */
     
    9292                parameters->AddObject(new    IntParam(QmuNPartEnum,iomodel->qmu_npart));
    9393               
    94                 IoModelFetchData(&dpart,NULL,NULL,iomodel_handle,PartEnum);
     94                iomodel->FetchData(&dpart,NULL,NULL,PartEnum);
    9595
    9696                if(!dpart){
    9797
    9898                        /*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);
    100100
    101101                        dpart=(double*)xmalloc(iomodel->numberofvertices*sizeof(double));
     
    113113                               
    114114                                /*Recover data: */
    115                                 IoModelFetchData(&dakota_parameter,NULL,NULL,iomodel_handle,StringToEnumx(tag));
     115                                iomodel->FetchData(&dakota_parameter,NULL,NULL,StringToEnumx(tag));
    116116
    117117                                /*Convert units: */
     
    138138                       
    139139                        /*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);
    141141                        if(qmu_mass_flux_num_profiles==0)_error_(" qmu_mass_flux_num_profiles is 0, when MassFlux computations were requested!");
    142142
Note: See TracChangeset for help on using the changeset viewer.