Ignore:
Timestamp:
04/29/24 13:59:08 (11 months ago)
Author:
timhill2
Message:

GlaDS: options to include sheet thickness in hydraulic potential and turn off cavity creep opening

File:
1 edited

Legend:

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

    r28050 r28233  
    380380        bool istransition;
    381381        element->FindParam(&istransition,HydrologyIsTransitionEnum);
     382        bool isincludesheetthickness;
     383        element->FindParam(&isincludesheetthickness,HydrologyIsIncludeSheetThicknessEnum);
    382384        IssmDouble L         = element->FindParam(MaterialsLatentheatEnum);
    383385        IssmDouble mu_water  = element->FindParam(MaterialsMuWaterEnum);
     
    435437                /*Get values for a few potentials*/
    436438                phi_0   = rho_water*g*b + rho_ice*g*H;
     439                if(isincludesheetthickness) phi_0 += rho_water*g*h;
    437440                dphids  = dphi[0]*tx + dphi[1]*ty;
    438441                dphimds = rho_water*g*(db[0]*tx + db[1]*ty);
     
    541544        bool istransition;
    542545        element->FindParam(&istransition,HydrologyIsTransitionEnum);
     546        bool isincludesheetthickness;
     547        element->FindParam(&isincludesheetthickness,HydrologyIsIncludeSheetThicknessEnum);
    543548        IssmDouble L         = element->FindParam(MaterialsLatentheatEnum);
    544549        IssmDouble mu_water  = element->FindParam(MaterialsMuWaterEnum);
     
    592597                /*Get values for a few potentials*/
    593598                phi_0   = rho_water*g*b + rho_ice*g*H;
     599                if(isincludesheetthickness) phi_0 += rho_water*g*h;
    594600                dphids  = dphi[0]*tx + dphi[1]*ty;
    595601                dphimds = rho_water*g*(db[0]*tx + db[1]*ty);
     
    691697        bool istransition;
    692698        element->FindParam(&istransition,HydrologyIsTransitionEnum);
     699        bool isincludesheetthickness;
     700        element->FindParam(&isincludesheetthickness,HydrologyIsIncludeSheetThicknessEnum);
    693701        IssmDouble L         = element->FindParam(MaterialsLatentheatEnum);
    694702        IssmDouble rho_ice   = element->FindParam(MaterialsRhoIceEnum);
     
    738746        /*Get values for a few potentials*/
    739747        phi_0   = rho_water*g*b + rho_ice*g*H;
     748        if(isincludesheetthickness) phi_0 += rho_water*g*h;
    740749        dphids  = dphi[0]*tx + dphi[1]*ty;
    741750        dphimds = rho_water*g*(db[0]*tx + db[1]*ty);
Note: See TracChangeset for help on using the changeset viewer.