Changeset 27135
- Timestamp:
- 07/01/22 17:31:26 (3 years ago)
- Location:
- issm/branches/trunk-larour-SLPS2022/src/m/classes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified issm/branches/trunk-larour-SLPS2022/src/m/classes/mask.m ¶
r27114 r27135 86 86 for i=1:length(self.ocean_levelset), 87 87 md = checkfield(md,'field',self.ocean_levelset{i},'NaN',0,'Inf',1,'timeserieslength',1,'Inf',1); 88 %check time stamps: they should be in seconds89 h=self.ocean_levelset{i};90 times=h(end,:);91 avgtime=mean(times);92 if(avgtime<10000)93 error('mask checkconsistency error messages: time tags for ocean_levelset should be in seconds!');94 end95 88 end 96 89 else … … 101 94 for i=1:length(self.ice_levelset), 102 95 md = checkfield(md,'field',self.ice_levelset{i},'NaN',0,'Inf',1,'timeserieslength',1,'Inf',1); 103 %check time stamps: they should be in seconds104 h=self.ice_levelset{i};105 times=h(end,:);106 avgtime=mean(times);107 if(avgtime<10000)108 error('mask checkconsistency error messages: time tags for ice_levelset should be in seconds!');109 end110 96 end 111 97 else … … 120 106 121 107 if isa(self.ocean_levelset,'cell'), 122 WriteData(fid,prefix,'object',self,'fieldname','ocean_levelset','name','md.mask.ocean_levelset','format','MatArray','timeseries length',md.mesh.numberofvertices+1,'yts',md.constants.yts);108 WriteData(fid,prefix,'object',self,'fieldname','ocean_levelset','name','md.mask.ocean_levelset','format','MatArray','timeseries',1,'timeserieslength',md.mesh.numberofvertices+1,'yts',md.constants.yts); 123 109 else 124 WriteData(fid,prefix,'object',self,'fieldname','ocean_levelset','format','DoubleMat','mattype',1,'timeseries length',md.mesh.numberofvertices+1,'yts',md.constants.yts);110 WriteData(fid,prefix,'object',self,'fieldname','ocean_levelset','format','DoubleMat','mattype',1,'timeseries',1,'timeserieslength',md.mesh.numberofvertices+1,'yts',md.constants.yts); 125 111 end 126 112 127 113 if isa(self.ice_levelset,'cell'), 128 WriteData(fid,prefix,'object',self,'fieldname','ice_levelset','name','md.mask.ice_levelset','format','MatArray','timeseries length',md.mesh.numberofvertices+1,'yts',md.constants.yts);114 WriteData(fid,prefix,'object',self,'fieldname','ice_levelset','name','md.mask.ice_levelset','format','MatArray','timeseries',1,'timeserieslength',md.mesh.numberofvertices+1,'yts',md.constants.yts); 129 115 else 130 WriteData(fid,prefix,'object',self,'fieldname','ice_levelset','format','DoubleMat','mattype',1,'timeseries length',md.mesh.numberofvertices+1,'yts',md.constants.yts);116 WriteData(fid,prefix,'object',self,'fieldname','ice_levelset','format','DoubleMat','mattype',1,'timeseries',1,'timeserieslength',md.mesh.numberofvertices+1,'yts',md.constants.yts); 131 117 end 132 118 end % }}} -
TabularUnified issm/branches/trunk-larour-SLPS2022/src/m/classes/mmemasstransport.m ¶
r27103 r27135 57 57 md = checkfield(md,'fieldname','mmemasstransport.requested_outputs','stringrow',1); 58 58 59 %check time stamps: they should be in seconds60 for i=1:nt,61 h=self.thickness{i};62 times=h(end,:);63 avgtime=mean(times);64 if(avgtime<10000)65 error('mmemasstransport checkconsistency error messages: time tags for thicknesses should be in seconds!');66 end67 end68 59 end % }}} 69 60 function disp(self) % {{{ … … 81 72 WriteData(fid,prefix,'object',self,'fieldname','ids','format','DoubleMat','mattype',3); 82 73 WriteData(fid,prefix,'object',self,'fieldname','partition','format','DoubleMat','mattype',1); 83 WriteData(fid,prefix,'object',self,'fieldname','thickness','format','MatArray','timeseries',1,'timeserieslength',md.mesh.numberof vertices+1,'yts',md.constants.yts);74 WriteData(fid,prefix,'object',self,'fieldname','thickness','format','MatArray','timeseries',1,'timeserieslength',md.mesh.numberofelements+1,'yts',md.constants.yts); 84 75 85 76 %process requested outputs
Note:
See TracChangeset
for help on using the changeset viewer.