Changeset 19783
- Timestamp:
- 11/22/15 06:43:10 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified issm/trunk-jpl/src/m/classes/mismipbasalforcings.py ¶
r19713 r19783 59 59 60 60 md = checkfield(md,'fieldname','basalforcings.groundedice_melting_rate','NaN',1,'timeseries',1) 61 md = checkfield(md,'fieldname','basalforcings.meltrate_factor','>=',0,'numel', 1)62 md = checkfield(md,'fieldname','basalforcings.threshold_thickness','>=',0,'numel', 1)63 md = checkfield(md,'fieldname','basalforcings.upperdepth_melt','<=',0,'numel', 1)61 md = checkfield(md,'fieldname','basalforcings.meltrate_factor','>=',0,'numel',[1]) 62 md = checkfield(md,'fieldname','basalforcings.threshold_thickness','>=',0,'numel',[1]) 63 md = checkfield(md,'fieldname','basalforcings.upperdepth_melt','<=',0,'numel',[1]) 64 64 65 65 if BalancethicknessAnalysisEnum() in analyses: 66 66 67 67 md = checkfield(md,'fieldname','basalforcings.groundedice_melting_rate','NaN',1,'size',[md.mesh.numberofvertices]) 68 md = checkfield(md,'fieldname','basalforcings.meltrate_factor','>=',0,'numel', 1)69 md = checkfield(md,'fieldname','basalforcings.threshold_thickness','>=',0,'numel', 1)70 md = checkfield(md,'fieldname','basalforcings.upperdepth_melt','<=',0,'numel', 1)68 md = checkfield(md,'fieldname','basalforcings.meltrate_factor','>=',0,'numel',[1]) 69 md = checkfield(md,'fieldname','basalforcings.threshold_thickness','>=',0,'numel',[1]) 70 md = checkfield(md,'fieldname','basalforcings.upperdepth_melt','<=',0,'numel',[1]) 71 71 72 72 if ThermalAnalysisEnum() in analyses and not (solution==TransientSolutionEnum() and md.transient.isthermal==0): 73 73 74 74 md = checkfield(md,'fieldname','basalforcings.groundedice_melting_rate','NaN',1,'timeseries',1) 75 md = checkfield(md,'fieldname','basalforcings.meltrate_factor','>=',0,'numel', 1)76 md = checkfield(md,'fieldname','basalforcings.threshold_thickness','>=',0,'numel', 1)77 md = checkfield(md,'fieldname','basalforcings.upperdepth_melt','<=',0,'numel', 1)78 md = checkfield(md,'fieldname','basalforcings.geothermal _flux','NaN',1,'timeseries',1,'>=',0)75 md = checkfield(md,'fieldname','basalforcings.meltrate_factor','>=',0,'numel',[1]) 76 md = checkfield(md,'fieldname','basalforcings.threshold_thickness','>=',0,'numel',[1]) 77 md = checkfield(md,'fieldname','basalforcings.upperdepth_melt','<=',0,'numel',[1]) 78 md = checkfield(md,'fieldname','basalforcings.geothermalflux','NaN',1,'timeseries',1,'>=',0) 79 79 return md 80 80 # }}} … … 91 91 WriteData(fid,'data',floatingice_melting_rate,'format','DoubleMat','enum',BasalforcingsFloatingiceMeltingRateEnum(),'mattype',1,'scale',1./yts,'timeserieslength',md.mesh.numberofvertices+1) 92 92 WriteData(fid,'object',self,'fieldname','groundedice_melting_rate','format','DoubleMat','enum',BasalforcingsGroundediceMeltingRateEnum(),'mattype',1,'scale',1./yts,'timeserieslength',md.mesh.numberofvertices+1) 93 WriteData(fid,'object',self,'fieldname','geothermal _flux','enum',BasalforcingsGeothermalfluxEnum(),'format','DoubleMat','mattype',1,'timeserieslength',md.mesh.numberofvertices+1)93 WriteData(fid,'object',self,'fieldname','geothermalflux','enum',BasalforcingsGeothermalfluxEnum(),'format','DoubleMat','mattype',1,'timeserieslength',md.mesh.numberofvertices+1) 94 94 WriteData(fid,'object',self,'fieldname','meltrate_factor','format','Double','enum',BasalforcingsMeltrateFactorEnum(),'scale',1./yts) 95 95 WriteData(fid,'object',self,'fieldname','threshold_thickness','format','Double','enum',BasalforcingsThresholdThicknessEnum())
Note:
See TracChangeset
for help on using the changeset viewer.