source:
issm/oecreview/Archive/11250-11268/ISSM-11264-11265.diff
Last change on this file was 11514, checked in by , 13 years ago | |
---|---|
File size: 1.2 KB |
-
proj/ice/larour/issm-uci-clean/trunk-jpl/src/m/classes/thermal.m
45 45 function checkconsistency(obj,md,solution,analyses) % {{{ 46 46 47 47 %Early return 48 if ~ismember(ThermalAnalysisEnum,analyses) | (solution==TransientSolutionEnum & md.transient.isthermal==0), return; end48 if (~ismember(ThermalAnalysisEnum,analyses) & ~ismember(EnthalpyAnalysisEnum,analyses)) | (solution==TransientSolutionEnum & md.transient.isthermal==0), return; end 49 49 50 50 checkfield(md,'thermal.stabilization','numel',1,'values',[0 1 2]); 51 51 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 52 55 end % }}} 53 56 function disp(obj) % {{{ 54 57 disp(sprintf(' Thermal solution parameters:'));
Note:
See TracBrowser
for help on using the repository browser.