Changeset 19642


Ignore:
Timestamp:
10/15/15 12:18:53 (9 years ago)
Author:
schlegel
Message:

CHG: update lonestar time plus SMBforcing conversions

Location:
issm/trunk-jpl/src/m/classes
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/classes/SMBforcing.m

    r19527 r19642  
    1919                        switch nargin
    2020                                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
    2132                                otherwise
    2233                                        error('constructor not supported');
  • issm/trunk-jpl/src/m/classes/clusters/lonestar.m

    r19638 r19642  
    1919                 executionpath = '';
    2020                 interactive   = 0;
    21                  time          = 24*60;
     21                 time          = 24*60*60;
    2222         end
    2323         properties (SetAccess=private)
  • issm/trunk-jpl/src/m/classes/model.m

    r19547 r19642  
    104104                        if ~isa(md.outputdefinition,'outputdefinition'),
    105105                                md.outputdefinition=outputdefinition();
    106                         end
    107                         %2014 January 9th - 2015 Sept 10
    108                         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;
    113106                        end
    114107                        %2014 March 26th
     
    10401033                                md.stressbalance=stressbalance(structmd.diagnostic);
    10411034                        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
    10421048                end% }}}
    10431049                function md = setdefaultparameters(md) % {{{
Note: See TracChangeset for help on using the changeset viewer.