Changeset 24100


Ignore:
Timestamp:
07/21/19 23:35:04 (6 years ago)
Author:
Mathieu Morlighem
Message:

CHG: automatically reset recoveryanalysis if old models are loaded

File:
1 edited

Legend:

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

    r24082 r24100  
    99                 RecoveryAnalysis = struct();
    1010                 %The other properties are dynamic
     11         end
     12         methods (Static)
     13                 function self = loadobj(self) % {{{
     14                         % This function is directly called by matlab when a model object is
     15                         % loaded. Update old properties here
     16
     17                         if isempty(fieldnames(self.RecoveryAnalysis));
     18                                 disp('WARNING: updating toolkits (RecoveryAnalysis not set)');
     19                                 self.RecoveryAnalysis  = self.DefaultAnalysis;
     20                         end
     21                 end% }}}
    1122         end
    1223         methods
Note: See TracChangeset for help on using the changeset viewer.