Changeset 23827
- Timestamp:
- 04/07/19 09:12:23 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/analyses/LevelsetAnalysis.cpp
r23826 r23827 699 699 IssmDouble rho_ice,rho_water; 700 700 IssmDouble bed,water_depth; 701 IssmDouble levelset, grounded_ls;701 IssmDouble levelset,sealevel; 702 702 703 703 femmodel->parameters->FindParam(&calvinglaw,CalvingLawEnum); … … 715 715 Gauss* gauss = element->NewGauss(); 716 716 Input* H_input = element->GetInput(ThicknessEnum); _assert_(H_input); 717 Input* gr_input = element->GetInput(MaskGroundediceLevelsetEnum); _assert_(gr_input); 717 Input* b_input = element->GetInput(BedEnum); _assert_(b_input); 718 Input* sl_input = element->GetInput(SealevelEnum); _assert_(sl_input); 718 719 719 720 /*Potentially constrain nodes of this element*/ … … 724 725 725 726 H_input->GetInputValue(&thickness,gauss); 726 gr_input->GetInputValue(&grounded_ls,gauss); 727 if(thickness<min_thickness && grounded_ls<0.){ 727 b_input->GetInputValue(&bed,gauss); 728 sl_input->GetInputValue(&sealevel,gauss); 729 if(thickness<min_thickness && bed<sealevel){ 728 730 node->ApplyConstraint(0,+1.); 729 731 }
Note:
See TracChangeset
for help on using the changeset viewer.