Changeset 20307
- Timestamp:
- 03/11/16 13:13:46 (9 years ago)
- Location:
- issm/trunk-jpl/src/c
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/analyses/LevelsetAnalysis.cpp
r19477 r20307 197 197 switch(calvinglaw){ 198 198 case DefaultCalvingEnum: 199 case CalvingDevEnum: 199 200 lsf_slopex_input = basalelement->GetInput(LevelsetfunctionSlopeXEnum); _assert_(lsf_slopex_input); 200 201 if(dim==2) lsf_slopey_input = basalelement->GetInput(LevelsetfunctionSlopeYEnum); _assert_(lsf_slopey_input); … … 236 237 meltingrate_input = basalelement->GetInput(CalvingpiMeltingrateEnum); _assert_(meltingrate_input); 237 238 break; 238 case CalvingDevEnum:239 switch(domaintype){240 case Domain2DverticalEnum:241 calvingratex_input=basalelement->GetInput(CalvingratexEnum); _assert_(calvingratex_input);242 break;243 case Domain2DhorizontalEnum:244 calvingratex_input=basalelement->GetInput(CalvingratexEnum); _assert_(calvingratex_input);245 calvingratey_input=basalelement->GetInput(CalvingrateyEnum); _assert_(calvingratey_input);246 break;247 case Domain3DEnum:248 calvingratex_input=basalelement->GetInput(CalvingratexAverageEnum); _assert_(calvingratex_input);249 calvingratey_input=basalelement->GetInput(CalvingrateyAverageEnum); _assert_(calvingratey_input);250 break;251 default: _error_("mesh "<<EnumToStringx(domaintype)<<" not supported yet");252 }253 meltingrate_input = basalelement->GetInput(CalvingMeltingrateEnum); _assert_(meltingrate_input);254 break;255 239 default: 256 240 _error_("Calving law "<<EnumToStringx(calvinglaw)<<" not supported yet"); -
issm/trunk-jpl/src/c/analyses/MasstransportAnalysis.cpp
r20249 r20307 508 508 Input* fmb_input = element->GetInput(BasalforcingsFloatingiceMeltingRateEnum); _assert_(fmb_input); 509 509 Input* groundedice_input = element->GetInput(MaskGroundediceLevelsetEnum); _assert_(groundedice_input); 510 Input* ms_input = element->GetInput(SmbMassBalanceEnum); _assert_(ms_input);510 Input* ms_input = element->GetInput(SmbMassBalanceEnum); _assert_(ms_input); 511 511 Input* thickness_input = element->GetInput(ThicknessEnum); _assert_(thickness_input); 512 512 -
issm/trunk-jpl/src/c/classes/Elements/Element.cpp
r20199 r20307 1997 1997 this->CalvingRatePi(); 1998 1998 break; 1999 case CalvingDevEnum: 2000 this->CalvingRateDev(); 2001 break; 1999 2002 default: 2000 2003 _error_("Calving law "<<EnumToStringx(calvinglaw)<<" not supported yet"); -
issm/trunk-jpl/src/c/classes/Elements/Tria.cpp
r20215 r20307 350 350 IssmDouble calvingrate[NUMVERTICES]; 351 351 IssmDouble lambda1,lambda2,ex,ey,vx,vy,vel; 352 IssmDouble sigma_vm,sigma_max,epse_2 ;352 IssmDouble sigma_vm,sigma_max,epse_2,groundedice; 353 353 354 354 /* Get node coordinates and dof list: */ … … 358 358 Input* vx_input = inputs->GetInput(VxEnum); _assert_(vx_input); 359 359 Input* vy_input = inputs->GetInput(VyEnum); _assert_(vy_input); 360 Input* gr_input = inputs->GetInput(MaskGroundediceLevelsetEnum); _assert_(gr_input); 360 361 IssmDouble B = this->GetMaterialParameter(MaterialsRheologyBbarEnum); 361 362 IssmDouble n = this->GetMaterialParameter(MaterialsRheologyNEnum); … … 369 370 vx_input->GetInputValue(&vx,gauss); 370 371 vy_input->GetInputValue(&vy,gauss); 372 gr_input->GetInputValue(&groundedice,gauss); 371 373 vel=sqrt(vx*vx+vy*vy)+1.e-14; 372 374 … … 390 392 sigma_max = 450.e+3; 391 393 sigma_max = 800.e+3; //too much 392 sigma_max = 700.e+3;393 sigma_max = 670.e+3;394 //sigma_max = 700.e+3; 395 //sigma_max = 670.e+3; 394 396 //sigma_max = 550.e+3; 397 sigma_max = 750.e+3; //too high 398 sigma_max = 850.e+3; //too low 399 sigma_max = 800.e+3; //IUGG previous test 400 sigma_max = 1000.e+3; //850 seems small 401 402 if(groundedice<0) sigma_max=200.e+3; 395 403 396 404 /*Assign values*/
Note:
See TracChangeset
for help on using the changeset viewer.