source: issm/oecreview/Archive/11250-11268/ISSM-11264-11265.diff

Last change on this file was 11514, checked in by Eric.Larour, 13 years ago

11229 to 11268 oecreview

File size: 1.2 KB
  • proj/ice/larour/issm-uci-clean/trunk-jpl/src/m/classes/thermal.m

     
    4545                function checkconsistency(obj,md,solution,analyses) % {{{
    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) % {{{
    5457                        disp(sprintf('   Thermal solution parameters:'));
Note: See TracBrowser for help on using the repository browser.