Paul
c4aff04418
Updated URL in references to Cantera's license.
2019-09-23 22:02:33 -04:00
Ray Speth
fd57936b18
[ck2cti] Fix spurious 'unexpected output' warnings
...
When calling ck2cti via the C++ wrapper function, the output of the
'convertMech' function (usually an empty list) would be printed. Fixes a bug
introduced in db90a7c .
2018-07-30 11:25:27 -04:00
Ray Speth
277aa0b913
[ck2cti] Allow convertMech function to be called multiple times
...
Each call to convertMech now creates a new Parser object to do the conversion,
rather than requiring the user to do so themselves.
Fixes #528 .
2018-05-16 13:50:33 -04:00
Bryan W. Weber
16fd18315c
Remove HAS_NO_PYTHON configuration variable
...
This variable is not needed since in the two places its used we do a
runtime check of the presence of the Python interface anyways
2017-11-26 16:48:40 -05:00
Evan McCorkle
713b9cc23c
Wrapped common uses of boost string algorithms.
...
- Limits propagation of boost header and namespace.
2017-10-25 09:30:22 -04:00
Ray Speth
0a1257daed
Stream input to ctml_writer to avoid command line length limits
...
Resolves #416 .
2017-02-13 19:37:24 -05:00
Ray Speth
d9ff992817
Fix temporary cti filename for MinGW
2016-12-29 22:06:27 -05:00
Santosh Shanbhogue
3593fad14a
Fix ct2ctml when string passed as 'source' argument
...
Make ct2ctml create a temp cti file for a large source argument
Fixes #416
2016-12-29 22:06:27 -05:00
Ray Speth
b25784dc09
Replace stripws with boost::algorithm::trim_copy
2016-10-27 11:28:03 -04:00
Ray Speth
ecbfecd7fd
Replace existing copyright notices with uniform copyright/license info
2016-10-10 22:19:01 -04:00
Ray Speth
f8b12adef4
Clean up comments in 'base' source and header files
2015-11-09 19:35:52 -05:00
Ray Speth
71bb73b728
Eliminate unnecessary calles to std::string.c_str()
2015-10-14 18:45:22 -04:00
Ray Speth
acdf9cf0ed
Clean up interstitial whitespace
...
Remove extra space around operators, between words, etc.
2015-08-02 23:06:16 -04:00
Ray Speth
546289f737
Remove deprecated code with functional alternatives
2015-07-13 18:59:09 -04:00
Ray Speth
5214672ab3
Merge namespace ctml with namespace Cantera
2015-05-27 18:09:07 -04:00
Ray Speth
4910b1bc1c
Fix compilation with Visual Studio 2013
...
Fixes regression introduced in r3125.
Resolves Issue 240.
2014-10-03 16:48:21 +00:00
Ray Speth
002c158761
Cleanup include statements
...
Move includes from header to implementation files where possible, and remove
unnecessary includes.
2014-08-28 16:54:13 +00:00
Ray Speth
907bbd8b79
Allow importing phases from XML or CTI strings
2014-07-30 16:59:51 +00:00
Ray Speth
063c2a261a
Eliminate redundancy between get_XML_File and get_CTML_Tree
...
get_CTML_Tree and getCtmlTree are now deprecated in favor of get_XML_File
2014-07-30 16:58:55 +00:00
Ray Speth
67539df9f2
Fix #includes to work with Visual Studio 2013
2014-07-25 18:32:57 +00:00
Ray Speth
bc0346eae7
Avoid deadlocks in cti to ctml conversions on Windows
2014-05-06 14:39:48 +00:00
Ray Speth
ff9584105b
Do implicit CTI to XML conversions without generating .xml files
...
When instantiating a phase from a .cti file, do the conversion in memory,
without writing the XML representation to disk. This eliminates the unrequrested
XML files that Cantera normally generates, and also avoids errors when running
Cantera from a directory where the user does not have write permissons.
2014-01-30 00:47:37 +00:00
Ray Speth
f3e0280716
Improve error handling when calling ck2cti and ctml_writer
...
Only look for modules in the new location (inside the cantera package), and
print the path if they aren't found, to aid in debugging.
2014-01-08 17:10:53 +00:00
Ray Speth
dab827d763
[ck2cti] Make permissive mode default when run from Matlab or C++
2013-09-12 16:04:13 +00:00
Ray Speth
8a58b12698
[ck2cti] Fix to work with Cython module when called from Matlab or C++
2013-09-12 16:04:04 +00:00
Ray Speth
957ddc97ae
Fix calls to ck2cti that pass through the C++ interface
2013-08-02 23:17:40 +00:00
Ray Speth
9a8dbf75f8
CTI to XML conversion works with either new or old Python module
2013-07-29 01:37:54 +00:00
Ray Speth
d253fc0d63
Eliminate redundant standard library includes
2013-06-05 17:08:13 +00:00
Ray Speth
1019cdb51e
Cleaned up Doxygen docs for CTML functions
2013-04-12 23:06:54 +00:00
Ray Speth
1e43e4f333
Added a version of writelog which takes the log level as an argument
2012-12-30 00:17:08 +00:00
Ray Speth
f4d35e4bd7
Always pass "const std::string&" instead of "const std::string"
2012-10-24 15:44:54 +00:00
Nicholas Malaya
957b5b3929
[cantera]: fixing a bug in file name variable.
2012-09-27 18:13:57 +00:00
Ray Speth
8afc669b67
Proof-of-concept for a Python interface written using Cython
...
This module is compatible with both Python 2 and Python 3. Unlike the existing
Python module, this module directly utilizes the Cantera C++ interface,
bypassing the "clib" compatibility layer, as well as all of the direct use of
the Python C API.
Currently, this contains just enough to instantiate a ThermoPhase object from an
XML input file.
2012-09-06 19:55:25 +00:00
Ray Speth
c57f9b644f
Conversion of Chemkin mechanisms in Python and Matlab now uses ck2cti.py
2012-07-26 20:49:37 +00:00
Ray Speth
3ce3da1fa2
Fixed code formatting
2012-07-18 18:32:29 +00:00
Ray Speth
79af932b9a
Fixed timeouts that could cause cti->ctml conversions to stall
2012-05-29 18:03:39 +00:00
Ray Speth
987578d033
Increased timeout for ct2ctml subprocess
2012-04-12 15:28:28 +00:00
Ray Speth
5274b1eca0
Fixed attaching stdin and stdout to python subprocess
2012-03-13 17:31:55 +00:00
Ray Speth
0045bc0a71
Removed unused tmpDir and sleep functions
2012-03-09 23:00:16 +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
92017de067
Removed some vestigial ifdef blocks
2012-03-09 22:58:17 +00:00
Ray Speth
474f423ca4
Automatically clean up ct2ctml.log files unless there is an error
2012-03-09 22:55:03 +00:00
Ray Speth
ebc6ef1e47
Improved error message printed when ct2ctml fails
...
Now we actually print the contents of the log file.
2012-03-05 20:46:52 +00:00
Ray Speth
2fa2d98171
Exceptions generate less mysterious error messages in a few places
2012-03-05 20:46:46 +00:00
Ray Speth
8c23a12152
Removed attempt to get PYTHON_CMD from setup_cantera
...
This code didn't work because changes in the environment of the
system(...) call aren't propagated back to the caller.
2012-02-24 03:17:39 +00:00
Ray Speth
18bce3bc62
Fixed lines ending with doubled semicolon.
2012-02-22 00:16:10 +00:00
Ray Speth
a310345b9e
Updated #includes to reflect new header file locations
2012-02-12 02:44:14 +00:00
Ray Speth
2528df0f75
Reorganized source tree structure
...
These changes make it unnecessary to copy header files around during
the build process, which tends to confuse IDEs and debuggers. The
headers which comprise Cantera's external C++ interface are now in
the 'include' directory.
All of the samples and demos are now in the 'samples' subdirectory.
2012-02-12 02:27:14 +00:00