Fixed several UMR's discovered while using valgrind.

This commit is contained in:
Harry Moffat 2003-09-05 16:42:33 +00:00
parent 27234d168d
commit 6f3fb26363
3 changed files with 16 additions and 3 deletions

View file

@ -38,7 +38,16 @@ namespace Cantera {
//////////////////// class MixTransport methods //////////////
MixTransport::MixTransport() {}
MixTransport::MixTransport() :
m_nsp(0),
m_tmin(-1.0),
m_tmax(100000.),
m_temp(-1.0),
m_logt(0.0)
{
}
bool MixTransport::init(TransportParams& tr) {

View file

@ -96,7 +96,8 @@ namespace Cantera {
doublereal pressure_ig() {
return m_thermo->molarDensity() * GasConstant * m_thermo->temperature();
return (m_thermo->molarDensity() * GasConstant *
m_thermo->temperature());
}
// mixture attributes

View file

@ -128,7 +128,10 @@ namespace Cantera {
MultiTransport::MultiTransport(thermo_t* thermo)
: Transport(thermo) {}
: Transport(thermo),
m_temp(-1.0)
{
}
bool MultiTransport::init(TransportParams& tr) {