Ignore:
Timestamp:
07/14/09 14:56:05 (16 years ago)
Author:
Eric.Larour
Message:

Updated model processors to take elementonwater into account

File:
1 edited

Legend:

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

    r1104 r1310  
    8282        double penta_viscosity_overshoot;
    8383        double penta_stokesreconditioning;
     84        bool   penta_onwater;
    8485
    8586        /*matpar constructor input: */
     
    197198        ModelFetchData((void**)&model->B,NULL,NULL,model_handle,"B","Matrix","Mat");
    198199        ModelFetchData((void**)&model->n,NULL,NULL,model_handle,"n","Matrix","Mat");
     200        ModelFetchData((void**)&model->elementonwater,NULL,NULL,model_handle,"elementonwater","Matrix","Mat");
    199201       
    200202        for (i=0;i<model->numberofelements;i++){
     
    232234                penta_meanvel=model->meanvel;
    233235                penta_epsvel=model->epsvel;
     236                penta_onwater=(bool)*(model->elementonwater+i);
    234237
    235238                /*We need the field collapse for transient, so that we can use compute B with the average temperature*/
     
    246249                                penta_p,penta_q,penta_shelf,penta_onbed,penta_onsurface,penta_meanvel,penta_epsvel,
    247250                                penta_collapse,penta_melting,penta_accumulation,penta_geothermalflux,penta_artdiff,
    248                                 penta_thermal_steadystate,penta_viscosity_overshoot,penta_stokesreconditioning,0);
     251                                penta_thermal_steadystate,penta_viscosity_overshoot,penta_stokesreconditioning,penta_onwater);
    249252
    250253                /*Add penta element to elements dataset: */
     
    303306        xfree((void**)&model->n);
    304307        xfree((void**)&model->B);
     308        xfree((void**)&model->elementonwater);
    305309
    306310        /*Add one constant material property to materials: */
Note: See TracChangeset for help on using the changeset viewer.