Ignore:
Timestamp:
06/25/09 17:42:16 (16 years ago)
Author:
Eric.Larour
Message:

Transformed some Tria and Penta fields in booleans

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/c/ModelProcessorx/SlopeCompute/CreateElementsNodesAndMaterialsSlopeCompute.cpp

    r1036 r1104  
    6767        double tria_viscosity_overshoot;
    6868        int    tria_artdiff;
     69        bool   tria_onwater;
    6970
    7071        /*penta constructor input: */
     
    201202                ModelFetchData((void**)&model->elements,NULL,NULL,model_handle,"elements","Matrix","Mat");
    202203                ModelFetchData((void**)&model->surface,NULL,NULL,model_handle,"surface","Matrix","Mat");
     204                ModelFetchData((void**)&model->elementonwater,NULL,NULL,model_handle,"elementonwater","Matrix","Mat");
    203205                ModelFetchData((void**)&model->bed,NULL,NULL,model_handle,"bed","Matrix","Mat");
    204206               
     
    229231                        tria_b[1]=*(model->bed+        ((int)*(model->elements+elements_width*i+1)-1));
    230232                        tria_b[2]=*(model->bed+        ((int)*(model->elements+elements_width*i+2)-1));
     233                       
     234                        /*element on water? : */
     235                        tria_onwater=(bool)*(model->elementonwater+i);
    231236
    232237                        /*Create tria element using its constructor:*/
    233                         tria=new Tria(tria_id, tria_mid, tria_mparid, tria_g, tria_h, tria_s, tria_b, tria_k, tria_melting,tria_accumulation,tria_geothermalflux,tria_friction_type, tria_p, tria_q, tria_shelf, tria_meanvel, tria_epsvel, tria_viscosity_overshoot,tria_artdiff);
     238                        tria=new Tria(tria_id, tria_mid, tria_mparid, tria_g, tria_h, tria_s, tria_b, tria_k, tria_melting,tria_accumulation,tria_geothermalflux,tria_friction_type, tria_p, tria_q, tria_shelf, tria_meanvel, tria_epsvel, tria_viscosity_overshoot,tria_artdiff,tria_onwater);
    234239
    235240                        /*Add tria element to elements dataset: */
     
    294299                                        penta_p,penta_q,penta_shelf,penta_onbed,penta_onsurface,penta_meanvel,penta_epsvel,
    295300                                        penta_collapse,penta_melting,penta_accumulation,penta_geothermalflux,penta_artdiff,
    296                                         penta_thermal_steadystate,penta_viscosity_overshoot,penta_stokesreconditioning);
     301                                        penta_thermal_steadystate,penta_viscosity_overshoot,penta_stokesreconditioning,0);
    297302
    298303                        /*Add penta element to elements dataset: */
Note: See TracChangeset for help on using the changeset viewer.