Changeset 1310 for issm/trunk/src/c/ModelProcessorx/Thermal/CreateElementsNodesAndMaterialsThermal.cpp
- Timestamp:
- 07/14/09 14:56:05 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/c/ModelProcessorx/Thermal/CreateElementsNodesAndMaterialsThermal.cpp
r1104 r1310 82 82 double penta_viscosity_overshoot; 83 83 double penta_stokesreconditioning; 84 bool penta_onwater; 84 85 85 86 /*matpar constructor input: */ … … 197 198 ModelFetchData((void**)&model->B,NULL,NULL,model_handle,"B","Matrix","Mat"); 198 199 ModelFetchData((void**)&model->n,NULL,NULL,model_handle,"n","Matrix","Mat"); 200 ModelFetchData((void**)&model->elementonwater,NULL,NULL,model_handle,"elementonwater","Matrix","Mat"); 199 201 200 202 for (i=0;i<model->numberofelements;i++){ … … 232 234 penta_meanvel=model->meanvel; 233 235 penta_epsvel=model->epsvel; 236 penta_onwater=(bool)*(model->elementonwater+i); 234 237 235 238 /*We need the field collapse for transient, so that we can use compute B with the average temperature*/ … … 246 249 penta_p,penta_q,penta_shelf,penta_onbed,penta_onsurface,penta_meanvel,penta_epsvel, 247 250 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); 249 252 250 253 /*Add penta element to elements dataset: */ … … 303 306 xfree((void**)&model->n); 304 307 xfree((void**)&model->B); 308 xfree((void**)&model->elementonwater); 305 309 306 310 /*Add one constant material property to materials: */
Note:
See TracChangeset
for help on using the changeset viewer.