Changeset 19105 for issm/trunk/src/m/classes/SMBhenning.m
- Timestamp:
- 02/12/15 16:48:40 (10 years ago)
- Location:
- issm/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk
- Property svn:ignore
-
old new 1 build-fw 2 build-ad 1 3 nightlylog 2 4 configure.sh
-
- Property svn:mergeinfo changed
/issm/trunk-jpl merged: 18302-18306,18308-18311,18313-18322,18326-18337,18339-18351,18353-18355,18357-18513,18515-19101
- Property svn:ignore
-
issm/trunk/src
- Property svn:mergeinfo changed
-
issm/trunk/src/m/classes/SMBhenning.m
r17806 r19105 9 9 end 10 10 methods 11 function obj= SMBhenning(varargin) % {{{11 function self = SMBhenning(varargin) % {{{ 12 12 switch nargin 13 13 case 0 … … 29 29 30 30 end % }}} 31 function md = checkconsistency( obj,md,solution,analyses) % {{{31 function md = checkconsistency(self,md,solution,analyses) % {{{ 32 32 33 33 if ismember(MasstransportAnalysisEnum(),analyses), 34 md = checkfield(md,'fieldname','surfaceforcings.smbref',' forcing',1,'NaN',1);34 md = checkfield(md,'fieldname','surfaceforcings.smbref','timeseries',1,'NaN',1); 35 35 end 36 36 if ismember(BalancethicknessAnalysisEnum(),analyses), … … 38 38 end 39 39 end % }}} 40 function disp( obj) % {{{40 function disp(self) % {{{ 41 41 disp(sprintf(' surface forcings parameters:')); 42 fielddisplay( obj,'smbref','reference smb from which deviation is calculated [m/yr ice eq]');42 fielddisplay(self,'smbref','reference smb from which deviation is calculated [m/yr ice eq]'); 43 43 end % }}} 44 function marshall( obj,md,fid) % {{{44 function marshall(self,md,fid) % {{{ 45 45 46 46 yts=365.0*24.0*3600.0; 47 47 48 48 WriteData(fid,'enum',SurfaceforcingsEnum(),'data',SMBhenningEnum(),'format','Integer'); 49 WriteData(fid,'object', obj,'class','surfaceforcings','fieldname','smbref','format','DoubleMat','mattype',1,'scale',1./yts,'forcinglength',md.mesh.numberofvertices+1);49 WriteData(fid,'object',self,'class','surfaceforcings','fieldname','smbref','format','DoubleMat','mattype',1,'scale',1./yts,'timeserieslength',md.mesh.numberofvertices+1); 50 50 end % }}} 51 51 end
Note:
See TracChangeset
for help on using the changeset viewer.