Changeset 13401
- Timestamp:
- 09/19/12 10:52:37 (13 years ago)
- Location:
- issm/trunk-jpl/src/m/classes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/classes/thermal.m
r13040 r13401 47 47 md = checkfield(md,'thermal.stabilization','numel',[1],'values',[0 1 2]); 48 48 md = checkfield(md,'thermal.spctemperature','forcing',1); 49 if (ismember(EnthalpyAnalysisEnum(),analyses) & md.thermal.isenthalpy & md.mesh.dimension==3), 50 md = 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'); 49 if (ismember(EnthalpyAnalysisEnum(),analyses) & (md.thermal.isenthalpy | solution==EnthalpySolutionEnum()) & md.mesh.dimension==3), 50 pos=find(md.thermal.spctemperature(1:md.mesh.numberofvertices,:)~=NaN); 51 replicate=repmat(md.geometry.surface-md.mesh.z,1,size(md.thermal.spctemperature,2)); 52 md = checkfield(md,'thermal.spctemperature(find(md.thermal.spctemperature(1:md.mesh.numberofvertices,:)~=NaN))','<',md.materials.meltingpoint-md.materials.beta*md.materials.rho_ice*md.constants.g*replicate(pos),'message','spctemperature should be below the adjusted melting point'); 51 53 md = checkfield(md,'thermal.isenthalpy','numel',[1],'values',[0 1]); 52 54 end -
issm/trunk-jpl/src/m/classes/thermal.py
r13040 r13401 69 69 md = checkfield(md,'thermal.stabilization','numel',[1],'values',[0,1,2]) 70 70 md = checkfield(md,'thermal.spctemperature','forcing',1) 71 if EnthalpyAnalysisEnum() in analyses and md.thermal.isenthalpyand md.mesh.dimension==3:71 if EnthalpyAnalysisEnum() in analyses and (md.thermal.isenthalpy or solution==EnthalpySolutionEnum()) and md.mesh.dimension==3: 72 72 md = 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") 73 73 md = checkfield(md,'thermal.isenthalpy','numel',[1],'values',[0,1])
Note:
See TracChangeset
for help on using the changeset viewer.