Changed LoadCantera so it could load in Linux

This commit is contained in:
ssun30 2022-09-02 00:35:47 -04:00 committed by Ray Speth
parent 9a7615e2d6
commit b1add10557

View File

@ -2,18 +2,18 @@
% Load the Cantera C Library into the Memory
%
if ispc
ctname = 'cantera_shared.dll';
ctname = '/Lib/cantera_shared.dll';
elseif ismac
ctname = 'libcantera_shared.dylib';
ctname = '/Lib/libcantera_shared.dylib';
elseif isunix
ctname = 'libcantera_shared.so';
ctname = '/lib/libcantera_shared.so';
else
error('Operating System Not Supported!');
return;
end
if ~libisloaded(ct)
[~,warnings] = loadlibrary([cantera_root '/Lib/' ctname], ...
[cantera_root '/include/cantera/clib/ctmatlab.h'], ...
[~,warnings] = loadlibrary([cantera_root, ctname], ...
[cantera_root, '/include/cantera/clib/ctmatlab.h'], ...
'includepath', [cantera_root '/include'], ...
'addheader','ct','addheader','ctfunc', ...
'addheader','ctmultiphase','addheader', ...