Changeset 18749
- Timestamp:
- 11/06/14 10:30:58 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/classes/hydrologydc.py
r18710 r18749 41 41 self.epl_max_thickness = 0 42 42 self.epl_conductivity = 0 43 self.eplflip_lock = 0 43 44 44 45 #set defaults … … 90 91 string="%s\n%s"%(string,fielddisplay(self,'epl_colapse_thickness','epl colapsing thickness [m]')) 91 92 string="%s\n%s"%(string,fielddisplay(self,'epl_conductivity','epl conductivity [m^2/s]')) 93 string="%s\n%s"%(string,fielddisplay(self,'eplflip_lock','lock epl activity to avoid flip-floping (default is 0, no stabilization)')) 92 94 return string 93 95 #}}} … … 98 100 self.isefficientlayer = 1 99 101 self.penalty_factor = 3 102 self.penalty_lock = 0 100 103 self.rel_tol = 1.0e-06 101 104 self.max_iter = 100 … … 116 119 self.epl_max_thickness = 5.0 117 120 self.epl_conductivity = 8.0e-02 118 121 self.eplflip_lock = 0 122 119 123 return self 120 124 # }}} … … 136 140 md = checkfield(md,'fieldname','hydrology.isefficientlayer','numel',[1],'values',[0,1]) 137 141 md = checkfield(md,'fieldname','hydrology.penalty_factor','>',0.,'numel',[1]) 142 md = checkfield(md,'fieldname','hydrology.penalty_lock','>=',0.,'numel',[1]) 138 143 md = checkfield(md,'fieldname','hydrology.rel_tol','>',0.,'numel',[1]) 139 144 md = checkfield(md,'fieldname','hydrology.max_iter','>',0.,'numel',[1]) … … 161 166 md = checkfield(md,'fieldname','hydrology.epl_initial_thickness','numel',[1],'>',0.) 162 167 md = checkfield(md,'fieldname','hydrology.epl_colapse_thickness','numel',[1],'>',0.) 168 md = checkfield(md,'fieldname','hydrology.eplflip_lock','>=',0.,'numel',[1]) 163 169 if self.epl_colapse_thickness > self.epl_initial_thickness: 164 170 md.checkmessage('Colapsing thickness for EPL larger than initial thickness') … … 197 203 WriteData(fid,'object',self,'fieldname','epl_colapse_thickness','format','Double') 198 204 WriteData(fid,'object',self,'fieldname','epl_conductivity','format','Double') 199 # }}} 205 WriteData(fid,'object',self,'fieldname','eplflip_lock','format','Integer') 206 # }}}
Note:
See TracChangeset
for help on using the changeset viewer.