Changeset 19190


Ignore:
Timestamp:
03/09/15 09:42:38 (10 years ago)
Author:
Mathieu Morlighem
Message:

CHG: temporary change for python isd18opm

File:
1 edited

Legend:

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

    r19027 r19190  
    2727                self.isdelta18o                = 0
    2828                self.ismungsm                  = 0
     29                self.isd18opd                  = 0
    2930                self.delta18o                  = float('NaN')
    3031                self.delta18o_surface          = float('NaN')
     
    4243                string="%s\n%s"%(string,fielddisplay(self,'isdelta18o','is temperature and precipitation delta18o parametrisation activated (0 or 1, default is 0)'))
    4344                string="%s\n%s"%(string,fielddisplay(self,'ismungsm','is temperature and precipitation mungsm parametrisation activated (0 or 1, default is 0)'))
     45                string="%s\n%s"%(string,fielddisplay(self,'isd18opd','is delta18o parametrisation from present day temperature and precipitation activated (0 or 1, default is 0)'))
    4446                string="%s\n%s"%(string,fielddisplay(self,'desfac','desertification elevation factor (between 0 and 1, default is 0.5) [m]'))
    4547                string="%s\n%s"%(string,fielddisplay(self,'s0p','should be set to elevation from precip source (between 0 and a few 1000s m, default is 0) [m]'))
     
    7173        def extrude(self,md): # {{{
    7274
    73                 if not (self.isdelta18o and self.ismungsm):
     75                if not (self.isdelta18o and self.ismungsm and self.isd18opd):
    7476                        self.precipitation=project3d(md,'vector',self.precipitation,'type','node')
    7577                        self.monthlytemperatures=project3d(md,'vector',self.monthlytemperatures,'type','node')
     
    114116                        md = checkfield(md,'fieldname','surfaceforcings.rlapslgm','>=',0,'numel',[1])
    115117
    116                         if (self.isdelta18o==0 and self.ismungsm==0):
     118                        if (self.isdelta18o==0 and self.ismungsm==0 and self.isd18opd):
    117119                                md = checkfield(md,'fieldname','surfaceforcings.monthlytemperatures','NaN',1)
    118120                                md = checkfield(md,'fieldname','surfaceforcings.precipitation','NaN',1)
     
    145147                WriteData(fid,'object',self,'class','surfaceforcings','fieldname','isdelta18o','format','Boolean')
    146148                WriteData(fid,'object',self,'class','surfaceforcings','fieldname','ismungsm','format','Boolean')
     149                WriteData(fid,'object',self,'class','surfaceforcings','fieldname','isd18opd','format','Boolean')
    147150                WriteData(fid,'object',self,'class','surfaceforcings','fieldname','desfac','format','Double')
    148151                WriteData(fid,'object',self,'class','surfaceforcings','fieldname','s0p','format','Double')
Note: See TracChangeset for help on using the changeset viewer.