Changeset 22047
- Timestamp:
- 09/06/17 04:43:52 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/classes/Loads/Friction.cpp
r22039 r22047 289 289 290 290 /*diverse: */ 291 int CoupledFlag; 291 292 IssmDouble r,s; 292 293 IssmDouble drag_p, drag_q; … … 308 309 IssmDouble rho_ice = element->GetMaterialParameter(MaterialsRhoIceEnum); 309 310 IssmDouble gravity = element->GetMaterialParameter(ConstantsGEnum); 311 element->parameters->FindParam(&CoupledFlag,FrictionCouplingEnum); 310 312 311 313 //compute r and q coefficients: */ … … 314 316 315 317 //From base and thickness, compute effective pressure when drag is viscous: 316 Neff=gravity*(rho_ice*thickness+rho_water*(base-sealevel)); 318 switch(CoupledFlag){ 319 case 0: 320 Neff=gravity*(rho_ice*thickness+rho_water*(base-sealevel)); 321 break; 322 case 1: 323 element->GetInputValue(&Neff,gauss,FrictionEffectivePressureEnum); 324 break; 325 case 2: 326 element->GetInputValue(&Neff,gauss,EffectivePressureEnum); 327 break; 328 default: 329 _error_("not supported"); 330 } 331 317 332 if(Neff<0)Neff=0; 318 333
Note:
See TracChangeset
for help on using the changeset viewer.