Changeset 25836 for issm/trunk/src/m/classes/friction.m
- Timestamp:
- 12/08/20 08:45:53 (4 years ago)
- Location:
- issm/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk ¶
- Property svn:mergeinfo changed
-
issm/trunk/src ¶
- Property svn:mergeinfo changed
-
TabularUnified issm/trunk/src/m/classes/friction.m ¶
r24686 r25836 1 1 %FRICTION class definition 2 2 % 3 % 4 % 3 % Usage: 4 % friction=friction(); 5 5 6 6 classdef friction … … 66 66 67 67 otherwise 68 error('not supported yet'); 68 error('not supported yet'); 69 69 end 70 70 end % }}} … … 79 79 end % }}} 80 80 function marshall(self,prefix,md,fid) % {{{ 81 yts=md.constants.yts;82 83 81 WriteData(fid,prefix,'name','md.friction.law','data',1,'format','Integer'); 84 WriteData(fid,prefix,'object',self,'fieldname','coefficient','format','DoubleMat','mattype',1,'timeserieslength',md.mesh.numberofvertices+1,'yts',md.constants.yts); 82 if(size(self.coefficient,1)==md.mesh.numberofvertices | size(self.coefficient,1)==md.mesh.numberofvertices+1), 83 mattype=1; 84 tsl = md.mesh.numberofvertices; 85 else 86 mattype=2; 87 tsl = md.mesh.numberofelements; 88 end 89 WriteData(fid,prefix,'object',self,'fieldname','coefficient','format','DoubleMat','mattype',mattype,'timeserieslength',tsl+1,'yts',md.constants.yts); 85 90 WriteData(fid,prefix,'object',self,'fieldname','p','format','DoubleMat','mattype',2); 86 91 WriteData(fid,prefix,'object',self,'fieldname','q','format','DoubleMat','mattype',2);
Note:
See TracChangeset
for help on using the changeset viewer.