Ray Speth
7b7d3ac0d4
Fixed locale-dependent processing of XML files
...
Floating point values are read using a std::stringstream imbued with the "C"
locale to avoid problems with using std::atof when the user's locale uses a
character other than "." as the decimal separator.
Patch provided by Phillip Berndt.
Fixes Issue 153.
2013-04-03 23:10:18 +00:00
Ray Speth
a25c1a43b3
[Kinetics] Fixed crashes when reaction mechanism contains no reactions
...
Make sure several arrays are never of length zero so that taking &v[0]
is always well-defined.
2013-02-14 01:02:18 +00:00
Victor Brunini
a709d5f816
Revert "Removed unused member variable ReactionData.rxn_number"
...
This variable is used in some applications we build against
cantera.
This reverts commit 7d7b6dd39d12c2e2bdd2a9d2a959c0aee3c0c4c5.
2013-01-15 20:16:42 +00:00
Ray Speth
33653e7f43
Removed unused member variable ReactionData.rxn_number
2013-01-11 22:56:30 +00:00
Ray Speth
1d19803885
Pass "const std::string&" instead of "std::string" when possible
2012-10-24 15:42:51 +00:00
Ray Speth
85d9d360c7
Fixed a bunch of spelling issues
2012-08-17 16:43:34 +00:00
Ray Speth
deea83d68b
Merge bug fixes from the 2.0 maintenance branch
2012-08-02 16:07:35 +00:00
Ray Speth
67395c8438
Added validation of Plog rate expressions
2012-07-24 23:03:28 +00:00
Ray Speth
3ce3da1fa2
Fixed code formatting
2012-07-18 18:32:29 +00:00
Ray Speth
0f04aaf0be
Updated documentation to resolve some Doxygen warnings
2012-06-14 21:06:30 +00:00
Ray Speth
754faa3b13
Added option to ignore third-body efficiencies for undeclared species
...
To enable this option, in the phase definition, add
'skip_undeclared_third_bodies' to the list passed as the 'options'
argument.
2012-05-18 22:41:58 +00:00
Ray Speth
58e3bade9a
Fixed value checks for falloff parameterizations
2012-04-27 21:20:46 +00:00
Ray Speth
11a0504c0a
Formatting cleanup of rxninfo::installReaction
2012-04-04 18:44:59 +00:00
Ray Speth
3d9efad94f
Reduced complexity of duplicate reaction detection from n^2 to n*log(n)
2012-04-04 18:44:56 +00:00
Ray Speth
4650e05404
Check third-body efficiencies for invalid species identifiers
2012-03-30 23:48:06 +00:00
Ray Speth
510b25b884
Implementation of P-log rate expressions
...
Also includes skeleton for implementing Chebyshev rates.
2012-03-30 23:47:50 +00:00
Ray Speth
234439d10f
Make use of the ReactionData struct when installing reactions
2012-03-30 23:47:38 +00:00
Ray Speth
b4c07978e6
Implemented parsing of P-log and Chebyshev reactions from CTML
2012-03-30 23:47:31 +00:00
Ray Speth
ca4212cc57
Removed a number of unused / redundant typedefs
2012-03-15 19:51:57 +00:00
Ray Speth
54efbaa320
Rewrote exception handling to be more general and more explicit
...
CanteraError inerits from std:exception, so now it has a what() method
that is used to print a message describing the exception. Adding an
exception to the Cantera error stack now requires explicitly calling
the .save() method.
2012-03-05 20:45:56 +00:00
Ray Speth
981a04a325
Split Kinetics::kineticsSpeciesIndex into two separate functions
2012-02-27 18:15:41 +00:00
Ray Speth
b955395ed1
Skip cast from size_t to int when calling int2str
2012-02-27 18:14:17 +00:00
Ray Speth
35429de71c
Fixed a bunch of spelling errors in the documentation and comments
2012-02-21 16:04:09 +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