[26740] | 1 | Index: ../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);
|
---|
| 23 | Index: ../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
|
---|