Changeset 318
- Timestamp:
- 05/08/09 10:47:27 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/c/ModelProcessorx/DiagnosticHutter/CreateElementsNodesAndMaterialsDiagnosticHutter.cpp
r313 r318 208 208 beam_id=i+1; 209 209 beam_mid=i+1; //refers to the corresponding material property card 210 beam_mparid=model->numberofnodes +1;//refers to the corresponding matpar property card210 beam_mparid=model->numberofnodes-model->numberofnodes2d+1;//refers to the corresponding matpar property card 211 211 beam_g[0]=i+1; 212 212 beam_g[1]=(int)model->uppernodes[i]; //grid that lays right on top … … 262 262 263 263 /*Add one constant material property to materials: */ 264 matpar_mid=model->numberofnodes +1; //put it at the end of the materials264 matpar_mid=model->numberofnodes-model->numberofnodes2d+1; //put it at the end of the materials 265 265 matpar_g=model->g; 266 266 matpar_rho_ice=model->rho_ice; … … 274 274 matpar_thermal_exchange_velocity=model->thermal_exchange_velocity; 275 275 276 /*Create matpar object using its constructor: */ 277 matpar=new Matpar(matpar_mid,matpar_rho_ice,matpar_rho_water,matpar_heatcapacity,matpar_thermalconductivity, 278 matpar_latentheat,matpar_beta,matpar_meltingpoint,matpar_mixed_layer_capacity, 279 matpar_thermal_exchange_velocity,matpar_g); 280 281 /*Add to materials datset: */ 282 materials->AddObject(matpar); 276 283 277 284 /*Create nodes from x,y,z, as well as the spc values on those grids: */
Note:
See TracChangeset
for help on using the changeset viewer.