Changeset 21148
- Timestamp:
- 08/18/16 10:07:27 (9 years ago)
- Location:
- issm/trunk-jpl/src/m/classes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/classes/SMBhenning.m
r21049 r21148 13 13 switch nargin 14 14 case 0 15 case 1 16 inputstruct=varargin{1}; 17 list1 = properties('SMBhenning'); 18 list2 = fieldnames(inputstruct); 19 for i=1:length(list1) 20 fieldname = list1{i}; 21 if ismember(fieldname,list2), 22 self.(fieldname) = inputstruct.(fieldname); 23 end 24 end 15 25 otherwise 16 26 error('constructor not supported'); -
issm/trunk-jpl/src/m/classes/model.m
r21097 r21148 1044 1044 end 1045 1045 %2014 January 9th 1046 if isfield(structmd,'surfaceforcings') ,1046 if isfield(structmd,'surfaceforcings') & isa(md.smb,'surfaceforcings'), 1047 1047 disp('Recovering old surfaceforcings class'); 1048 1048 mass_balance=structmd.surfaceforcings.mass_balance; … … 1051 1051 end 1052 1052 %2015 September 10 1053 if isfield(structmd,'surfaceforcings') & isa( md.smb,'SMB'),1053 if isfield(structmd,'surfaceforcings') & isa(structmd.surfaceforcings,'SMB'), 1054 1054 disp('Recovering old SMB class'); 1055 1055 md.smb=SMBforcing(structmd.surfaceforcings); 1056 end 1057 if isfield(structmd,'surfaceforcings') & isa(structmd.surfaceforcings,'SMBhenning'), 1058 disp('Recovering old SMBhenning class'); 1059 md.smb=SMBhenning(structmd.surfaceforcings); 1056 1060 end 1057 1061
Note:
See TracChangeset
for help on using the changeset viewer.