From 67d478cbc3ee2e08a12ac11129e82a4bcc51c82b Mon Sep 17 00:00:00 2001 From: Daniel Weindl Date: Thu, 22 Feb 2024 10:14:59 +0100 Subject: [PATCH] Fix redundant calls to Model::fdwdx from Model_ODE::fJ (#2298) Remove an extraneous call to Model::fdwdx, the result of which will be overridden without use by Model_ODE::fJSparse. --- src/model_ode.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/model_ode.cpp b/src/model_ode.cpp index b3d517b36e..52275008e3 100644 --- a/src/model_ode.cpp +++ b/src/model_ode.cpp @@ -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);