Changeset 12393


Ignore:
Timestamp:
06/08/12 13:44:01 (13 years ago)
Author:
seroussi
Message:

better check for spctemperature (enthalpy)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/classes/thermal.m

    r11869 r12393  
    4848                        checkfield(md,'thermal.spctemperature','forcing',1);
    4949                        if (ismember(EnthalpyAnalysisEnum,analyses) & md.thermal.isenthalpy),
    50                         checkfield(md,'thermal.spctemperature','<',md.materials.meltingpoint-md.materials.beta*md.materials.rho_ice*md.constants.g*md.geometry.thickness,'message','spctemperature should be below the adjusted melting point');
     50                        checkfield(md,'thermal.spctemperature','<',md.materials.meltingpoint-md.materials.beta*md.materials.rho_ice*md.constants.g*(md.geometry.surface-md.mesh.z),'message','spctemperature should be below the adjusted melting point');
    5151                        checkfield(md,'thermal.isenthalpy','numel',1,'values',[0 1]);
    5252                        end
Note: See TracChangeset for help on using the changeset viewer.