source:
issm/oecreview/Archive/22819-23185/ISSM-22874-22875.diff
Last change on this file was 23186, checked in by , 7 years ago | |
---|---|
File size: 1.4 KB |
-
../trunk-jpl/src/m/classes/friction.py
37 37 self.p=project3d(md,'vector',self.p,'type','element') 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') 46 44 return self … … 70 68 WriteData(fid,prefix,'object',self,'fieldname','p','format','DoubleMat','mattype',2) 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: 76 74 raise ValueError('md.friction.coupling larger than 4, not supported yet')
Note:
See TracBrowser
for help on using the repository browser.