Skip to content

Commit

Permalink
Some minor cleaning up.
Browse files Browse the repository at this point in the history
  • Loading branch information
agarny committed Jan 24, 2019
1 parent 66156ab commit 7bc2393
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/plugins/solver/CVODESolver/src/cvodesolver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ void CvodeSolver::initialize(double pVoi, int pRatesStatesCount,
else
mLinearSolver = SUNLinSol_SPTFQMR(mStatesVector, PREC_LEFT, 0);

CVodeSetLinearSolver(mSolver, mLinearSolver, nullptr);
CVodeSetLinearSolver(mSolver, mLinearSolver, mMatrix);
CVBandPrecInit(mSolver, pRatesStatesCount, upperHalfBandwidth,
lowerHalfBandwidth);
} else {
Expand All @@ -368,7 +368,7 @@ void CvodeSolver::initialize(double pVoi, int pRatesStatesCount,
else
mLinearSolver = SUNLinSol_SPTFQMR(mStatesVector, PREC_NONE, 0);

CVodeSetLinearSolver(mSolver, mLinearSolver, nullptr);
CVodeSetLinearSolver(mSolver, mLinearSolver, mMatrix);
}
}
} else {
Expand Down

0 comments on commit 7bc2393

Please sign in to comment.