source: issm/oecreview/Archive/25834-26739/ISSM-26082-26083.diff@ 26740

Last change on this file since 26740 was 26740, checked in by Mathieu Morlighem, 3 years ago

CHG: added 25834-26739

File size: 1.4 KB
RevLine 
[26740]1Index: ../trunk-jpl/src/m/classes/frictioncoulomb2.m
2===================================================================
3--- ../trunk-jpl/src/m/classes/frictioncoulomb2.m (revision 26082)
4+++ ../trunk-jpl/src/m/classes/frictioncoulomb2.m (revision 26083)
5@@ -11,6 +11,17 @@
6 effective_pressure = NaN;
7 effective_pressure_limit = 0;
8 end
9+ methods (Static)
10+ function self = loadobj(self) % {{{
11+ if isstruct(self)
12+ disp('Recovering frictioncoulomb2 from older version');
13+ if isfield(self,'coefficient')
14+ self.C = self.coefficient;
15+ end
16+ self = structtoobj(frictioncoulomb2(),self);
17+ end
18+ end% }}}
19+ end
20 methods
21 function self = extrude(self,md) % {{{
22 self.C=project3d(md,'vector',self.C,'type','node','layer',1);
23Index: ../trunk-jpl/src/m/classes/model.m
24===================================================================
25--- ../trunk-jpl/src/m/classes/model.m (revision 26082)
26+++ ../trunk-jpl/src/m/classes/model.m (revision 26083)
27@@ -132,8 +132,6 @@
28 md.settings.solver_residue_threshold = 1e-6;
29 end
30 end
31- %2017 April 10th
32- if isa(md.gia,'gia'), md.gia=giamme(); end
33 %2017 May 4th
34 if isa(md.amr,'double'); md.amr=amr(); end
35 %2017 Aug 29th
36@@ -176,7 +174,7 @@
37 end
38 end
39 %2019 Dec 16
40- if isa(md.dsl,'double') | isempty(md.dsl.compute_fingerprints)
41+ if isa(md.dsl,'double')
42 md.dsl=dsl();
43 end
44 %2020 April 24
Note: See TracBrowser for help on using the repository browser.