Changeset 22352
- Timestamp:
- 01/14/18 14:25:11 (7 years ago)
- Location:
- issm/trunk-jpl/src/m/classes
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/classes/esa.js
r21260 r22352 10 10 //numerical discretization accuracy 11 11 this.degacc=.01; 12 12 13 //computational flags: 14 this.hemisphere=0; 15 13 16 //output default: 14 17 this.requested_outputs=['default']; … … 26 29 md = checkfield(md,'fieldname','esa.love_h','NaN',1,'Inf',1); 27 30 md = checkfield(md,'fieldname','esa.love_l','NaN',1,'Inf',1); 31 md = checkfield(md,'fieldname','esa.hemisphere','NaN',1,'Inf',1); 28 32 md = checkfield(md,'fieldname','esa.degacc','size',[1, 1],'>=',1e-10); 29 33 md = checkfield(md,'fieldname','esa.requested_outputs','stringrow',1); … … 48 52 fielddisplay(this,'love_h','load Love number for radial displacement'); 49 53 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'); 50 55 fielddisplay(this,'degacc',"accuracy (default .01 deg) for numerical discretization of the Green's functions"); 51 56 fielddisplay(this,'transitions','indices into parts of the mesh that will be icecaps'); … … 57 62 WriteData(fid,prefix,'object',this,'fieldname','love_h','format','DoubleMat','mattype',1); 58 63 WriteData(fid,prefix,'object',this,'fieldname','love_l','format','DoubleMat','mattype',1); 64 WriteData(fid,prefix,'object',this,'fieldname','hemisphere','format','Integer'); 59 65 WriteData(fid,prefix,'object',this,'fieldname','degacc','format','Double'); 60 66 WriteData(fid,prefix,'object',this,'fieldname','transitions','format','MatArray'); … … 75 81 this.love_h=NullFix(this.love_h,NaN); 76 82 this.love_l=NullFix(this.love_l,NaN); 83 this.hemisphere=NullFix(this.hemisphere,NaN); 77 84 this.degacc=NullFix(this.degacc,NaN); 78 85 }//}}} … … 82 89 this.love_h = 0; //provided by PREM model 83 90 this.love_l = 0; //idam 91 this.hemisphere = 0; 84 92 this.degacc = 0; 85 93 this.requested_outputs = []; -
issm/trunk-jpl/src/m/classes/esa.m
r22349 r22352 44 44 md = checkfield(md,'fieldname','esa.love_h','NaN',1,'Inf',1); 45 45 md = checkfield(md,'fieldname','esa.love_l','NaN',1,'Inf',1); 46 md = checkfield(md,'fieldname','esa.hemisphere','NaN',1,'Inf',1); 46 47 md = checkfield(md,'fieldname','esa.degacc','size',[1 1],'>=',1e-10); 47 48 md = checkfield(md,'fieldname','esa.requested_outputs','stringrow',1); -
issm/trunk-jpl/src/m/classes/esa.py
r22122 r22352 18 18 self.love_h = 0 #provided by PREM model() 19 19 self.love_l = 0 #ideam 20 self.hemisphere = 0 20 21 self.degacc = 0 21 22 self.requested_outputs = [] … … 30 31 string="%s\n%s"%(string,fielddisplay(self,'love_h','load Love number for radial displacement')) 31 32 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')) 32 34 string="%s\n%s"%(string,fielddisplay(self,'degacc','accuracy (default .01 deg) for numerical discretization of the Green''s functions')) 33 35 string="%s\n%s"%(string,fielddisplay(self,'transitions','indices into parts of the mesh that will be icecaps')) … … 40 42 #numerical discretization accuracy 41 43 self.degacc=.01 42 44 45 #computational flags: 46 self.hemisphere=0; 47 43 48 #output default: 44 49 self.requested_outputs=['default'] … … 60 65 md = checkfield(md,'fieldname','esa.love_h','NaN',1,'Inf',1) 61 66 md = checkfield(md,'fieldname','esa.love_l','NaN',1,'Inf',1) 67 md = checkfield(md,'fieldname','esa.hemisphere','NaN',1,'Inf',1) 62 68 md = checkfield(md,'fieldname','esa.degacc','size',[1,1],'>=',1e-10) 63 69 md = checkfield(md,'fieldname','esa.requested_outputs','stringrow',1) … … 75 81 WriteData(fid,prefix,'object',self,'fieldname','love_h','format','DoubleMat','mattype',1) 76 82 WriteData(fid,prefix,'object',self,'fieldname','love_l','format','DoubleMat','mattype',1) 83 WriteData(fid,prefix,'object',self,'fieldname','hemisphere','format','Integer') 77 84 WriteData(fid,prefix,'object',self,'fieldname','degacc','format','Double') 78 85 WriteData(fid,prefix,'object',self,'fieldname','transitions','format','MatArray')
Note:
See TracChangeset
for help on using the changeset viewer.