mirror of
https://github.com/Cantera/cantera.git
synced 2025-02-25 18:55:29 -06:00
Fixed a few problems in Samples and Utility
This commit is contained in:
parent
8852e4bf72
commit
e54cc97c56
@ -21,7 +21,7 @@ classdef Solution < handle & ThermoPhase & Kinetics & Transport
|
||||
% of each species, which may be given as mole fractions or mass
|
||||
% fractions. ::
|
||||
%
|
||||
% >> s = Solution('input.yaml'[, phase_name[, transport_model]])
|
||||
% >> s = Solution('input.yaml', phase_name, transport_model)
|
||||
%
|
||||
% constructs a :mat:func:`Solution` object from a specification contained in
|
||||
% file ``input.yaml`` with the name of the phase to be imported specified with
|
||||
|
@ -6,8 +6,5 @@ function v = canteraGitCommit()
|
||||
% A string containing the Git commit hash for the current version of Cantera
|
||||
%
|
||||
checklib;
|
||||
buflen = callct('ct_getGitCommit', 0, '');
|
||||
aa = char(zeros(1, buflen));
|
||||
[~, aa] = callct('ct_getGitCommit', buflen, aa);
|
||||
v = aa;
|
||||
v = callct2('ct_getGitCommit');
|
||||
end
|
||||
|
@ -6,8 +6,5 @@ function v = canteraVersion()
|
||||
% A string containing the Cantera version
|
||||
%
|
||||
checklib;
|
||||
buflen = callct('ct_getCanteraVersion', 0, '');
|
||||
aa = char(zeros(1, buflen));
|
||||
[~, aa] = callct('ct_getCanteraVersion', buflen, aa);
|
||||
v = aa;
|
||||
v = callct2('ct_getCanteraVersion');
|
||||
end
|
||||
|
3
interfaces/matlab_experimental/Utility/cantera_root.m
Normal file
3
interfaces/matlab_experimental/Utility/cantera_root.m
Normal file
@ -0,0 +1,3 @@
|
||||
function output = cantera_root()
|
||||
output = '/home/ssnit/anaconda3/envs/ct-matlab-test';
|
||||
end
|
@ -7,8 +7,10 @@ function d = getDataDirectories()
|
||||
% Cell array with strings representing the data file search directories
|
||||
%
|
||||
checklib;
|
||||
buflen = callct('ct_getDataDirectories', 0, '', ';');
|
||||
aa = char(zeros(1, buflen));
|
||||
[~, aa, ~] = callct('ct_getDataDirectories', buflen, aa, ';');
|
||||
d = aa;
|
||||
buflen = calllib(ct, 'ct_getDataDirectories', 0, '', ';');
|
||||
aa = char(ones(1, buflen));
|
||||
ptr = libpointer('cstring', aa);
|
||||
[~, bb, ~] = calllib(ct, 'ct_getDataDirectories', buflen, ptr, ';');
|
||||
d = bb;
|
||||
clear aa, bb, ptr
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user