Changeset 24889 for issm/trunk-jpl/src/c/classes/Elements/Tria.cpp
- Timestamp:
- 05/22/20 10:13:54 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/classes/Elements/Tria.cpp
r24861 r24889 5449 5449 IssmDouble Tria::OceanArea(void){ /*{{{*/ 5450 5450 5451 if(Is WaterInElement()) return GetAreaSpherical();5451 if(IsOceanInElement()) return GetAreaSpherical(); 5452 5452 else return 0; 5453 5453 … … 5456 5456 IssmDouble Tria::OceanAverage(IssmDouble* Sg){ /*{{{*/ 5457 5457 5458 if(Is WaterInElement()){5458 if(IsOceanInElement()){ 5459 5459 5460 5460 IssmDouble area; … … 5475 5475 void Tria::SealevelriseMomentOfInertia(IssmDouble* dI_list,IssmDouble* Sg_old,IssmDouble eartharea){/*{{{*/ 5476 5476 /*early return if we are not on an ice cap OR ocean:*/ 5477 if(!IsIceOnlyInElement() && !Is WaterInElement()){5477 if(!IsIceOnlyInElement() && !IsOceanInElement()){ 5478 5478 dI_list[0] = 0.0; // this is important!!! 5479 5479 dI_list[1] = 0.0; // this is important!!! … … 5528 5528 re=(llr_list[0][2]+llr_list[1][2]+llr_list[2][2])/3.0; 5529 5529 5530 if(Is WaterInElement()){5530 if(IsOceanInElement()){ 5531 5531 IssmDouble rho_water, S; 5532 5532 … … 5973 5973 5974 5974 /*early return if we are not on the ocean:*/ 5975 if (!Is WaterInElement()){5975 if (!IsOceanInElement()){ 5976 5976 constant=0; this->AddInput2(SealevelEustaticOceanMaskEnum,&constant,P0Enum); 5977 5977 return; … … 6126 6126 6127 6127 /*early return if we are not on the ocean or on an ice cap:*/ 6128 if(!IsIceOnlyInElement() && !Is WaterInElement()) return;6128 if(!IsIceOnlyInElement() && !IsOceanInElement()) return; 6129 6129 6130 6130 /*early return if we are fully floating: */ … … 6268 6268 } 6269 6269 } 6270 else if(Is WaterInElement()) {6270 else if(IsOceanInElement()) { 6271 6271 U_values[i]+=3*rho_water/rho_earth*area/eartharea*S*U_elastic[i]; 6272 6272 if(horiz){
Note:
See TracChangeset
for help on using the changeset viewer.