Changeset 19783


Ignore:
Timestamp:
11/22/15 06:43:10 (9 years ago)
Author:
cborstad
Message:

BUG: fixed a couple minor bugs in class

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified issm/trunk-jpl/src/m/classes/mismipbasalforcings.py

    r19713 r19783  
    5959
    6060            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])
    6464
    6565        if BalancethicknessAnalysisEnum() in analyses:
    6666
    6767            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])
    7171
    7272        if ThermalAnalysisEnum() in analyses and not (solution==TransientSolutionEnum() and md.transient.isthermal==0):
    7373
    7474            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)
    7979        return md
    8080    # }}}
     
    9191        WriteData(fid,'data',floatingice_melting_rate,'format','DoubleMat','enum',BasalforcingsFloatingiceMeltingRateEnum(),'mattype',1,'scale',1./yts,'timeserieslength',md.mesh.numberofvertices+1)
    9292        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)
    9494        WriteData(fid,'object',self,'fieldname','meltrate_factor','format','Double','enum',BasalforcingsMeltrateFactorEnum(),'scale',1./yts)
    9595        WriteData(fid,'object',self,'fieldname','threshold_thickness','format','Double','enum',BasalforcingsThresholdThicknessEnum())
Note: See TracChangeset for help on using the changeset viewer.