[Matlab] Fix default threshold value when displaying phase info

At some point (after version 2014b), Matlab started passing an additional
argument to 'display', which broke the logic for setting the default
threshold. This caused all composition data to be excluded from the report shown
by typing the name of the phase object.
This commit is contained in:
Ray Speth 2016-07-12 13:31:57 -04:00
parent 00d254a1c2
commit 69f25b41dc

View file

@ -1,5 +1,5 @@
function display(self, threshold)
if nargin < 2
if nargin < 2 || ~isnumeric(threshold)
threshold = 1e-14;
end
phase_get(thermo_hndl(self), 15, 1, threshold);