mirror of
https://github.com/Cantera/cantera.git
synced 2025-02-25 18:55:29 -06:00
Use thermo_report instead of thermo_print to print thermo properties.
This commit is contained in:
parent
ba4d10fde9
commit
61b7602d5c
@ -93,7 +93,11 @@ classdef ThermoPhase < handle
|
||||
if nargin < 2 || ~isnumeric(threshold)
|
||||
threshold = 1e-14;
|
||||
end
|
||||
calllib(ct, 'thermo_print', tp.tpID, 1, threshold);
|
||||
buflen = 0 - calllib(ct, 'thermo_report', tp.tpID, 0, '', 1);
|
||||
aa = char([zeros(1, buflen, 'int8')]);
|
||||
ptr = libpointer('cstring', aa);
|
||||
[iok, bb] = calllib(ct, 'thermo_report', tp.tpID, buflen, ptr, 1);
|
||||
disp(bb);
|
||||
end
|
||||
|
||||
function tpClear(tp)
|
||||
|
Loading…
Reference in New Issue
Block a user