Skip to content

Commit

Permalink
Fix redundant calls to Model::fdwdx from Model_ODE::fJ (#2298)
Browse files Browse the repository at this point in the history
Remove an extraneous call to Model::fdwdx, the result of which will be overridden without use by Model_ODE::fJSparse.
  • Loading branch information
dweindl authored Feb 22, 2024
1 parent f0c7c59 commit 67d478c
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/model_ode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ void Model_ODE::fJ(
void Model_ODE::fJ(
realtype t, const_N_Vector x, const_N_Vector /*xdot*/, SUNMatrix J
) {
auto x_pos = computeX_pos(x);
fdwdx(t, N_VGetArrayPointerConst(x_pos));
fJSparse(t, x, derived_state_.J_.get());
derived_state_.J_.refresh();
auto JDense = SUNMatrixWrapper(J);
Expand Down

0 comments on commit 67d478c

Please sign in to comment.