Changeset 19642
- Timestamp:
- 10/15/15 12:18:53 (9 years ago)
- Location:
- issm/trunk-jpl/src/m/classes
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/classes/SMBforcing.m
r19527 r19642 19 19 switch nargin 20 20 case 0 21 22 case 1 23 inputstruct=varargin{1}; 24 list1 = properties('SMBforcing'); 25 list2 = fieldnames(inputstruct); 26 for i=1:length(list1) 27 fieldname = list1{i}; 28 if ismember(fieldname,list2), 29 self.(fieldname) = inputstruct.(fieldname); 30 end 31 end 21 32 otherwise 22 33 error('constructor not supported'); -
issm/trunk-jpl/src/m/classes/clusters/lonestar.m
r19638 r19642 19 19 executionpath = ''; 20 20 interactive = 0; 21 time = 24*60 ;21 time = 24*60*60; 22 22 end 23 23 properties (SetAccess=private) -
issm/trunk-jpl/src/m/classes/model.m
r19547 r19642 104 104 if ~isa(md.outputdefinition,'outputdefinition'), 105 105 md.outputdefinition=outputdefinition(); 106 end107 %2014 January 9th - 2015 Sept 10108 if isa(md.smb,'smb'),109 disp('Recovering old smb class');110 mass_balance=md.smb.mass_balance;111 md.smb=SMBforcing();112 md.smb.mass_balance=mass_balance;113 106 end 114 107 %2014 March 26th … … 1040 1033 md.stressbalance=stressbalance(structmd.diagnostic); 1041 1034 end 1035 %2014 January 9th 1036 if isfield(structmd,'surfaceforcings'), 1037 disp('Recovering old surfaceforcings class'); 1038 mass_balance=structmd.surfaceforcings.mass_balance; 1039 md.smb=SMB(); 1040 md.smb.mass_balance=mass_balance; 1041 end 1042 %2015 September 10 1043 if isfield(structmd,'surfaceforcings') & isa(md.smb,'SMB'), 1044 disp('Recovering old SMB class'); 1045 md.smb=SMBforcing(structmd.surfaceforcings); 1046 end 1047 1042 1048 end% }}} 1043 1049 function md = setdefaultparameters(md) % {{{
Note:
See TracChangeset
for help on using the changeset viewer.