initial import
This commit is contained in:
parent
105c15065d
commit
8b061b5415
1 changed files with 31 additions and 0 deletions
31
Cantera/matlab/setup_matlab.py.in
Normal file
31
Cantera/matlab/setup_matlab.py.in
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
|
||||
import sys
|
||||
|
||||
bindir = @ct_bindir@
|
||||
libdir = @ct_libdir@
|
||||
incdir = @ct_incroot@
|
||||
libs = @LOCAL_LIBS@ @LIBS@ @FLIBS@
|
||||
|
||||
f = open('setup.m','w')
|
||||
f.write('cd cantera\nbuildux\nexit\n')
|
||||
f.close()
|
||||
|
||||
fb = open('cantera/buildux.m','w')
|
||||
fb.write("""
|
||||
disp('building Cantera..');
|
||||
mex private/ctmethods.cpp private/ctfunctions.cpp ...
|
||||
private/xmlmethods.cpp private/phasemethods.cpp ...
|
||||
private/thermomethods.cpp private/kineticsmethods.cpp ...
|
||||
private/transportmethods.cpp private/reactormethods.cpp ...
|
||||
private/wallmethods.cpp private/flowdevicemethods.cpp ...
|
||||
private/onedimmethods.cpp private/surfmethods.cpp private/write.cpp ...
|
||||
"""+'-I'+incdir+' -L'+libdir+' '+libs+'\n'+"""disp('done.');
|
||||
""")
|
||||
fb.close()
|
||||
|
||||
fp = open('cantera/ctbin.m','w')
|
||||
fp.write("""function path = ctbin
|
||||
path = '"""+bindir+"""';
|
||||
""")
|
||||
fp.close()
|
||||
|
||||
Loading…
Add table
Reference in a new issue