Changeset 22875
- Timestamp:
- 06/25/18 07:32:44 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/classes/friction.py
r22861 r22875 38 38 self.q=project3d(md,'vector',self.q,'type','element') 39 39 #if self.coupling==0: #doesnt work with empty loop, so just skip it? 40 if self.coupling ==3:40 if self.coupling in[3,4]: 41 41 self.effective_pressure=project3d(md,'vector',self.effective_pressure,'type','node','layer',1) 42 elif self.coupling==4:43 raise ValueError('coupling not supported yet')44 42 elif self.coupling > 4: 45 43 raise ValueError('md.friction.coupling larger than 4, not supported yet') … … 71 69 WriteData(fid,prefix,'object',self,'fieldname','q','format','DoubleMat','mattype',2) 72 70 WriteData(fid,prefix,'class','friction','object',self,'fieldname','coupling','format','Integer') 73 if self.coupling ==3:71 if self.coupling in[3,4]: 74 72 WriteData(fid,prefix,'class','friction','object',self,'fieldname','effective_pressure','format','DoubleMat','mattype',1,'timeserieslength',md.mesh.numberofvertices+1,'yts',md.constants.yts) 75 73 elif self.coupling > 4:
Note:
See TracChangeset
for help on using the changeset viewer.