cantera/interfaces/matlab/toolbox/@ThermoPhase/display.m
Ray Speth 69f25b41dc [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.
2016-07-13 17:11:34 -04:00

5 lines
148 B
Matlab

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