Changeset 23824
- Timestamp:
- 04/06/19 21:14:11 (6 years ago)
- Location:
- issm/trunk-jpl/src/m/classes
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified issm/trunk-jpl/src/m/classes/calvingminthickness.m ¶
r23652 r23824 39 39 if (~strcmp(solution,'TransientSolution') | md.transient.ismovingfront==0), return; end 40 40 41 md = checkfield(md,'fieldname','calving.min_thickness','>',0,'NaN',1,'Inf',1 );41 md = checkfield(md,'fieldname','calving.min_thickness','>',0,'NaN',1,'Inf',1,'numel',1); 42 42 end % }}} 43 43 function disp(self) % {{{ 44 44 disp(sprintf(' Calving Minimum thickness:')); 45 fielddisplay(self,'min_thickness','minimum thickness below which no ice is allowed ');45 fielddisplay(self,'min_thickness','minimum thickness below which no ice is allowed [m]'); 46 46 47 47 end % }}} -
TabularUnified issm/trunk-jpl/src/m/classes/calvingvonmises.m ¶
r23652 r23824 9 9 stress_threshold_floatingice = 0.; 10 10 meltingrate=NaN; 11 min_thickness = 0.; 11 12 end 12 13 methods … … 36 37 self.stress_threshold_groundedice = 1e6; 37 38 self.stress_threshold_floatingice = 150e3; 39 40 %For now we turn this off by setting the threshold to 0 41 self.min_thickness = 0.; 38 42 end % }}} 39 43 function md = checkconsistency(self,md,solution,analyses) % {{{ … … 43 47 md = checkfield(md,'fieldname','calving.stress_threshold_groundedice','>',0,'nan',1,'Inf',1); 44 48 md = checkfield(md,'fieldname','calving.stress_threshold_floatingice','>',0,'nan',1,'Inf',1); 49 md = checkfield(md,'fieldname','calving.min_thickness','>=',0,'NaN',1,'Inf',1,'numel',1); 45 50 end % }}} 46 51 function disp(self) % {{{ … … 48 53 fielddisplay(self,'stress_threshold_groundedice','sigma_max applied to grounded ice only [Pa]'); 49 54 fielddisplay(self,'stress_threshold_floatingice','sigma_max applied to floating ice only [Pa]'); 55 fielddisplay(self,'min_thickness','minimum thickness below which no ice is allowed [m]'); 50 56 51 57 end % }}} … … 55 61 WriteData(fid,prefix,'object',self,'fieldname','stress_threshold_groundedice','format','DoubleMat','mattype',1); 56 62 WriteData(fid,prefix,'object',self,'fieldname','stress_threshold_floatingice','format','DoubleMat','mattype',1); 63 WriteData(fid,prefix,'object',self,'fieldname','min_thickness','format','Double'); 57 64 end % }}} 58 65 end -
TabularUnified issm/trunk-jpl/src/m/classes/calvingvonmises.py ¶
r23658 r23824 17 17 self.stress_threshold_floatingice = 0. 18 18 self.meltingrate = float('NaN') 19 self.min_thickness = 0. 19 20 20 21 #set defaults … … 26 27 string="%s\n%s"%(string,fielddisplay(self,'stress_threshold_groundedice','sigma_max applied to grounded ice only [Pa]')) 27 28 string="%s\n%s"%(string,fielddisplay(self,'stress_threshold_floatingice','sigma_max applied to floating ice only [Pa]')) 29 string="%s\n%s"%(string,fielddisplay(self,'min_thickness','minimum thickness below which no ice is allowed [m]')) 28 30 29 31 return string … … 36 38 self.stress_threshold_groundedice = 1e6 37 39 self.stress_threshold_floatingice = 150e3 40 41 #turn off min_thickness by default. 42 self.min_thickness=0. 38 43 return self 39 44 #}}} … … 45 50 md = checkfield(md,'fieldname','calving.stress_threshold_groundedice','>',0,'nan',1,'Inf',1) 46 51 md = checkfield(md,'fieldname','calving.stress_threshold_floatingice','>',0,'nan',1,'Inf',1) 52 md = checkfield(md,'fieldname','calving.min_thickness','>=',0,'NaN',1,'Inf',1,'numel',[1]); 47 53 48 54 return md … … 54 60 WriteData(fid,prefix,'object',self,'fieldname','stress_threshold_groundedice','format','DoubleMat','mattype',1) 55 61 WriteData(fid,prefix,'object',self,'fieldname','stress_threshold_floatingice','format','DoubleMat','mattype',1) 62 WriteData(fid,prefix,'object',self,'fieldname','min_thickness','format','Double'); 56 63 # }}}
Note:
See TracChangeset
for help on using the changeset viewer.