Changeset 24044 for issm/trunk-jpl/src/m/classes/basalforcingsismip6.m
- Timestamp:
- 06/24/19 07:44:12 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/classes/basalforcingsismip6.m
r24010 r24044 15 15 geothermalflux = NaN; 16 16 groundedice_melting_rate = NaN; 17 melt_anomaly = NaN; 17 18 end 18 19 methods … … 24 25 self.geothermalflux=project3d(md,'vector',self.geothermalflux,'type','element','layer',1); %bedrock only gets geothermal flux 25 26 self.groundedice_melting_rate=project3d(md,'vector',self.groundedice_melting_rate,'type','node','layer',1); 27 self.melt_anomaly=project3d(md,'vector',self.melt_anomaly,'type','element','layer',1); %bedrock only gets geothermal flux 26 28 end % }}} 27 29 function self = basalforcingsismip6(varargin) % {{{ … … 61 63 md = checkfield(md,'fieldname','basalforcings.geothermalflux','NaN',1,'Inf',1,'>=',0,'timeseries',1); 62 64 md = checkfield(md,'fieldname','basalforcings.groundedice_melting_rate','NaN',1,'Inf',1,'timeseries',1); 65 if length(md.basalforcings.melt_anomaly)>1, 66 md = checkfield(md,'fieldname','basalforcings.melt_anomaly','NaN',1,'Inf',1,'timeseries',1); 67 end 63 68 64 69 md = checkfield(md,'fieldname','basalforcings.tf','size',[1,1,numel(md.basalforcings.tf_depths)]); … … 79 84 fielddisplay(self,'geothermalflux','geothermal heat flux (W/m^2)'); 80 85 fielddisplay(self,'groundedice_melting_rate','basal melting rate (positive if melting) (m/yr)'); 86 fielddisplay(self,'melt_anomaly','floating ice basal melt anomaly (m/yr)'); 81 87 82 88 end % }}} … … 95 101 WriteData(fid,prefix,'object',self,'fieldname','geothermalflux','format','DoubleMat','name','md.basalforcings.geothermalflux','mattype',1,'timeserieslength',md.mesh.numberofelements+1,'yts',md.constants.yts); 96 102 WriteData(fid,prefix,'object',self,'fieldname','groundedice_melting_rate','format','DoubleMat','mattype',1,'scale',1./yts,'timeserieslength',md.mesh.numberofvertices+1,'yts',md.constants.yts); 103 WriteData(fid,prefix,'object',self,'fieldname','melt_anomaly','format','DoubleMat','mattype',1,'scale',1./yts,'timeserieslength',md.mesh.numberofvertices+1,'yts',md.constants.yts); 97 104 98 105 end % }}}
Note:
See TracChangeset
for help on using the changeset viewer.