Commit graph

3679 commits

Author SHA1 Message Date
Ray Speth
ed261a2d68 Moved compilation guide to Sphinx 2012-03-30 23:46:42 +00:00
Ray Speth
4ef4c79be9 Rearranged Sphinx sources so it can be used for more general documentation 2012-03-30 23:46:25 +00:00
Ray Speth
9be5c325f1 Added a Python reactor network test 2012-03-30 23:46:19 +00:00
Ray Speth
7f46371653 Show CVODE error codes when integration fails 2012-03-30 23:46:14 +00:00
Harry Moffat
95700d9641 Added save() to constructors of CanteraError() so that
the error will register within the application class.
2012-03-30 01:13:42 +00:00
Ray Speth
80b723cfe7 Python: Fixed reference counting issues with Func objects used by Reactors
The C++ Reactor class doesn't own a reference to the Func object. To make
borrowing the reference safe, the Python Reactor class now owns a reference,
which is guaranteed to be valid for the lifetime of the C++ Reactor object.
2012-03-25 23:25:45 +00:00
Ray Speth
bf1f14c178 Ignore negative values when setting composition (mass fractions etc.)
This should resolve a number of problems when integrating reactor networks,
as well as some other unexpected behavior.
2012-03-25 23:25:41 +00:00
Ray Speth
c56bfab0ed Matlab: Allow simpler syntax for creating ReactorNets with one reactor
A network with a single reactor can be created with either:
    ReactorNet({reactor}), i.e. a single element cell array
or, the new way:
    ReactorNet(reactor)
2012-03-24 01:33:54 +00:00
Ray Speth
4feb983688 Fixed some memory leaks in the Python module 2012-03-23 22:16:42 +00:00
Ray Speth
3c83a76e48 Wall radiation heat flux calculation now uses given emissivity 2012-03-23 22:16:37 +00:00
Ray Speth
9124b361dc Added a few basic thermo tests to the Matlab unit tests 2012-03-23 22:16:28 +00:00
Ray Speth
8ea4ae728a Moved a few standard library includes to more local scopes 2012-03-23 22:16:04 +00:00
Ray Speth
6c29c0fe84 Syntax errors in CTI files now show more context lines 2012-03-16 14:44:31 +00:00
Ray Speth
4879c6db47 Fixed out-of-bounds string indexing in ck2cti 2012-03-15 22:49:10 +00:00
Ray Speth
f22ecac5c4 Use the Accelerate framework for BLAS and LAPACK on OS X 2012-03-15 22:49:04 +00:00
Ray Speth
9dc9ddc1bc Fixed removal of the Matlab unit test output file 2012-03-15 22:48:59 +00:00
Ray Speth
04841e181c Fixed generating Cantera.mak on OS X 2012-03-15 19:55:34 +00:00
Ray Speth
17554bd0a0 Fixed an issue with comparing repeated values in regression tests 2012-03-15 19:55:30 +00:00
Ray Speth
4506ee2f8a Fixed some compiler warning issues 2012-03-15 19:55:18 +00:00
Ray Speth
6ec589a9e5 Fixed compiler warnings in libexecstream 2012-03-15 19:55:07 +00:00
Ray Speth
d27066d7bd Whitespace cleanup of libexecstream 2012-03-15 19:55:00 +00:00
Ray Speth
e4f2acaf3d Fixed issues with Matlab toolbox identified by the code analyzer 2012-03-15 19:54:41 +00:00
Ray Speth
790d40b00c Normalized whitespace and indentation in the matlab toolbox 2012-03-15 19:52:58 +00:00
Ray Speth
b159a8f20b Removed declarations for non-existent C interface functions 2012-03-15 19:52:44 +00:00
Ray Speth
503f57a24e Modified MSVC debugger options to allow parallel builds
We now generate a .pdb file per source file, rather than having multiple
copies of the compiler trying to write to the same shared .pdb file
2012-03-15 19:52:40 +00:00
Ray Speth
870ae7ede2 Fixed compilation of the RedlichKwongMFTP class
Enabled with the build option "with_real_gases".
Class has no test cases.
2012-03-15 19:52:35 +00:00
Ray Speth
b3ae0c9208 Use quotes instead of angle brackets for non-system header #includes 2012-03-15 19:52:16 +00:00
Ray Speth
ca4212cc57 Removed a number of unused / redundant typedefs 2012-03-15 19:51:57 +00:00
Ray Speth
83e1996295 Cleaned up some of the Matlab extension code 2012-03-15 19:51:45 +00:00
Ray Speth
d8edde0264 Expanded array bounds checking in C interface functions 2012-03-15 19:51:37 +00:00
Ray Speth
b145ee407d Moved m_nsp up to Transport from derived classes 2012-03-15 19:51:25 +00:00
Ray Speth
1e8870191d Moved m_kk up to the base Kinetics class 2012-03-15 19:51:16 +00:00
Ray Speth
d573ae6625 Configured Sphinx to use MathJax 2.0 2012-03-15 19:51:09 +00:00
Ray Speth
b4ceb7da2e Reformatted the Python docstrings to work better with Sphinx
This means that the docstrings are now parsed as reStructuredText.
2012-03-13 17:34:47 +00:00
Ray Speth
09d9ded2e7 Added templates for using Sphinx to generate the Python module docs 2012-03-13 17:34:38 +00:00
Ray Speth
7676097b4a Removed execute permission from nonexecutable files 2012-03-13 17:32:41 +00:00
Ray Speth
c30e7b2c0f Updated compilation instructions 2012-03-13 17:32:25 +00:00
Ray Speth
bac65b26a1 Added machinery for unit testing of the Matlab toolbox
Unit tests are written using the Matlab xUnit Test Framework
2012-03-13 17:32:10 +00:00
Ray Speth
45eae5b351 Matlab: fixed importing files from paths containing periods
This includes handling relative paths specified with '..'
2012-03-13 17:32:02 +00:00
Ray Speth
5274b1eca0 Fixed attaching stdin and stdout to python subprocess 2012-03-13 17:31:55 +00:00
Ray Speth
32de9a8b27 Fixed some problems printing error messages in Matlab 2012-03-10 21:25:22 +00:00
Ray Speth
8799001ee3 Prevent window from being created by python ct2ctml subprocess
When using Cantera from a GUI app, the python process was inheriting
window settings from the parent, and launching in a window that didn't
accept input from the calling process, causing the conversion to fail.
2012-03-10 21:25:17 +00:00
Ray Speth
22bdb58f33 Added consistent, complete exception handling to C interface functions 2012-03-09 23:00:31 +00:00
Ray Speth
0045bc0a71 Removed unused tmpDir and sleep functions 2012-03-09 23:00:16 +00:00
Ray Speth
3be53356a2 Updated sample build scripts to include pthread where necessary 2012-03-09 22:59:50 +00:00
Ray Speth
82d467944f Eliminated temporary files from the ct2ctml conversion process
Added libstringstream, which maps stdin and stdout to std::iostream.
Using this library means we no longer create either the temporary .py
file or the ct2ctml.log file.

This also eliminates the synchronization problems that motivated the
sleep commands around the system call, so cti to ctml conversions are
significantly faster now.
2012-03-09 22:59:21 +00:00
Ray Speth
b5fdb92146 Python tests now have SCons dependency on the Python extension
This means that running a Python test will cause the Python extension
to be built, and that changes in the source will cause the Python tests
to rerun.
2012-03-09 22:59:04 +00:00
Ray Speth
950ebbb2ca Fixed a malformed format string in vcs_solve_TP
This was causing intermittent test failures in the VCS regression
test.
2012-03-09 22:58:53 +00:00
Ray Speth
92017de067 Removed some vestigial ifdef blocks 2012-03-09 22:58:17 +00:00
Ray Speth
f3968fdda8 Removed unnecessary manual memory management from ChemEquil 2012-03-09 22:57:57 +00:00