Ignore:
Timestamp:
01/06/15 08:59:53 (10 years ago)
Author:
Mathieu Morlighem
Message:

BUG: fixgin PDD in python

File:
1 edited

Legend:

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

    r18970 r18984  
    114114                        md = checkfield(md,'fieldname','surfaceforcings.rlapslgm','>=',0,'numel',[1])
    115115
    116                         if not (self.isdelta18o and self.ismungsm):
     116                        if (self.isdelta18o==0 and self.ismungsm==0):
    117117                                md = checkfield(md,'fieldname','surfaceforcings.monthlytemperatures','NaN',1)
    118118                                md = checkfield(md,'fieldname','surfaceforcings.precipitation','NaN',1)
     
    151151                WriteData(fid,'object',self,'class','surfaceforcings','fieldname','rlapslgm','format','Double')
    152152
    153                 if not (self.isdelta18o and self.ismungsm):
     153                if (self.isdelta18o==0 and self.ismungsm==0):
    154154                        WriteData(fid,'object',self,'class','surfaceforcings','fieldname','monthlytemperatures','format','DoubleMat','mattype',1)
    155155                        WriteData(fid,'object',self,'class','surfaceforcings','fieldname','precipitation','format','DoubleMat','mattype',1,'scale',1./yts,'forcinglength',md.mesh.numberofvertices+1)
Note: See TracChangeset for help on using the changeset viewer.