Skip to content

Commit

Permalink
Rename jac_prec_solve_cb to prec_solve_cb
Browse files Browse the repository at this point in the history
  • Loading branch information
bjodah committed Feb 28, 2018
1 parent 7601d03 commit 89ec3ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pycvodes/include/cvodes_anyode.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ namespace cvodes_anyode {
}

template <typename OdeSys> // Section 4.6.9 Preconditioning in cvs_guide.pdf
int jac_prec_solve_cb(realtype t, N_Vector y, N_Vector fy, N_Vector r,
int prec_solve_cb(realtype t, N_Vector y, N_Vector fy, N_Vector r,
N_Vector z, realtype gamma, realtype delta, int lr,
void *user_data
#if SUNDIALS_VERSION_MAJOR < 3
Expand Down Expand Up @@ -269,7 +269,7 @@ namespace cvodes_anyode {
integr.set_iter_eps_lin(eps_lin);
if (with_jtimes)
integr.set_jac_times_vec_fn(jac_times_vec_cb<OdeSys>);
integr.set_preconditioner(prec_setup_cb<OdeSys>, jac_prec_solve_cb<OdeSys>);
integr.set_preconditioner(prec_setup_cb<OdeSys>, prec_solve_cb<OdeSys>);
if (linear_solver == 10 || linear_solver == 11) // GMRES
integr.set_gram_schmidt_type((linear_solver == 10) ? GramSchmidtType::Modified : GramSchmidtType::Classical);
else if (linear_solver == 20 or linear_solver == 30) // BiCGStab, TFQMR
Expand Down

0 comments on commit 89ec3ad

Please sign in to comment.