Changeset 15963
- Timestamp:
- 08/26/13 16:49:22 (12 years ago)
- Location:
- issm/trunk-jpl/src/c/classes/Elements
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/classes/Elements/Penta.cpp
r15962 r15963 11322 11322 void Penta::PotentialUngrounding(Vector<IssmDouble>* potential_ungrounding){ 11323 11323 11324 IssmDouble h[NUMVERTICES],r[NUMVERTICES] ;11324 IssmDouble h[NUMVERTICES],r[NUMVERTICES],gl[NUMVERTICES]; 11325 11325 IssmDouble bed_hydro; 11326 11326 IssmDouble rho_water,rho_ice,density; … … 11332 11332 GetInputListOnVertices(&h[0],ThicknessEnum); 11333 11333 GetInputListOnVertices(&r[0],BathymetryEnum); 11334 GetInputListOnVertices(&gl[0],MaskGroundediceLevelsetEnum); 11334 11335 11335 11336 /*go through vertices, and figure out which ones are on the ice sheet, and want to unground: */ 11336 11337 for(int i=0;i<NUMVERTICES;i++){ 11337 11338 /*Find if grounded vertices want to start floating*/ 11338 if ( !nodes[i]->IsFloating()){11339 if (gl[i]>0.){ 11339 11340 bed_hydro=-density*h[i]; 11340 11341 if(bed_hydro>r[i]){ -
issm/trunk-jpl/src/c/classes/Elements/Tria.cpp
r15962 r15963 7425 7425 void Tria::PotentialUngrounding(Vector<IssmDouble>* potential_ungrounding){ 7426 7426 7427 IssmDouble h[NUMVERTICES],r[NUMVERTICES] ;7427 IssmDouble h[NUMVERTICES],r[NUMVERTICES],gl[NUMVERTICES]; 7428 7428 IssmDouble bed_hydro; 7429 7429 IssmDouble rho_water,rho_ice,density; … … 7435 7435 GetInputListOnVertices(&h[0],ThicknessEnum); 7436 7436 GetInputListOnVertices(&r[0],BathymetryEnum); 7437 GetInputListOnVertices(&gl[0],MaskGroundediceLevelsetEnum); 7437 7438 7438 7439 /*go through vertices, and figure out which ones are grounded and want to unground: */ 7439 7440 for(int i=0;i<NUMVERTICES;i++){ 7440 7441 /*Find if grounded vertices want to start floating*/ 7441 if ( !nodes[i]->IsFloating()){7442 if (gl[i]>0.){ 7442 7443 bed_hydro=-density*h[i]; 7443 7444 if(bed_hydro>r[i]){
Note:
See TracChangeset
for help on using the changeset viewer.