Skip to content

Commit

Permalink
[Matlab] Fix default threshold value when displaying phase info
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
speth committed Jul 13, 2016
1 parent 00d254a commit 69f25b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion interfaces/matlab/toolbox/@ThermoPhase/display.m
Original file line number Diff line number Diff line change
@@ -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);

0 comments on commit 69f25b4

Please sign in to comment.