Fixed compiler warnings about uninitialized values
This commit is contained in:
parent
c2151f1aaf
commit
382ad7ba80
2 changed files with 6 additions and 5 deletions
|
|
@ -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;
|
||||
|
||||
/*
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue