mirror of
https://github.com/Cantera/cantera.git
synced 2025-02-25 18:55:29 -06:00
added script to set matlab path
This commit is contained in:
parent
9fb3fcfd6a
commit
937b766c2c
@ -58,7 +58,12 @@ try:
|
|||||||
ctpath = Cantera.__path__[0]
|
ctpath = Cantera.__path__[0]
|
||||||
except:
|
except:
|
||||||
ctpath = "-"
|
ctpath = "-"
|
||||||
|
|
||||||
|
fm = open(prefix+"/cantera/ctpath.m","w")
|
||||||
|
fm.write("""path(path,'"""+prefix+"""/matlab/toolbox/cantera/cantera')\n""")
|
||||||
|
fm.write("""path(path,'"""+prefix+"""/matlab/toolbox/cantera/cantera/1D')\n""")
|
||||||
|
fm.close()
|
||||||
|
|
||||||
print """
|
print """
|
||||||
|
|
||||||
Cantera has been successfully installed.
|
Cantera has been successfully installed.
|
||||||
@ -73,7 +78,11 @@ File locations:
|
|||||||
|
|
||||||
Matlab toolbox """+prefix+"""/matlab/toolbox/cantera/cantera
|
Matlab toolbox """+prefix+"""/matlab/toolbox/cantera/cantera
|
||||||
Matlab demos """+prefix+"""/matlab/toolbox/cantera/cantera-demos
|
Matlab demos """+prefix+"""/matlab/toolbox/cantera/cantera-demos
|
||||||
Matlab tutorials """+prefix+"""/matlab/toolbox/cantera/cantera-tutorials"""
|
Matlab tutorials """+prefix+"""/matlab/toolbox/cantera/cantera-tutorials
|
||||||
|
|
||||||
|
An m-file to set the correct matlab path for Cantera
|
||||||
|
is at """+prefix+"""/cantera/ctpath.m"""
|
||||||
|
|
||||||
if ctpath <> "-":
|
if ctpath <> "-":
|
||||||
print """
|
print """
|
||||||
Python package """+ctpath
|
Python package """+ctpath
|
||||||
|
Loading…
Reference in New Issue
Block a user