Ignore:
Timestamp:
07/12/11 16:28:11 (14 years ago)
Author:
Eric.Larour
Message:

marshall.m is now automatically feedding off of model template for each field.
this necessitated a rewrite of the ModelProcessorx, so that instead of processing
strings, it processes now enums.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/c/modules/ModelProcessorx/Thermal/UpdateElementsThermal.cpp

    r8330 r8926  
    2424
    2525        /*Fetch data needed: */
    26         IoModelFetchData(&iomodel->elements,NULL,NULL,iomodel_handle,"elements");
    27         IoModelFetchData(&iomodel->thickness,NULL,NULL,iomodel_handle,"thickness");
    28         IoModelFetchData(&iomodel->surface,NULL,NULL,iomodel_handle,"surface");
    29         IoModelFetchData(&iomodel->bed,NULL,NULL,iomodel_handle,"bed");
    30         IoModelFetchData(&iomodel->drag_coefficient,NULL,NULL,iomodel_handle,"drag_coefficient");
    31         IoModelFetchData(&iomodel->drag_p,NULL,NULL,iomodel_handle,"drag_p");
    32         IoModelFetchData(&iomodel->drag_q,NULL,NULL,iomodel_handle,"drag_q");
    33         IoModelFetchData(&iomodel->elementoniceshelf,NULL,NULL,iomodel_handle,"elementoniceshelf");
    34         IoModelFetchData(&iomodel->elementonbed,NULL,NULL,iomodel_handle,"elementonbed");
    35         IoModelFetchData(&iomodel->elementonsurface,NULL,NULL,iomodel_handle,"elementonsurface");
    36         IoModelFetchData(&iomodel->elementonwater,NULL,NULL,iomodel_handle,"elementonwater");
    37         IoModelFetchData(&iomodel->elements_type,NULL,NULL,iomodel_handle,"elements_type");
    38         IoModelFetchData(&iomodel->rheology_B,NULL,NULL,iomodel_handle,"rheology_B");
    39         IoModelFetchData(&iomodel->rheology_n,NULL,NULL,iomodel_handle,"rheology_n");
    40         IoModelFetchData(&iomodel->pressure,NULL,NULL,iomodel_handle,"pressure");
    41         IoModelFetchData(&iomodel->temperature,NULL,NULL,iomodel_handle,"temperature");
    42         IoModelFetchData(&iomodel->geothermalflux,NULL,NULL,iomodel_handle,"geothermalflux");
    43         IoModelFetchData(&iomodel->vx,NULL,NULL,iomodel_handle,"vx");
    44         IoModelFetchData(&iomodel->vy,NULL,NULL,iomodel_handle,"vy");
    45         IoModelFetchData(&iomodel->vz,NULL,NULL,iomodel_handle,"vz");
     26        IoModelFetchData(&iomodel->elements,NULL,NULL,iomodel_handle,ElementsEnum);
     27        IoModelFetchData(&iomodel->thickness,NULL,NULL,iomodel_handle,ThicknessEnum);
     28        IoModelFetchData(&iomodel->surface,NULL,NULL,iomodel_handle,SurfaceEnum);
     29        IoModelFetchData(&iomodel->bed,NULL,NULL,iomodel_handle,BedEnum);
     30        IoModelFetchData(&iomodel->drag_coefficient,NULL,NULL,iomodel_handle,DragCoefficientEnum);
     31        IoModelFetchData(&iomodel->drag_p,NULL,NULL,iomodel_handle,DragPEnum);
     32        IoModelFetchData(&iomodel->drag_q,NULL,NULL,iomodel_handle,DragQEnum);
     33        IoModelFetchData(&iomodel->elementoniceshelf,NULL,NULL,iomodel_handle,ElementOnIceShelfEnum);
     34        IoModelFetchData(&iomodel->elementonbed,NULL,NULL,iomodel_handle,ElementOnBedEnum);
     35        IoModelFetchData(&iomodel->elementonsurface,NULL,NULL,iomodel_handle,ElementOnSurfaceEnum);
     36        IoModelFetchData(&iomodel->elementonwater,NULL,NULL,iomodel_handle,ElementOnWaterEnum);
     37        IoModelFetchData(&iomodel->elements_type,NULL,NULL,iomodel_handle,ElementsTypeEnum);
     38        IoModelFetchData(&iomodel->rheology_B,NULL,NULL,iomodel_handle,RheologyBEnum);
     39        IoModelFetchData(&iomodel->rheology_n,NULL,NULL,iomodel_handle,RheologyNEnum);
     40        IoModelFetchData(&iomodel->pressure,NULL,NULL,iomodel_handle,PressureEnum);
     41        IoModelFetchData(&iomodel->temperature,NULL,NULL,iomodel_handle,TemperatureEnum);
     42        IoModelFetchData(&iomodel->geothermalflux,NULL,NULL,iomodel_handle,GeothermalfluxEnum);
     43        IoModelFetchData(&iomodel->vx,NULL,NULL,iomodel_handle,VxEnum);
     44        IoModelFetchData(&iomodel->vy,NULL,NULL,iomodel_handle,VyEnum);
     45        IoModelFetchData(&iomodel->vz,NULL,NULL,iomodel_handle,VzEnum);
    4646
    4747        /*Update elements: */
Note: See TracChangeset for help on using the changeset viewer.