Changeset 19488


Ignore:
Timestamp:
08/11/15 16:31:41 (10 years ago)
Author:
seroussi
Message:

BUG: floatation is from sae water and not freshwater

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/classes/Loads/Friction.cpp

    r19479 r19488  
    241241        element->GetInputValue(&drag_coefficient, gauss,FrictionCoefficientEnum);
    242242        element->GetInputValue(&drag_coefficient_coulomb, gauss,FrictionCoefficientcoulombEnum);
    243         IssmDouble rho_freshwater   = element->GetMaterialParameter(MaterialsRhoFreshwaterEnum);
    244243        IssmDouble rho_water        = element->GetMaterialParameter(MaterialsRhoSeawaterEnum);
    245244        IssmDouble rho_ice          = element->GetMaterialParameter(MaterialsRhoIceEnum);
     
    279278
    280279        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;
    282281        if(vmag==0.) alpha2_coulomb=0.;
    283282        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.