Changeset 176
- Timestamp:
- 05/01/09 14:54:07 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/c/ModelProcessorx/DiagnosticHoriz/CreateElementsNodesAndMaterialsDiagnosticHoriz.cpp
r128 r176 228 228 ModelFetchData((void**)&model->B,NULL,NULL,model_handle,"B","Matrix","Mat"); 229 229 ModelFetchData((void**)&model->n,NULL,NULL,model_handle,"n","Matrix","Mat"); 230 ModelFetchData((void**)&model->accumulation,NULL,NULL,model_handle,"accumulation","Matrix","Mat"); 231 ModelFetchData((void**)&model->melting,NULL,NULL,model_handle,"melting","Matrix","Mat"); 230 232 231 233 for (i=0;i<model->numberofelements;i++){ … … 269 271 tria_p=model->p[i]; 270 272 tria_q=model->q[i]; 273 274 /*meling and accumulation*/ 275 tria_melting[0]=*(model->melting+ ((int)*(model->elements+elements_width*i+0)-1)); 276 tria_melting[1]=*(model->melting+ ((int)*(model->elements+elements_width*i+1)-1)); 277 tria_melting[2]=*(model->melting+ ((int)*(model->elements+elements_width*i+2)-1)); 278 279 tria_accumulation[0]=*(model->accumulation+ ((int)*(model->elements+elements_width*i+0)-1)); 280 tria_accumulation[1]=*(model->accumulation+ ((int)*(model->elements+elements_width*i+1)-1)); 281 tria_accumulation[2]=*(model->accumulation+ ((int)*(model->elements+elements_width*i+2)-1)); 271 282 272 283 /*element on iceshelf?:*/ … … 368 379 penta_b[j]=*(model->bed+ ((int)*(model->elements+elements_width*i+j)-1)); 369 380 penta_k[j]=*(model->drag+ ((int)*(model->elements+elements_width*i+j)-1)); 381 tria_melting[j]=*(model->melting+ ((int)*(model->elements+elements_width*i+j)-1)); 382 tria_accumulation[j]=*(model->accumulation+ ((int)*(model->elements+elements_width*i+j)-1)); 370 383 } 371 384
Note:
See TracChangeset
for help on using the changeset viewer.