Changeset 27629
- Timestamp:
- 03/02/23 11:15:42 (2 years ago)
- Location:
- issm/trunk-jpl/src/m/classes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/classes/miscellaneous.m
r20690 r27629 25 25 end % }}} 26 26 function self = setdefaultparameters(self) % {{{ 27 28 %Add some information about the model for future reference 29 self.notes = ['Model created on ' date ' by ' char(java.lang.System.getProperty('user.name')) ', ISSM v' num2str(issmversion()) ' (path: ' pwd() ')']; 30 self.name = ''; 27 31 28 32 end % }}} -
issm/trunk-jpl/src/m/classes/spatiallinearbasalforcings.m
r26951 r27629 21 21 case 1 22 22 lb=varargin{1}; 23 if strcmpi(class(lb),'linearbasalforcings'),23 if isa(lb,'linearbasalforcings'); 24 24 nvertices=length(lb.groundedice_melting_rate); 25 25 self.groundedice_melting_rate=lb.groundedice_melting_rate; 26 26 self.geothermalflux=lb.geothermalflux; 27 self.deepwater_elevation=lb.deepwater_elevation*ones(nvertices,1); 28 self.deepwater_melting_rate=lb.deepwater_melting_rate*ones(nvertices,1); 29 self.upperwater_melting_rate=lb.upperwater_melting_rate*ones(nvertices,1); 30 self.upperwater_elevation=lb.upperwater_elevation*ones(nvertices,1); 31 self.perturbation_melting_rate=lb.perturbation_melting_rate*ones(nvertices,1); 27 self.deepwater_elevation = lb.deepwater_elevation*ones(nvertices,1); 28 self.deepwater_melting_rate = lb.deepwater_melting_rate*ones(nvertices,1); 29 self.upperwater_melting_rate = lb.upperwater_melting_rate*ones(nvertices,1); 30 self.upperwater_elevation = lb.upperwater_elevation*ones(nvertices,1); 31 if ~isnan(lb.perturbation_melting_rate) 32 self.perturbation_melting_rate = lb.perturbation_melting_rate*ones(nvertices,1); 33 end 32 34 else 33 35 self=structtoobj(spatiallinearbasalforcings(),varargin{1});
Note:
See TracChangeset
for help on using the changeset viewer.