Changeset 16560 for issm/trunk/src/m/classes/mesh.py
- Timestamp:
- 10/28/13 14:43:03 (11 years ago)
- Location:
- issm/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk
- Property svn:mergeinfo changed
/issm/trunk-jpl merged: 16138-16453,16455-16554
- Property svn:mergeinfo changed
-
issm/trunk/src
- Property svn:mergeinfo changed
-
issm/trunk/src/m/classes/mesh.py
r16137 r16560 56 56 #set defaults 57 57 self.setdefaultparameters() 58 59 58 #}}} 60 59 def __repr__(self): # {{{ … … 163 162 return md 164 163 # }}} 164 def meshtype(self): # {{{ 165 166 if self.dimension==2: 167 return "2Dhorizontal" 168 else: 169 return "3D" 170 #}}} 165 171 def marshall(self,md,fid): # {{{ 172 WriteData(fid,'enum',MeshTypeEnum(),'data',StringToEnum("Mesh"+self.meshtype())[0],'format','Integer'); 166 173 WriteData(fid,'object',self,'fieldname','x','format','DoubleMat','mattype',1) 167 174 WriteData(fid,'object',self,'fieldname','y','format','DoubleMat','mattype',1) 168 175 WriteData(fid,'object',self,'fieldname','z','format','DoubleMat','mattype',1) 169 176 WriteData(fid,'object',self,'fieldname','elements','format','DoubleMat','mattype',2) 170 WriteData(fid,'object',self,'fieldname','dimension','format','Integer')171 177 WriteData(fid,'object',self,'fieldname','numberoflayers','format','Integer') 172 178 WriteData(fid,'object',self,'fieldname','numberofelements','format','Integer')
Note:
See TracChangeset
for help on using the changeset viewer.