Changeset 11265


Ignore:
Timestamp:
01/31/12 10:31:36 (13 years ago)
Author:
seroussi
Message:

minor changes in thermal class for enthalpy

File:
1 edited

Legend:

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

    r10999 r11265  
    4646
    4747                        %Early return
    48                         if ~ismember(ThermalAnalysisEnum,analyses) | (solution==TransientSolutionEnum & md.transient.isthermal==0), return; end
     48                        if (~ismember(ThermalAnalysisEnum,analyses) & ~ismember(EnthalpyAnalysisEnum,analyses)) | (solution==TransientSolutionEnum & md.transient.isthermal==0), return; end
    4949
    5050                        checkfield(md,'thermal.stabilization','numel',1,'values',[0 1 2]);
    5151                        checkfield(md,'thermal.spctemperature','forcing',1);
     52                        if ismember(EnthalpyAnalysisEnum,analyses),
     53                        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');
     54                        end
    5255                end % }}}
    5356                function disp(obj) % {{{
Note: See TracChangeset for help on using the changeset viewer.