Ignore:
Timestamp:
11/17/13 09:17:18 (11 years ago)
Author:
Mathieu Morlighem
Message:

BUG: fixed enthalpy

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/analyses/EnthalpyAnalysis.cpp

    r16812 r16813  
    293293ElementVector* EnthalpyAnalysis::CreatePVectorShelf(Element* element){/*{{{*/
    294294
    295         IssmDouble  t_pmp,dt,Jdet,scalar_ocean,pressure;
     295        IssmDouble  h_pmp,dt,Jdet,scalar_ocean,pressure;
    296296        IssmDouble *xyz_list_base = NULL;
    297297
     
    326326
    327327                pressure_input->GetInputValue(&pressure,gauss);
    328                 t_pmp=element->TMeltingPoint(pressure);
    329 
    330                 scalar_ocean=gauss->weight*Jdet*rho_water*mixed_layer_capacity*thermal_exchange_vel*(t_pmp)/(heatcapacity*rho_ice);
     328                h_pmp=element->PureIceEnthalpy(pressure);
     329
     330                scalar_ocean=gauss->weight*Jdet*rho_water*mixed_layer_capacity*thermal_exchange_vel*h_pmp/(heatcapacity*rho_ice);
    331331                if(reCast<bool,IssmDouble>(dt)) scalar_ocean=dt*scalar_ocean;
    332332
Note: See TracChangeset for help on using the changeset viewer.