Changeset 19488
- Timestamp:
- 08/11/15 16:31:41 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/classes/Loads/Friction.cpp
r19479 r19488 241 241 element->GetInputValue(&drag_coefficient, gauss,FrictionCoefficientEnum); 242 242 element->GetInputValue(&drag_coefficient_coulomb, gauss,FrictionCoefficientcoulombEnum); 243 IssmDouble rho_freshwater = element->GetMaterialParameter(MaterialsRhoFreshwaterEnum);244 243 IssmDouble rho_water = element->GetMaterialParameter(MaterialsRhoSeawaterEnum); 245 244 IssmDouble rho_ice = element->GetMaterialParameter(MaterialsRhoIceEnum); … … 279 278 280 279 floatation_thickness=0; 281 if(bed<0) floatation_thickness=-rho_ freshwater/rho_ice*bed;280 if(bed<0) floatation_thickness=-rho_water/rho_ice*bed; 282 281 if(vmag==0.) alpha2_coulomb=0.; 283 282 else alpha2_coulomb=drag_coefficient_coulomb*drag_coefficient_coulomb*rho_water*gravity*(thickness-floatation_thickness)/vmag;
Note:
See TracChangeset
for help on using the changeset viewer.