Skip to content

Commit

Permalink
Fix uninitialized value warning with debug logging (#286)
Browse files Browse the repository at this point in the history
  • Loading branch information
gardner48 authored Jun 14, 2023
1 parent 028767b commit 15a7944
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/cvode/cvode_ls.c
Original file line number Diff line number Diff line change
Expand Up @@ -1636,7 +1636,8 @@ int cvLsSolve(CVodeMem cv_mem, N_Vector b, N_Vector weight,
N_Vector ynow, N_Vector fnow)
{
CVLsMem cvls_mem;
realtype bnorm, deltar, delta, w_mean;
realtype bnorm = ZERO;
realtype deltar, delta, w_mean;
int curiter, nli_inc, retval;
#if SUNDIALS_LOGGING_LEVEL >= SUNDIALS_LOGGING_DEBUG
realtype resnorm;
Expand Down
3 changes: 2 additions & 1 deletion src/cvodes/cvodes_ls.c
Original file line number Diff line number Diff line change
Expand Up @@ -1723,7 +1723,8 @@ int cvLsSolve(CVodeMem cv_mem, N_Vector b, N_Vector weight,
N_Vector ynow, N_Vector fnow)
{
CVLsMem cvls_mem;
realtype bnorm, deltar, delta, w_mean;
realtype bnorm = ZERO;
realtype deltar, delta, w_mean;
int curiter, nli_inc, retval;
booleantype do_sensi_sim, do_sensi_stg, do_sensi_stg1;
#if SUNDIALS_LOGGING_LEVEL >= SUNDIALS_LOGGING_DEBUG
Expand Down

0 comments on commit 15a7944

Please sign in to comment.