Skip to content

Commit

Permalink
ODE: wrong nullptr passed as argument
Browse files Browse the repository at this point in the history
  • Loading branch information
lucbv committed Jun 12, 2024
1 parent 55f44a7 commit 6a9d85e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ode/src/KokkosODE_BDF.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ struct BDF {

const double dt = (t_end - t_start) / num_steps;
double t = t_start;
int count = 0;

// Load y0 into y_vecs(:, 0)
for (int eqIdx = 0; eqIdx < ode.neqs; ++eqIdx) {
Expand All @@ -118,7 +119,7 @@ struct BDF {
KokkosODE::Experimental::ODE_params params(table.order - 1);
for (int stepIdx = 0; stepIdx < init_steps; ++stepIdx) {
KokkosODE::Experimental::RungeKutta<RK_type::RKF45>::Solve(
ode, params, t, t + dt, y0, y, update, kstack, nullptr);
ode, params, t, t + dt, y0, y, update, kstack, &count);

for (int eqIdx = 0; eqIdx < ode.neqs; ++eqIdx) {
y_vecs(eqIdx, stepIdx + 1) = y(eqIdx);
Expand Down

0 comments on commit 6a9d85e

Please sign in to comment.