Changeset 22011
- Timestamp:
- 08/25/17 16:08:32 (8 years ago)
- Location:
- issm/trunk-jpl/src/c
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/analyses/EnthalpyAnalysis.cpp
r22010 r22011 1525 1525 /*Update Rheology only if converged (we must make sure that the temperature is below melting point 1526 1526 * otherwise the rheology could be negative*/ 1527 rheology_law=element->Get MaterialParameter(MaterialsRheologyLawEnum);1527 rheology_law=element->GetIntegerMaterialParameter(MaterialsRheologyLawEnum); 1528 1528 element->GetInputListOnNodes(&surface[0],SurfaceEnum); 1529 1529 switch(rheology_law){ -
issm/trunk-jpl/src/c/analyses/ThermalAnalysis.cpp
r22010 r22011 809 809 /*Update Rheology only if converged (we must make sure that the temperature is below melting point 810 810 * otherwise the rheology could be negative*/ 811 rheology_law=element->Get MaterialParameter(MaterialsRheologyLawEnum);811 rheology_law=element->GetIntegerMaterialParameter(MaterialsRheologyLawEnum); 812 812 element->GetInputListOnNodes(&surface[0],SurfaceEnum); 813 813 switch(rheology_law){ -
issm/trunk-jpl/src/c/classes/Materials/Matpar.cpp
r22010 r22011 646 646 case SmbRlapslgmEnum: return this->rlapslgm; 647 647 case SmbDpermilEnum: return this->dpermil; 648 case MaterialsRheologyLawEnum: return this->rheology_law;649 648 case MaterialsLithosphereShearModulusEnum: return this->lithosphere_shear_modulus; 650 649 case MaterialsLithosphereDensityEnum: return this->lithosphere_density; … … 657 656 } 658 657 /*}}}*/ 658 IssmDouble Matpar::GetIntegerMaterialParameter(int enum_in){/*{{{*/ 659 660 switch(enum_in){ 661 case MaterialsRheologyLawEnum: return this->rheology_law; 662 default: _error_("Enum "<<EnumToStringx(enum_in)<<" not supported yet"); 663 } 664 665 } 666 /*}}}*/ 659 667 IssmDouble Matpar::PureIceEnthalpy(IssmDouble pressure){/*{{{*/ 660 668 return heatcapacity*(TMeltingPoint(pressure)-referencetemperature); -
issm/trunk-jpl/src/c/classes/Materials/Matpar.h
r22010 r22011 124 124 IssmDouble GetEnthalpyDiffusionParameterVolume(int numvertices,IssmDouble* enthalpy,IssmDouble* pressure); 125 125 IssmDouble GetMaterialParameter(int in_enum); 126 IssmDouble GetIntegerMaterialParameter(int in_enum); 126 127 IssmDouble PureIceEnthalpy(IssmDouble pressure); 127 128 void ThermalToEnthalpy(IssmDouble* penthalpy,IssmDouble temperature,IssmDouble waterfraction,IssmDouble pressure);
Note:
See TracChangeset
for help on using the changeset viewer.