Skip to content

Commit

Permalink
ODE: fix potentially uninitialized warning from CodeQL (#2477)
Browse files Browse the repository at this point in the history
* ODE: fix potentially uninitialized warning from CodeQL

Signed-off-by: Luc Berger-Vergiat <[email protected]>

* Clang-format

Signed-off-by: Luc Berger-Vergiat <[email protected]>

---------

Signed-off-by: Luc Berger-Vergiat <[email protected]>
  • Loading branch information
lucbv authored Jan 10, 2025
1 parent 0af5820 commit 4c33556
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ode/impl/KokkosODE_BDF_impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ KOKKOS_FUNCTION void BDFStep(ode_type& ode, scalar_type& t, scalar_type& dt, sca

scalar_type max_step = Kokkos::ArithTraits<scalar_type>::max();
scalar_type min_step = Kokkos::ArithTraits<scalar_type>::min();
scalar_type safety = 0.675, error_norm;
scalar_type safety = 0.675, error_norm = 0.0;
if (dt > max_step) {
update_D(order, max_step / dt, coeffs, tempD, D);
dt = max_step;
Expand Down

0 comments on commit 4c33556

Please sign in to comment.