Fixed an uninitialized variable in the constructor.

This commit is contained in:
Harry Moffat 2008-11-20 22:05:30 +00:00
parent 3ae04059f3
commit 3a5d195062
2 changed files with 12 additions and 4 deletions

View file

@ -21,9 +21,17 @@ using namespace std;
namespace Cantera {
/// Constructor.
MultiPhase::MultiPhase() : m_temp(0.0), m_press(0.0),
m_nel(0), m_nsp(0), m_init(false), m_eloc(-1),
m_Tmin(1.0), m_Tmax(100000.0) {
MultiPhase::MultiPhase() :
m_np(0),
m_temp(0.0),
m_press(0.0),
m_nel(0),
m_nsp(0),
m_init(false),
m_eloc(-1),
m_Tmin(1.0),
m_Tmax(100000.0)
{
}
void MultiPhase::

View file

@ -193,7 +193,7 @@ namespace Cantera {
*/
doublereal speciesMoles(index_t kGlob) const;
//! Index of the species belonging to phase number \c p
//! Return the global index of the species belonging to phase number \c p
//! with local index \c k within the phase.
/*!
* Returns the index of the global species