Changeset 1104 for issm/trunk/src/c/ModelProcessorx/DiagnosticHoriz/CreateElementsNodesAndMaterialsDiagnosticHoriz.cpp
- Timestamp:
- 06/25/09 17:42:16 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/c/ModelProcessorx/DiagnosticHoriz/CreateElementsNodesAndMaterialsDiagnosticHoriz.cpp
r1025 r1104 71 71 double tria_viscosity_overshoot; 72 72 int tria_artdiff; 73 bool tria_onwater; 73 74 74 75 /*matice constructor input: */ … … 231 232 ModelFetchData((void**)&model->q,NULL,NULL,model_handle,"q","Matrix","Mat"); 232 233 ModelFetchData((void**)&model->elementoniceshelf,NULL,NULL,model_handle,"elementoniceshelf","Matrix","Mat"); 234 ModelFetchData((void**)&model->elementonwater,NULL,NULL,model_handle,"elementonwater","Matrix","Mat"); 233 235 ModelFetchData((void**)&model->elements_type,NULL,NULL,model_handle,"elements_type","Matrix","Mat"); 234 236 ModelFetchData((void**)&model->B,NULL,NULL,model_handle,"B","Matrix","Mat"); … … 288 290 tria_accumulation[2]=*(model->accumulation+ ((int)*(model->elements+elements_width*i+2)-1)); 289 291 290 /*element on iceshelf ?:*/292 /*element on iceshelf, water?:*/ 291 293 tria_shelf=(int)*(model->elementoniceshelf+i); 294 tria_onwater=(bool)*(model->elementonwater+i); 292 295 293 296 tria_meanvel=model->meanvel; … … 298 301 299 302 /*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); 301 304 302 305 /*Add tria element to elements dataset: */ … … 349 352 xfree((void**)&model->q); 350 353 xfree((void**)&model->elementoniceshelf); 354 xfree((void**)&model->elementonwater); 351 355 xfree((void**)&model->B); 352 356 xfree((void**)&model->n); … … 425 429 penta_p,penta_q,penta_shelf,penta_onbed,penta_onsurface,penta_meanvel,penta_epsvel, 426 430 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); 428 432 429 433 /*Add penta element to elements dataset: */
Note:
See TracChangeset
for help on using the changeset viewer.