Changeset 21481
- Timestamp:
- 01/11/17 09:55:03 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified issm/trunk-jpl/src/c/analyses/EnthalpyAnalysis.cpp ¶
r21389 r21481 267 267 void EnthalpyAnalysis::ApplyBasalConstraints(IssmDouble* serial_spc,Element* element){/*{{{*/ 268 268 269 /* Check if ice in element */ 270 if(!element->IsIceInElement()) return; 271 269 /* Do not check if ice in element, this may lead to inconsistencies between cpu partitions */ 272 270 /* Only update constraints at the base. */ 273 271 if(!(element->IsOnBase())) return; … … 299 297 /*apply or release spc*/ 300 298 node=element->GetNode(indices[i]); 299 if(!node->IsActive()) continue; 301 300 if(serial_spc[node->Sid()]==1.){ 302 301 pressure_input->GetInputValue(&pressure, gauss); 303 302 node->ApplyConstraint(0,PureIceEnthalpy(element,pressure)); 304 303 } 305 else 304 else { 306 305 node->DofInFSet(0); 306 } 307 307 } 308 308
Note:
See TracChangeset
for help on using the changeset viewer.