Changeset 989


Ignore:
Timestamp:
06/13/09 20:02:11 (16 years ago)
Author:
seroussi
Message:

need to know if the elements are collapse to compute ever B or Bbar

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/c/ModelProcessorx/Thermal/CreateElementsNodesAndMaterialsThermal.cpp

    r982 r989  
    192192        ModelFetchData((void**)&model->elementonbed,NULL,NULL,model_handle,"elementonbed","Matrix","Mat");
    193193        ModelFetchData((void**)&model->elementonsurface,NULL,NULL,model_handle,"elementonsurface","Matrix","Mat");
     194        ModelFetchData((void**)&model->elements_type,NULL,NULL,model_handle,"elements_type","Matrix","Mat");
    194195        ModelFetchData((void**)&model->geothermalflux,NULL,NULL,model_handle,"geothermalflux","Matrix","Mat");
    195196        ModelFetchData((void**)&model->B,NULL,NULL,model_handle,"B","Matrix","Mat");
     
    230231                penta_meanvel=model->meanvel;
    231232                penta_epsvel=model->epsvel;
    232                 penta_collapse=0;
     233
     234                /*We need the field collapse for transient, so that we can use compute B with the average temperature*/
     235                if (*(model->elements_type+2*i+0)==MacAyealEnum()){ //elements of type 3 are MacAyeal type Penta. We collapse the formulation on their base.
     236                        penta_collapse=1;
     237                }
     238                else{
     239                        penta_collapse=0;
     240                }
    233241
    234242
     
    290298        xfree((void**)&model->elementonbed);
    291299        xfree((void**)&model->elementonsurface);
     300        xfree((void**)&model->elements_type);
    292301        xfree((void**)&model->geothermalflux);
    293302        xfree((void**)&model->n);
Note: See TracChangeset for help on using the changeset viewer.