mirror of
https://github.com/Cantera/cantera.git
synced 2025-02-25 18:55:29 -06:00
Changed LoadCantera so it could load in Linux
This commit is contained in:
parent
9a7615e2d6
commit
b1add10557
@ -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', ...
|
||||
|
Loading…
Reference in New Issue
Block a user