Changeset 18278


Ignore:
Timestamp:
07/21/14 17:43:57 (11 years ago)
Author:
cborstad
Message:

CHG: display and marshall all damage params if isdamage=1, since now damage can be calculated from a Stressbalance

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/classes/damage.py

    r18043 r18278  
    6363                        s+="%s\n" % fielddisplay(self,"penalty_threshold","threshold to declare convergence of damage evolution solution (default is 0)")
    6464                        s+="%s\n" % fielddisplay(self,"penalty_factor","scaling exponent (default is 3)")
    65 
    66                 if self.law== 1 or self.law == 2:
    6765                        s+="%s\n" % fielddisplay(self,"c1","damage parameter 1 ")
    6866                        s+="%s\n" % fielddisplay(self,"c2","damage parameter 2 ")
     
    132130                        md = checkfield(md,'fieldname','damage.D','>=',0,'<=',self.max_damage,'size',[md.mesh.numberofvertices])
    133131                        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])
    135133                        md = checkfield(md,'fieldname','damage.spcdamage','forcing',1)
    136134                        md = checkfield(md,'fieldname','damage.stabilization','numel',[1],'values',[0,1,2])
     
    140138                        md = checkfield(md,'fieldname','damage.penalty_lock','>=0',0)
    141139                        md = checkfield(md,'fieldname','damage.penalty_threshold','>=0',0)
    142 
    143                 if self.law == 1 or self.law == 2:
    144140                        md = checkfield(md,'fieldname','damage.healing','>=',0)
    145141                        md = checkfield(md,'fieldname','damage.c1','>=',0)
     
    171167                        WriteData(fid,'object',self,'fieldname','penalty_lock','format','Integer')
    172168                        WriteData(fid,'object',self,'fieldname','penalty_factor','format','Double')
    173 
    174                 if self.law==1 or self.law==2:
    175169                        WriteData(fid,'object',self,'fieldname','c1','format','Double')
    176170                        WriteData(fid,'object',self,'fieldname','c2','format','Double')
Note: See TracChangeset for help on using the changeset viewer.