Changeset 19248


Ignore:
Timestamp:
04/03/15 10:59:22 (10 years ago)
Author:
schlegel
Message:

CHG: new pdd class in python

Location:
issm/trunk-jpl/src/m/classes
Files:
1 added
1 edited

Legend:

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

    r19227 r19248  
    1111                rlaps                     = 0;
    1212                rlapslgm                  = 0;
    13                 dpermil                   = 0;
     13                dpermil                   = 0;
    1414                Tdiff                     = NaN;
    1515                sealev                    = NaN;
    1616                ismungsm                  = 0;
    17                 isd18opd                  = 0;
     17                isd18opd                  = 0;
    1818                delta18o                  = NaN;
    1919                delta18o_surface          = NaN;
     
    4646
    4747                  self.ismungsm   = 0;
    48                   self.isd18opd   = 1;
     48                  self.isd18opd   = 1;
    4949                  self.desfac     = 0.5;
    5050                  self.s0p        = 0;
     
    5252                  self.rlaps      = 6.5;
    5353                  self.rlapslgm   = 6.5;
    54                   self.dpermil    = 2.4;
     54                  self.dpermil    = 2.4;
    5555                 
    5656                end % }}}
     
    6363                                md = checkfield(md,'fieldname','surfaceforcings.rlaps','>=',0,'numel',1);
    6464                                md = checkfield(md,'fieldname','surfaceforcings.rlapslgm','>=',0,'numel',1);
    65                                 if(self.isd18opd==1)
     65                                if(self.isd18opd==1)
    6666                                        md = checkfield(md,'fieldname','surfaceforcings.temperatures_presentday','size',[md.mesh.numberofvertices+1 12],'NaN',1);
    6767                                        md = checkfield(md,'fieldname','surfaceforcings.precipitations_presentday','size',[md.mesh.numberofvertices+1 12],'NaN',1);
    6868                                        md = checkfield(md,'fieldname','surfaceforcings.delta18o','NaN',1);
    69                                         md = checkfield(md,'fieldname','surfaceforcings.dpermil','>=',0,'numel',1);
     69                                        md = checkfield(md,'fieldname','surfaceforcings.dpermil','>=',0,'numel',1);
    7070                                end
    7171                        end
     
    103103                        WriteData(fid,'object',self,'class','surfaceforcings','fieldname','rlaps','format','Double');
    104104                        WriteData(fid,'object',self,'class','surfaceforcings','fieldname','rlapslgm','format','Double');
    105                         WriteData(fid,'object',self,'class','surfaceforcings','fieldname','Tdiff','format','DoubleMat','mattype',1);
    106                         WriteData(fid,'object',self,'class','surfaceforcings','fieldname','sealev','format','DoubleMat','mattype',1);
     105                        WriteData(fid,'object',self,'class','surfaceforcings','fieldname','Tdiff','format','DoubleMat','mattype',1);
     106                        WriteData(fid,'object',self,'class','surfaceforcings','fieldname','sealev','format','DoubleMat','mattype',1);
    107107
    108108                        if self.isd18opd
     
    110110                                WriteData(fid,'object',self,'class','surfaceforcings','fieldname','precipitations_presentday','format','DoubleMat','mattype',1);
    111111                                WriteData(fid,'object',self,'class','surfaceforcings','fieldname','delta18o','format','DoubleMat','mattype',1);
    112                                 WriteData(fid,'object',self,'class','surfaceforcings','fieldname','dpermil','format','Double');
     112                                WriteData(fid,'object',self,'class','surfaceforcings','fieldname','dpermil','format','Double');
    113113                        end
    114114                end % }}}
Note: See TracChangeset for help on using the changeset viewer.