Changeset 879


Ignore:
Timestamp:
06/10/09 10:22:26 (16 years ago)
Author:
seroussi
Message:

missing temperature for 3d transient

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/c/ModelProcessorx/Prognostic/CreateParametersPrognostic.cpp

    r870 r879  
    2626        double* u_g=NULL;
    2727        double* pressure=NULL;
     28        double* temperature=NULL;
    2829        double* thickness=NULL;
    2930        double* surface=NULL;
     
    7273                /*Free pressure: */
    7374                xfree((void**)&pressure);
     75        }
     76
     77        /*Get temperature if 3d model: */
     78        parameters->FindParam((void*)&dim,"dim");
     79        if (dim==3){
     80                ModelFetchData((void**)&temperature,NULL,NULL,model_handle,"temperature","Matrix","Mat");
     81               
     82                count++;
     83                param= new Param(count,"t_g",DOUBLEVEC);
     84                if(temperature) param->SetDoubleVec(temperature,model->numberofnodes,1);
     85                else param->SetDoubleVec(temperature,0,0);
     86                parameters->AddObject(param);
     87
     88                /*Free temperature: */
     89                xfree((void**)&temperature);
    7490        }
    7591
Note: See TracChangeset for help on using the changeset viewer.