Changeset 17480 for issm/trunk-jpl/src/m/classes/damage.py
- Timestamp:
- 03/19/14 18:29:13 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/classes/damage.py
r17401 r17480 2 2 from EnumDefinitions import * 3 3 from StringToEnum import StringToEnum 4 from checkfield import * 5 from WriteData import * 4 from checkfield import checkfield 5 from WriteData import WriteData 6 import MatlabFuncs as m 6 7 7 8 class damage(object): … … 109 110 def defaultoutputs(self,md): # {{{ 110 111 111 if strcmp(md.mesh.meshtype(),'3D'):112 if m.strcmp(md.mesh.meshtype(),'3D'): 112 113 list = ['DamageD'] 113 elif strcmp(md.mesh.meshtype(),'2Dhorizontal'):114 elif m.strcmp(md.mesh.meshtype(),'2Dhorizontal'): 114 115 list = ['DamageD'] 115 elif strcmp(md.mesh.meshtype(),'2Dvertical'):116 elif m.strcmp(md.mesh.meshtype(),'2Dvertical'): 116 117 list = ['DamageD'] 117 118 else: … … 143 144 md = checkfield(md,'fieldname','damage.equiv_stress','numel',[1],'values',[0,1]) 144 145 md = checkfield(md,'fieldname','damage.requested_outputs','stringrow',1) 145 elif strcmpi(self.law,'undamaged'):146 elif m.strcmpi(self.law,'undamaged'): 146 147 if (solution==DamageEvolutionSolutionEnum): 147 148 raise RuntimeError('Invalid evolution law (md.damage.law) for a damage solution')
Note:
See TracChangeset
for help on using the changeset viewer.