Changeset 23434


Ignore:
Timestamp:
10/24/18 08:39:40 (6 years ago)
Author:
tsantos
Message:

BUG: check md.settings before define new value for solver_residue_threshold

File:
1 edited

Legend:

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

    r22958 r23434  
    128128                        if isa(md.esa,'double'); md.esa=esa(); end
    129129                        %2017 February 10th
    130                         if md.settings.solver_residue_threshold==0,
    131                                 md.settings.solver_residue_threshold = 1e-6;
     130                        if isa(md.settings,'settings'), %this 'isa' verification: 2018 October 24th
     131                                if md.settings.solver_residue_threshold==0,
     132                                        md.settings.solver_residue_threshold = 1e-6;
     133                                end
    132134                        end
    133135                        %2017 April 10th
Note: See TracChangeset for help on using the changeset viewer.