Changeset 11273
- Timestamp:
- 01/31/12 11:44:29 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/objects/Elements/Penta.cpp
r11272 r11273 3672 3672 double rho_ice,heatcapacity; 3673 3673 double thermalconductivity; 3674 double viscosity, temperature;3674 double viscosity,enthalpy; 3675 3675 double tau_parameter,diameter; 3676 3676 double u,v,w; … … 3696 3696 Input* vy_input=inputs->GetInput(VyEnum); _assert_(vy_input); 3697 3697 Input* vz_input=inputs->GetInput(VzEnum); _assert_(vz_input); 3698 Input* temperature_input=NULL;3699 if (dt) temperature_input=inputs->GetInput(TemperatureEnum); _assert_(inputs);3698 Input* enthalpy_input=NULL; 3699 if (dt) enthalpy_input=inputs->GetInput(EnthalpyEnum); _assert_(inputs); 3700 3700 if (stabilization==2) diameter=MinEdgeLength(xyz_list); 3701 3701 … … 3720 3720 /* Build transient now */ 3721 3721 if(dt){ 3722 temperature_input->GetInputValue(&temperature, gauss);3723 scalar_transient= temperature*Jdet*gauss->weight;3722 enthalpy_input->GetInputValue(&enthalpy, gauss); 3723 scalar_transient=enthalpy*Jdet*gauss->weight; 3724 3724 for(i=0;i<NUMVERTICES;i++) pe->values[i]+=scalar_transient*L[i]; 3725 3725 }
Note:
See TracChangeset
for help on using the changeset viewer.