Changeset 18278
- Timestamp:
- 07/21/14 17:43:57 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/classes/damage.py
r18043 r18278 63 63 s+="%s\n" % fielddisplay(self,"penalty_threshold","threshold to declare convergence of damage evolution solution (default is 0)") 64 64 s+="%s\n" % fielddisplay(self,"penalty_factor","scaling exponent (default is 3)") 65 66 if self.law== 1 or self.law == 2:67 65 s+="%s\n" % fielddisplay(self,"c1","damage parameter 1 ") 68 66 s+="%s\n" % fielddisplay(self,"c2","damage parameter 2 ") … … 132 130 md = checkfield(md,'fieldname','damage.D','>=',0,'<=',self.max_damage,'size',[md.mesh.numberofvertices]) 133 131 md = checkfield(md,'fieldname','damage.max_damage','<',1,'>=',0) 134 md = checkfield(md,'fieldname','damage.law','numel',[1],'values',[0,1,2 ])132 md = checkfield(md,'fieldname','damage.law','numel',[1],'values',[0,1,2,3]) 135 133 md = checkfield(md,'fieldname','damage.spcdamage','forcing',1) 136 134 md = checkfield(md,'fieldname','damage.stabilization','numel',[1],'values',[0,1,2]) … … 140 138 md = checkfield(md,'fieldname','damage.penalty_lock','>=0',0) 141 139 md = checkfield(md,'fieldname','damage.penalty_threshold','>=0',0) 142 143 if self.law == 1 or self.law == 2:144 140 md = checkfield(md,'fieldname','damage.healing','>=',0) 145 141 md = checkfield(md,'fieldname','damage.c1','>=',0) … … 171 167 WriteData(fid,'object',self,'fieldname','penalty_lock','format','Integer') 172 168 WriteData(fid,'object',self,'fieldname','penalty_factor','format','Double') 173 174 if self.law==1 or self.law==2:175 169 WriteData(fid,'object',self,'fieldname','c1','format','Double') 176 170 WriteData(fid,'object',self,'fieldname','c2','format','Double')
Note:
See TracChangeset
for help on using the changeset viewer.