Changeset 19105 for issm/trunk/src/m/classes/SMBcomponents.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/SMBcomponents.m
r18301 r19105 11 11 end 12 12 methods 13 function obj= SMBcomponents(varargin) % {{{13 function self = SMBcomponents(varargin) % {{{ 14 14 switch nargin 15 15 case 0 … … 41 41 42 42 end % }}} 43 function md = checkconsistency( obj,md,solution,analyses) % {{{43 function md = checkconsistency(self,md,solution,analyses) % {{{ 44 44 45 45 if ismember(MasstransportAnalysisEnum(),analyses), 46 md = checkfield(md,'fieldname','surfaceforcings.accumulation',' forcing',1,'NaN',1);46 md = checkfield(md,'fieldname','surfaceforcings.accumulation','timeseries',1,'NaN',1); 47 47 end 48 48 if ismember(BalancethicknessAnalysisEnum(),analyses), … … 50 50 end 51 51 if ismember(MasstransportAnalysisEnum(),analyses), 52 md = checkfield(md,'fieldname','surfaceforcings.runoff',' forcing',1,'NaN',1);52 md = checkfield(md,'fieldname','surfaceforcings.runoff','timeseries',1,'NaN',1); 53 53 end 54 54 if ismember(BalancethicknessAnalysisEnum(),analyses), … … 56 56 end 57 57 if ismember(MasstransportAnalysisEnum(),analyses), 58 md = checkfield(md,'fieldname','surfaceforcings.evaporation',' forcing',1,'NaN',1);58 md = checkfield(md,'fieldname','surfaceforcings.evaporation','timeseries',1,'NaN',1); 59 59 end 60 60 if ismember(BalancethicknessAnalysisEnum(),analyses), … … 62 62 end 63 63 end % }}} 64 function disp( obj) % {{{64 function disp(self) % {{{ 65 65 disp(sprintf(' surface forcings parameters (SMB=accumulation-runoff-evaporation) :')); 66 fielddisplay( obj,'accumulation','accumulated snow [m/yr ice eq]');67 fielddisplay( obj,'runoff','amount of ice melt lost from the ice column [m/yr ice eq]');68 fielddisplay( obj,'evaporation','amount of ice lost to evaporative processes [m/yr ice eq]');66 fielddisplay(self,'accumulation','accumulated snow [m/yr ice eq]'); 67 fielddisplay(self,'runoff','amount of ice melt lost from the ice column [m/yr ice eq]'); 68 fielddisplay(self,'evaporation','amount of ice lost to evaporative processes [m/yr ice eq]'); 69 69 end % }}} 70 function marshall( obj,md,fid) % {{{70 function marshall(self,md,fid) % {{{ 71 71 72 72 yts=365.0*24.0*3600.0; 73 73 74 74 WriteData(fid,'enum',SurfaceforcingsEnum(),'data',SMBcomponentsEnum(),'format','Integer'); 75 WriteData(fid,'object', obj,'class','surfaceforcings','fieldname','accumulation','format','DoubleMat','mattype',1,'scale',1./yts,'forcinglength',md.mesh.numberofvertices+1);76 WriteData(fid,'object', obj,'class','surfaceforcings','fieldname','runoff','format','DoubleMat','mattype',1,'scale',1./yts,'forcinglength',md.mesh.numberofvertices+1);77 WriteData(fid,'object', obj,'class','surfaceforcings','fieldname','evaporation','format','DoubleMat','mattype',1,'scale',1./yts,'forcinglength',md.mesh.numberofvertices+1);75 WriteData(fid,'object',self,'class','surfaceforcings','fieldname','accumulation','format','DoubleMat','mattype',1,'scale',1./yts,'timeserieslength',md.mesh.numberofvertices+1); 76 WriteData(fid,'object',self,'class','surfaceforcings','fieldname','runoff','format','DoubleMat','mattype',1,'scale',1./yts,'timeserieslength',md.mesh.numberofvertices+1); 77 WriteData(fid,'object',self,'class','surfaceforcings','fieldname','evaporation','format','DoubleMat','mattype',1,'scale',1./yts,'timeserieslength',md.mesh.numberofvertices+1); 78 78 end % }}} 79 79 end
Note:
See TracChangeset
for help on using the changeset viewer.