Commit graph

229 commits

Author SHA1 Message Date
Ray Speth
38dfea4f87 [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.

Partial cherry-pick of r2138 from trunk.
2013-02-15 19:47:47 +00:00
Ray Speth
6b569fcb22 [Matlab] Fixed error reporting when importing Kinetics from a file 2013-02-14 01:05:31 +00:00
Ray Speth
80f3c9d24d [1D] Fixed a case where the Newton solver could get stuck
Sometimes, while trying to solve the steady-state problem, the Newton solver
would get stuck in a loop where it couldn't find a suitable damping ratio even
after re-revaluating the Jacobian, causing it to get stuck in an loop where it
would keep re-evaluating the Jacobian at the same point (i.e. without having
made a successful damped step).

This change detects this condition and stops the Newton solver so that the 1D
solver can advance the solution by timestepping before trying to solve the
steady-state problem again.
2013-01-22 20:28:34 +00:00
Ray Speth
021f578ebd Removed unused variable 'm_efctr' from StFlow 2013-01-22 20:28:31 +00:00
Ray Speth
95e16a921e [1D] Added a minimum grid spacing parameter
Cherry pick of something.
2013-01-22 20:28:26 +00:00
Ray Speth
7e065242d8 [1D] Fixed an indexing error that affected Jacobian evaluations
Not all components of the Jacobian were being computed for the first point in
the first flow Domain. Cherry pick of r2018.
2013-01-22 20:28:18 +00:00
Ray Speth
544b638ebf [clib] Fixed an incorrect bounds check
Resolves Issue 135.
2013-01-02 18:09:50 +00:00
Ray Speth
5b423847f2 [1D] Fixed calculation of diffusion flux due to Soret effect
Resolves Issue 132.
2012-12-13 22:46:10 +00:00
Ray Speth
c4e62b72ed [1D] Resize StFlow::m_dthermal after grid refinement
Resolves Issue 133.
2012-12-13 22:46:05 +00:00
Ray Speth
ba7725fb5b Fixed a problem with the VCS equilibrium solver at constant HP or UP
A sign error when limiting the temperature step caused the solver to fail if
the initial temperature was higher than sqrt(Tlow*Thigh).

Cherry-picked from trunk (r1883).
2012-11-05 19:26:11 +00:00
Ray Speth
353fb38b11 Fixed correspondence of reactor type string names to integer constants
Cherry-picked from trunk (r1869).
2012-11-05 19:26:07 +00:00
Ray Speth
86e7723c26 Fixed sign error in isothermalCompressibility of ideal phases 2012-10-30 15:30:27 +00:00
Ray Speth
c092bbaede Fixed the order of include and library directories when compiling
Include directories in the Cantera source tree should be listed first so that
they take precedence over headers from other installed copies of Cantera that
might end up on the include search path. This was potentially a problem when
Cantera was installed in the same location (e.g. /usr/local) as one of its
dependencies (e.g. Sundials).

The same logic applies to directories on the library link path.
2012-08-10 21:03:06 +00:00
Ray Speth
67395c8438 Added validation of Plog rate expressions 2012-07-24 23:03:28 +00:00
Ray Speth
7194bf96d4 Fixed calculation of some multicomponent transport properties
For some properties, the internal temperature-dependent properties
were being updated in the wrong order.
2012-07-10 16:23:32 +00:00
Ray Speth
f04ac23be9 Fixed a memory leak when re-initializing a CVodesIntegrator 2012-06-27 16:12:45 +00:00
Ray Speth
a16d56a637 Fixed some spelling errors 2012-06-22 22:36:15 +00:00
Nicholas Malaya
8d57c11eac [cantera2.0]: fixing build order in kinetics, and adding correct configure.ac setup for tpx 2012-06-19 16:15:52 +00:00
Nicholas Malaya
4a80712846 [cantera2.0]: more makefile.am fixes--very close to compiling regression tests, now 2012-06-18 15:14:58 +00:00
Nicholas Malaya
d5432c4f8d [cantera2.0]: updating makefile.am, still more work on libexec to be done 2012-06-18 04:46:51 +00:00
Nicholas Malaya
ece7e870b6 [cantera2.0]: fixing all the missing lapack files 2012-06-18 03:06:58 +00:00
Nicholas Malaya
255c1453db [cantera2.0]: more makefile.am adjustments... cantera autotools version is very nearly functioning now 2012-06-18 02:56:59 +00:00
Nicholas Malaya
92c5f5c57f [cantera2.0]: updating a few makefiles for the autotools version. Not yet working without link errors, but getting close 2012-06-18 02:29:29 +00:00
Nicholas Malaya
9eb6f72f88 [cantera]: fixing kinetic makefile include line 2012-06-18 00:33:18 +00:00
Nicholas Malaya
f353fcbc16 [cantera]: adding patch that adds support for two methods in C++ to fortran, both getMixDiffCoeffs{Mass,Mole} 2012-06-15 18:53:39 +00:00
Nicholas Malaya
724baced8b [cantera]: fixing up the build system in prep for the 2.0 release. Should be shiny. 2012-06-14 23:00:58 +00:00
Ray Speth
0f04aaf0be Updated documentation to resolve some Doxygen warnings 2012-06-14 21:06:30 +00:00
Ray Speth
e72524218d Fixed setting of LIBPATH when linking the Python module
This resolves some problems when building with non-default Python
installations.
2012-06-14 21:06:18 +00:00
Ray Speth
ae572058e0 Python module files are also uninstalled with 'scons uninstall' 2012-06-12 22:49:05 +00:00
Ray Speth
5e8cf5bd66 Fixed installation of man pages 2012-06-12 22:48:55 +00:00
Ray Speth
584b9fe6f5 Replaced hard-coded values of physical constants with named constants 2012-06-12 22:48:38 +00:00
Ray Speth
2806907060 Fixed size_t conversion warnings related to class Adsorbate 2012-06-05 19:56:46 +00:00
Ray Speth
6cddd8a87a Fixed 'unused variable' warninings when compiling without thread safety 2012-06-05 19:56:42 +00:00
Ray Speth
1fb14fc86a Skip building/installing some targets when layout=debian
Do not build the shared library.
Do not build csvdiff.
Do not install install_tsc
Do not install man pages (handled by debhelper)

Skip csvdiff for Debian package

More things not installed with Debian
2012-06-05 19:56:34 +00:00
Ray Speth
ec1abb55a1 Added debian file layout option 2012-06-05 19:56:30 +00:00
Ray Speth
3ffaaeae4f Remove debug symbols from Python extension when not in debug mode 2012-06-05 19:56:24 +00:00
Ray Speth
02fdb22b2e Fixed Matlab extension name on 32-bit platforms 2012-05-31 14:58:11 +00:00
Ray Speth
9f6c79eaf8 Fixed thread safety of TransportFactory 2012-05-31 14:58:03 +00:00
Ray Speth
2970e0c693 Added a ScopedLock typedef that can be used without requiring extra any #ifdefs 2012-05-31 14:57:54 +00:00
Ray Speth
cc042e088f Enabled class Adsorbate 2012-05-31 14:57:49 +00:00
Ray Speth
6011f24b38 Removed unnecessary WITH_FEATURE configuration options 2012-05-31 14:57:32 +00:00
Ray Speth
f24f8f6d3b Fixed update logic for temperature-dependent properties in MultiTransport 2012-05-30 16:02:35 +00:00
Ray Speth
d3e98fe5a8 Corrected a bunch of spelling errors 2012-05-29 21:21:47 +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
b411f513ae Resolved the namespace collision between the two classes named "Gaussian"
This was causing problems on MinGW builds where Gaussian "function" objects
were being misinterpreted as Gaussian "line broadeners" and returning
incorrect results.
2012-05-29 18:03:22 +00:00
Ray Speth
88a1f64466 Fixed list of libraries specified when linking the Matlab extension 2012-05-29 18:03:18 +00:00
Ray Speth
31ffb5e400 Added support for Sundials 2.5 2012-05-25 23:13:51 +00:00
Ray Speth
3df5c60e8f Eliminated trailing commas from some CSV files used in regression tests 2012-05-25 23:13:42 +00:00
Ray Speth
9b2d97f41e Fixed some compiler warnings 2012-05-25 23:13:18 +00:00
Ray Speth
5a8b97e38e Removed a 'goto' statement 2012-05-24 16:30:08 +00:00