source: issm/oecreview/Archive/21724-22754/ISSM-22351-22352.diff@ 22755

Last change on this file since 22755 was 22755, checked in by Mathieu Morlighem, 7 years ago

CHG: added 21724-22754

File size: 5.9 KB
  • ../trunk-jpl/src/m/classes/esa.m

     
    4343                        md = checkfield(md,'fieldname','esa.deltathickness','NaN',1,'Inf',1,'size',[md.mesh.numberofelements 1]);
    4444                        md = checkfield(md,'fieldname','esa.love_h','NaN',1,'Inf',1);
    4545                        md = checkfield(md,'fieldname','esa.love_l','NaN',1,'Inf',1);
     46                        md = checkfield(md,'fieldname','esa.hemisphere','NaN',1,'Inf',1);
    4647                        md = checkfield(md,'fieldname','esa.degacc','size',[1 1],'>=',1e-10);
    4748                        md = checkfield(md,'fieldname','esa.requested_outputs','stringrow',1);
    4849
  • ../trunk-jpl/src/m/classes/esa.py

     
    1717                self.deltathickness    = float('NaN')
    1818                self.love_h            = 0 #provided by PREM model()
    1919                self.love_l            = 0 #ideam
     20                self.hemisphere        = 0
    2021                self.degacc            = 0
    2122                self.requested_outputs = []
    2223                self.transitions       = []
     
    2930                        string="%s\n%s"%(string,fielddisplay(self,'deltathickness','thickness change: ice height equivalent [m]'))
    3031                        string="%s\n%s"%(string,fielddisplay(self,'love_h','load Love number for radial displacement'))
    3132                        string="%s\n%s"%(string,fielddisplay(self,'love_l','load Love number for horizontal displaements'))
     33                        string="%s\n%s"%(string,fielddisplay(self,'hemisphere','North-south, East-west components of 2-D horiz displacement vector: -1 south, 1 north'))
    3234                        string="%s\n%s"%(string,fielddisplay(self,'degacc','accuracy (default .01 deg) for numerical discretization of the Green''s functions'))
    3335                        string="%s\n%s"%(string,fielddisplay(self,'transitions','indices into parts of the mesh that will be icecaps'))
    3436                        string="%s\n%s"%(string,fielddisplay(self,'requested_outputs','additional outputs requested (default: EsaUmotion)'))
     
    3941               
    4042                #numerical discretization accuracy
    4143                self.degacc=.01
    42                
     44       
     45                #computational flags:
     46                self.hemisphere=0;
     47
    4348                #output default:
    4449                self.requested_outputs=['default']
    4550
     
    5964                md = checkfield(md,'fieldname','esa.deltathickness','NaN',1,'Inf',1,'size',[md.mesh.numberofelements,1])
    6065                md = checkfield(md,'fieldname','esa.love_h','NaN',1,'Inf',1)
    6166                md = checkfield(md,'fieldname','esa.love_l','NaN',1,'Inf',1)
     67                md = checkfield(md,'fieldname','esa.hemisphere','NaN',1,'Inf',1)
    6268                md = checkfield(md,'fieldname','esa.degacc','size',[1,1],'>=',1e-10)
    6369                md = checkfield(md,'fieldname','esa.requested_outputs','stringrow',1)
    6470
     
    7480                WriteData(fid,prefix,'object',self,'fieldname','deltathickness','format','DoubleMat','mattype',2)
    7581                WriteData(fid,prefix,'object',self,'fieldname','love_h','format','DoubleMat','mattype',1)
    7682                WriteData(fid,prefix,'object',self,'fieldname','love_l','format','DoubleMat','mattype',1)
     83                WriteData(fid,prefix,'object',self,'fieldname','hemisphere','format','Integer')
    7784                WriteData(fid,prefix,'object',self,'fieldname','degacc','format','Double')
    7885                WriteData(fid,prefix,'object',self,'fieldname','transitions','format','MatArray')
    7986       
  • ../trunk-jpl/src/m/classes/esa.js

     
    99               
    1010                //numerical discretization accuracy
    1111                this.degacc=.01;
    12                
     12       
     13                //computational flags:
     14                this.hemisphere=0;
     15
    1316                //output default:
    1417                this.requested_outputs=['default'];
    1518
     
    2528                        md = checkfield(md,'fieldname','esa.deltathickness','NaN',1,'Inf',1,'size',[md.mesh.numberofelements, 1]);
    2629                        md = checkfield(md,'fieldname','esa.love_h','NaN',1,'Inf',1);
    2730                        md = checkfield(md,'fieldname','esa.love_l','NaN',1,'Inf',1);
     31                        md = checkfield(md,'fieldname','esa.hemisphere','NaN',1,'Inf',1);
    2832                        md = checkfield(md,'fieldname','esa.degacc','size',[1, 1],'>=',1e-10);
    2933                        md = checkfield(md,'fieldname','esa.requested_outputs','stringrow',1);
    3034                       
     
    4751                fielddisplay(this,'deltathickness','thickness change: ice height equivalent [m]');
    4852                fielddisplay(this,'love_h','load Love number for radial displacement');
    4953                fielddisplay(this,'love_l','load Love number for horizontal displacements');
     54                fielddisplay(this,'hemisphere','North-south, East-west components of 2-D horiz displacement vector: -1 south, 1 north');
    5055                fielddisplay(this,'degacc',"accuracy (default .01 deg) for numerical discretization of the Green's functions");
    5156                fielddisplay(this,'transitions','indices into parts of the mesh that will be icecaps');
    5257                fielddisplay(this,'requested_outputs','additional outputs requested (default: EsaUmotion)');
     
    5661                        WriteData(fid,prefix,'object',this,'fieldname','deltathickness','format','DoubleMat','mattype',2);
    5762                        WriteData(fid,prefix,'object',this,'fieldname','love_h','format','DoubleMat','mattype',1);
    5863                        WriteData(fid,prefix,'object',this,'fieldname','love_l','format','DoubleMat','mattype',1);
     64                        WriteData(fid,prefix,'object',this,'fieldname','hemisphere','format','Integer');
    5965                        WriteData(fid,prefix,'object',this,'fieldname','degacc','format','Double');
    6066                        WriteData(fid,prefix,'object',this,'fieldname','transitions','format','MatArray');
    6167
     
    7480                        this.deltathickness=NullFix(this.deltathickness,NaN);
    7581                        this.love_h=NullFix(this.love_h,NaN);
    7682                        this.love_l=NullFix(this.love_l,NaN);
     83                        this.hemisphere=NullFix(this.hemisphere,NaN);
    7784                        this.degacc=NullFix(this.degacc,NaN);
    7885                }//}}}
    7986        //properties
     
    8188        this.deltathickness = NaN;
    8289        this.love_h         = 0; //provided by PREM model
    8390        this.love_l         = 0; //idam
     91        this.hemisphere     = 0;
    8492        this.degacc         = 0;
    8593        this.requested_outputs = [];
    8694        this.transitions    = [];
Note: See TracBrowser for help on using the repository browser.