Changeset 19534
- Timestamp:
- 09/02/15 10:35:34 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/analyses/StressbalanceSIAAnalysis.cpp
r19531 r19534 338 338 Input* thickness_input = element->GetInput(ThicknessEnum); _assert_(thickness_input); 339 339 Input* surface_input = element->GetInput(SurfaceEnum); _assert_(surface_input); 340 Input* drag_input = element->GetInput(FrictionCoefficientEnum); _assert_(drag_input); 340 Input* drag_input = NULL; 341 if(frictionlaw!=5 && frictionlaw!=1){ 342 drag_input = element->GetInput(FrictionCoefficientEnum); _assert_(drag_input); 343 } 341 344 342 345 Gauss* gauss=element->NewGauss(); … … 348 351 thickness_input->GetInputValue(&thickness,gauss); 349 352 surface_input->GetInputValue(&surface,gauss); 350 drag_input->GetInputValue(&drag,gauss);351 353 slopex_input->GetInputValue(&slope[0],gauss); 352 354 slopey_input->GetInputValue(&slope[1],gauss); … … 361 363 case 2: 362 364 /*Ritz et al. 1996*/ 365 drag_input->GetInputValue(&drag,gauss); 363 366 ub=drag*(rho_ice*gravity*thickness)*(rho_ice*gravity*thickness)*slope[0]/sqrt(slope2); 364 367 vb=drag*(rho_ice*gravity*thickness)*(rho_ice*gravity*thickness)*slope[1]/sqrt(slope2); … … 366 369 case 3: 367 370 /*Rutt et al. 2009*/ 371 drag_input->GetInputValue(&drag,gauss); 368 372 ub=-drag*rho_ice*gravity*thickness*slope[0]; 369 373 vb=-drag*rho_ice*gravity*thickness*slope[1];
Note:
See TracChangeset
for help on using the changeset viewer.