Fixed compiler warnings about uninitialized values

This commit is contained in:
Ray Speth 2013-01-04 21:37:26 +00:00
parent c2151f1aaf
commit 382ad7ba80
2 changed files with 6 additions and 5 deletions

View file

@ -1267,7 +1267,7 @@ namespace Cantera {
/*
* Factor the Hessian
*/
int info;
int info = 0;
ct_dpotrf(ctlapack::UpperTriangular, neq_, &(*(HessianPtr_->begin())), neq_, info);
if (info) {
if (m_print_flag >= 2) {
@ -1834,7 +1834,7 @@ namespace Cantera {
doublereal *y1 = DATA_PTR(m_wksp);
doublereal *ydot1 = DATA_PTR(m_wksp_2);
doublereal sLen;
doublereal alpha;
doublereal alpha = 0;
doublereal residSteepBest = 1.0E300;
doublereal residSteepLinBest = 0.0;
@ -3729,7 +3729,8 @@ namespace Cantera {
int i, j;
double* col_j;
int info;
doublereal ysave, ydotsave, dy;
doublereal ysave, dy;
doublereal ydotsave = 0;
int retn = 1;
/*

View file

@ -16,8 +16,8 @@ namespace Cantera
FlowReactor::FlowReactor() :
Reactor(),
m_fctr(1.0e10),
m_speed0(0.0),
m_dist(0.0)
m_dist(0.0),
m_speed0(0.0)
{
}