source:
issm/oecreview/Archive/21724-22754/ISSM-22420-22421.diff@
22755
Last change on this file since 22755 was 22755, checked in by , 7 years ago | |
---|---|
File size: 1.2 KB |
-
TabularUnified ../trunk-jpl/src/c/analyses/LevelsetAnalysis.cpp
422 422 haf_eps=10.; 423 423 if(groundedice-calvinghaf<=-haf_eps){ 424 424 // ice floats freely below calvinghaf: calve freely 425 // undercutting has no effect: 426 meltingrate=0.; 425 427 } 426 428 else if(groundedice-calvinghaf>=haf_eps){ 427 429 // ice is well above calvinghaf -> no calving back, i.e. limit calving rate to ice velocity 428 430 calvingrate=min(calvingrate,vel); 431 // ice is almost grounded: frontal undercutting has maximum effect (do nothing). 429 432 } 430 433 else{ // ice is close to calvinghaf: smooth transition between limitation and free calving. 431 heaviside=(groundedice-calvinghaf+haf_eps)/(2.*haf_eps) + sin(PI*(groundedice-calvinghaf)/haf_eps)/(2.*PI); 434 //heaviside: 0 for floating, 1 for grounded 435 heaviside=(groundedice-calvinghaf+haf_eps)/(2.*haf_eps) + sin(PI*(groundedice-calvinghaf)/haf_eps)/(2.*PI); 432 436 calvingrate=heaviside*(min(calvingrate,vel)-calvingrate)+calvingrate; 437 meltingrate=heaviside*meltingrate+0.; 433 438 } 434 439 435 440 norm_dlsf=0.;
Note:
See TracBrowser
for help on using the repository browser.