Changeset 23170
- Timestamp:
- 08/24/18 10:06:45 (7 years ago)
- Location:
- issm/trunk-jpl/src/m/classes
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified issm/trunk-jpl/src/m/classes/levelset.m ¶
r21995 r23170 10 10 reinit_frequency = 5; 11 11 calving_max = 0.; 12 fe = 'P1'; 12 13 end 13 14 methods … … 41 42 self.calving_max = 3000.; 42 43 44 %Linear elements by default 45 self.fe='P1'; 46 43 47 end % }}} 44 48 function md = checkconsistency(self,md,solution,analyses) % {{{ … … 49 53 md = checkfield(md,'fieldname','levelset.stabilization','values',[0 1 2]); 50 54 md = checkfield(md,'fieldname','levelset.calving_max','numel',1,'NaN',1,'Inf',1,'>',0); 55 md = checkfield(md,'fieldname','levelset.fe','values',{'P1','P2'}); 51 56 end % }}} 52 57 function disp(self) % {{{ … … 56 61 fielddisplay(self,'reinit_frequency','Amount of time steps after which the levelset function in re-initialized'); 57 62 fielddisplay(self,'calving_max','maximum allowed calving rate (m/a)'); 63 fielddisplay(self,'fe','Finite Element type: ''P1'' (default), or ''P2'''); 58 64 end % }}} 59 65 function marshall(self,prefix,md,fid) % {{{ … … 65 71 WriteData(fid,prefix,'object',self,'fieldname','reinit_frequency','format','Integer'); 66 72 WriteData(fid,prefix,'object',self,'fieldname','calving_max','format','Double','scale',1./yts); 73 WriteData(fid,prefix,'object',self,'fieldname','fe','format','String'); 67 74 end % }}} 68 75 function savemodeljs(self,fid,modelname) % {{{ -
TabularUnified issm/trunk-jpl/src/m/classes/levelset.py ¶
r21995 r23170 18 18 self.reinit_frequency = 0 19 19 self.calving_max = 0. 20 self.fe = 'P1' 20 21 21 22 #set defaults … … 29 30 string="%s\n%s"%(string,fielddisplay(self,'reinit_frequency','Amount of time steps after which the levelset function in re-initialized')) 30 31 string="%s\n%s"%(string,fielddisplay(self,'calving_max','maximum allowed calving rate (m/a)')) 32 string="%s\n%s"%(string,fielddisplay(self,'fe','Finite Element type: ''P1'' (default), or ''P2''')) 31 33 32 34 return string … … 41 43 self.stabilization = 1 42 44 self.reinit_frequency = 5 43 self.calving_max = 3000 45 self.calving_max = 3000. 46 47 #Linear elements by default 48 self.fe='P1' 44 49 45 50 return self … … 54 59 md = checkfield(md,'fieldname','levelset.stabilization','values',[0,1,2]); 55 60 md = checkfield(md,'fieldname','levelset.calving_max','NaN',1,'Inf',1,'>',0); 61 md = checkfield(md,'fieldname','levelset.fe','values',['P1','P2']); 56 62 57 63 return md … … 65 71 WriteData(fid,prefix,'object',self,'fieldname','reinit_frequency','format','Integer'); 66 72 WriteData(fid,prefix,'object',self,'fieldname','calving_max','format','Double','scale',1./yts); 73 WriteData(fid,prefix,'object',self,'fieldname','fe','format','String'); 67 74 # }}} -
TabularUnified issm/trunk-jpl/src/m/classes/thermal.py ¶
r22267 r23170 22 22 self.penalty_factor = 0 23 23 self.isenthalpy = 0 24 self.isdynamicbasalspc = 0 ;25 self.fe = 'P1' ;24 self.isdynamicbasalspc = 0 25 self.fe = 'P1' 26 26 self.requested_outputs = [] 27 27
Note:
See TracChangeset
for help on using the changeset viewer.