Changeset 25221
- Timestamp:
- 07/06/20 20:08:53 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/classes/surfaceload.m
r25152 r25221 26 26 27 27 end % }}} 28 function md = checkconsistency(self,md,solution,analyses) % {{{28 function md = checkconsistency(self,md,solution,analyses) % {{{ 29 29 30 30 if ~ismember('SealevelriseAnalysis',analyses) | (strcmp(solution,'TransientSolution') & md.transient.isslr==0), … … 32 32 end 33 33 if ~isempty(self.icethicknesschange), 34 md = checkfield(md,'fieldname','solidearth.surfaceload.icethicknesschange','timeseries',1,'NaN',1,'Inf',1); 34 if isa(self.icethicknesschange,'cell'), 35 for i=1:length(self.icethicknesschange), 36 md = checkfield(md,'field',self.icethicknesschange{i},'NaN',0,'Inf',1,'timeserieslength',1,'Inf',1); 37 end 38 else 39 md = checkfield(md,'field',self.icethicknesschange,'NaN',1,'Inf',1,'timeserieslength',1,'Inf',1); 40 end 35 41 end 36 42 if ~isempty(self.waterheightchange), … … 69 75 self.other=zeros(md.mesh.numberofelements+1,1); 70 76 end 71 WriteData(fid,prefix,'object',self,'fieldname','icethicknesschange','name','md.solidearth.surfaceload.icethicknesschange',... 77 if isa(self.icethicknesschange,'cell'), 78 WriteData(fid,prefix,'object',self,'fieldname','icethicknesschange','name','md.solidearth.surfaceload.icethicknesschange',... 79 'format','MatArray','timeserieslength',md.mesh.numberofelements+1,'yts',md.constants.yts); 80 else 81 WriteData(fid,prefix,'object',self,'fieldname','icethicknesschange','name','md.solidearth.surfaceload.icethicknesschange',... 72 82 'format','DoubleMat','mattype',2,'timeserieslength',md.mesh.numberofelements+1,'yts',md.constants.yts); 83 end 84 73 85 WriteData(fid,prefix,'object',self,'fieldname','waterheightchange','name','md.solidearth.surfaceload.waterheightchange',... 74 86 'format','DoubleMat','mattype',2,'timeserieslength',md.mesh.numberofelements+1,'yts',md.constants.yts); … … 78 90 end % }}} 79 91 function savemodeljs(self,fid,modelname) % {{{ 80 92 81 93 writejs1Darray(fid,[modelname '.surfaceload.icethicknesschange'],self.icethicknesschange); 82 94 writejs1Darray(fid,[modelname '.surfaceload.waterheightchange'],self.waterheightchange);
Note:
See TracChangeset
for help on using the changeset viewer.