Changeset 26083


Ignore:
Timestamp:
03/12/21 13:38:17 (4 years ago)
Author:
Mathieu Morlighem
Message:

CHG: fixing load with changing class names and fields

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

Legend:

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

    r25974 r26083  
    1111                effective_pressure       = NaN;
    1212                effective_pressure_limit = 0;
     13        end
     14        methods (Static)
     15                function self = loadobj(self) % {{{
     16                        if isstruct(self)
     17                                disp('Recovering frictioncoulomb2 from older version');
     18                                if isfield(self,'coefficient')
     19                                        self.C = self.coefficient;
     20                                end
     21                                self = structtoobj(frictioncoulomb2(),self);
     22                        end
     23                end% }}}
    1324        end
    1425        methods
  • issm/trunk-jpl/src/m/classes/model.m

    r26059 r26083  
    133133                                end
    134134                        end
    135                         %2017 April 10th
    136                         if isa(md.gia,'gia'), md.gia=giamme(); end
    137135                        %2017 May 4th
    138136                        if isa(md.amr,'double'); md.amr=amr(); end
     
    177175                        end
    178176                        %2019 Dec 16
    179                         if isa(md.dsl,'double') | isempty(md.dsl.compute_fingerprints)
     177                        if isa(md.dsl,'double')
    180178                                md.dsl=dsl();
    181179                        end
Note: See TracChangeset for help on using the changeset viewer.