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/DiagnosticHoriz/CreateElementsNodesAndMaterialsDiagnosticHoriz.cpp

    r1025 r1104  
    7171        double tria_viscosity_overshoot;
    7272        int    tria_artdiff;
     73        bool   tria_onwater;
    7374       
    7475        /*matice constructor input: */
     
    231232                ModelFetchData((void**)&model->q,NULL,NULL,model_handle,"q","Matrix","Mat");
    232233                ModelFetchData((void**)&model->elementoniceshelf,NULL,NULL,model_handle,"elementoniceshelf","Matrix","Mat");
     234                ModelFetchData((void**)&model->elementonwater,NULL,NULL,model_handle,"elementonwater","Matrix","Mat");
    233235                ModelFetchData((void**)&model->elements_type,NULL,NULL,model_handle,"elements_type","Matrix","Mat");
    234236                ModelFetchData((void**)&model->B,NULL,NULL,model_handle,"B","Matrix","Mat");
     
    288290                                tria_accumulation[2]=*(model->accumulation+        ((int)*(model->elements+elements_width*i+2)-1));
    289291
    290                                 /*element on iceshelf?:*/
     292                                /*element on iceshelf, water?:*/
    291293                                tria_shelf=(int)*(model->elementoniceshelf+i);
     294                                tria_onwater=(bool)*(model->elementonwater+i);
    292295
    293296                                tria_meanvel=model->meanvel;
     
    298301
    299302                                /*Create tria element using its constructor:*/
    300                                 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);
     303                                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);
    301304
    302305                                /*Add tria element to elements dataset: */
     
    349352                xfree((void**)&model->q);
    350353                xfree((void**)&model->elementoniceshelf);
     354                xfree((void**)&model->elementonwater);
    351355                xfree((void**)&model->B);
    352356                xfree((void**)&model->n);
     
    425429                                                penta_p,penta_q,penta_shelf,penta_onbed,penta_onsurface,penta_meanvel,penta_epsvel,
    426430                                                penta_collapse,penta_melting,penta_accumulation,penta_geothermalflux,penta_artdiff,
    427                                                 penta_thermal_steadystate,penta_viscosity_overshoot,penta_stokesreconditioning);
     431                                                penta_thermal_steadystate,penta_viscosity_overshoot,penta_stokesreconditioning,0);
    428432
    429433                                /*Add penta element to elements dataset: */
Note: See TracChangeset for help on using the changeset viewer.