Changeset 23781 for issm/trunk-jpl/src/m/classes/basalforcingsismip6.m
- Timestamp:
- 03/08/19 13:34:33 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/classes/basalforcingsismip6.m
r23777 r23781 11 11 tf = NaN; 12 12 tf_depths = NaN; 13 tf_times = NaN;14 13 delta_t = NaN; 15 14 geothermalflux = NaN; … … 54 53 md = checkfield(md,'fieldname','basalforcings.basin_id','Inf',1,'>=',0,'<=',md.basalforcings.num_basins,'size',[md.mesh.numberofelements 1]); 55 54 md = checkfield(md,'fieldname','basalforcings.gamma_0','numel',1,'NaN',1,'Inf',1,'>',0); 56 md = checkfield(md,'fieldname','basalforcings.tf_times','NaN',1,'Inf',1);57 55 md = checkfield(md,'fieldname','basalforcings.tf_depths','NaN',1,'Inf',1); 58 md = checkfield(md,'fieldname','basalforcings.tf','size',[md.mesh.numberofvertices,numel(md.basalforcings.delta_t),numel(md.basalforcings.tf_depths)],'NaN',1,'Inf',1);59 56 md = checkfield(md,'fieldname','basalforcings.delta_t','NaN',1,'Inf',1,'numel',md.basalforcings.num_basins); 60 57 md = checkfield(md,'fieldname','basalforcings.geothermalflux','NaN',1,'Inf',1,'>=',0,'timeseries',1); 61 58 md = checkfield(md,'fieldname','basalforcings.groundedice_melting_rate','NaN',1,'Inf',1,'timeseries',1); 59 60 md = checkfield(md,'fieldname','basalforcings.tf','size',[1,1,numel(md.basalforcings.tf_depths)]); 61 for i=1:numel(md.basalforcings.tf_depths) 62 md = checkfield(md,'fieldname',['basalforcings.tf{' num2str(i) '}'],'field',md.basalforcings.tf{i},'size',[md.mesh.numberofvertices+1 NaN],'NaN',1,'Inf',1,'>=',0,'timeseries',1); 63 end 62 64 63 65 end % }}} … … 68 70 fielddisplay(self,'gamma_0','melt rate coefficient (m/yr)'); 69 71 fielddisplay(self,'tf_depths','Number of vertical layers in ocean thermal forcing dataset'); 70 fielddisplay(self,'tf_times','time for each tf (in yr) ');71 72 fielddisplay(self,'tf','thermal forcing (ocean temperature minus freezing point) (degrees C)'); 72 73 fielddisplay(self,'delta_t','Ocean temperature correction per basin (degrees C)'); … … 77 78 function marshall(self,prefix,md,fid) % {{{ 78 79 79 %NEED TO ADD TF80 80 yts=md.constants.yts; 81 81 82 WriteData(fid,prefix,'name','md.basalforcings.model','data', 6,'format','Integer');82 WriteData(fid,prefix,'name','md.basalforcings.model','data',7,'format','Integer'); 83 83 WriteData(fid,prefix,'object',self,'fieldname','num_basins','format','Integer'); 84 84 WriteData(fid,prefix,'object',self,'fieldname','basin_id','data',self.basin_id-1,'name','md.basalforcings.basin_id','format','IntMat','mattype',2); %0-indexed 85 85 WriteData(fid,prefix,'object',self,'fieldname','gamma_0','format','Double'); 86 WriteData(fid,prefix,'object',self,'fieldname','tf_depths','format','DoubleMat','name','md.basalforcings.tf_depths','yts',md.constants.yts); 86 WriteData(fid,prefix,'object',self,'fieldname','tf_depths','format','DoubleMat','name','md.basalforcings.tf_depths'); 87 WriteData(fid,prefix,'object',self,'fieldname','tf','format','MatArray','name','md.basalforcings.tf','timeserieslength',md.mesh.numberofvertices+1,'yts',md.constants.yts); 87 88 WriteData(fid,prefix,'object',self,'fieldname','delta_t','format','DoubleMat','name','md.basalforcings.delta_t','timeserieslength',md.mesh.numberofvertices+1,'yts',md.constants.yts); 88 89 WriteData(fid,prefix,'object',self,'fieldname','geothermalflux','format','DoubleMat','name','md.basalforcings.geothermalflux','mattype',1,'timeserieslength',md.mesh.numberofelements+1,'yts',md.constants.yts);
Note:
See TracChangeset
for help on using the changeset viewer.