Changeset 176


Ignore:
Timestamp:
05/01/09 14:54:07 (16 years ago)
Author:
Mathieu Morlighem
Message:

Added accumulation and melting fields

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/c/ModelProcessorx/DiagnosticHoriz/CreateElementsNodesAndMaterialsDiagnosticHoriz.cpp

    r128 r176  
    228228                ModelFetchData((void**)&model->B,NULL,NULL,model_handle,"B","Matrix","Mat");
    229229                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");
    230232               
    231233                for (i=0;i<model->numberofelements;i++){
     
    269271                        tria_p=model->p[i];
    270272                        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));
    271282
    272283                        /*element on iceshelf?:*/
     
    368379                                penta_b[j]=*(model->bed+    ((int)*(model->elements+elements_width*i+j)-1));
    369380                                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));
    370383                        }
    371384
Note: See TracChangeset for help on using the changeset viewer.