Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions ode/impl/KokkosODE_BDF_impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,11 @@ KOKKOS_FUNCTION void BDFStep(ode_type& ode, const table_type& table, scalar_type

template <class mat_type, class scalar_type>
KOKKOS_FUNCTION void compute_coeffs(const int order, const scalar_type factor, const mat_type& coeffs) {
// initialize coeffs
coeffs(0, 0) = 1.0;
for (int rowIdx = 0; rowIdx < order; ++rowIdx) {
coeffs(rowIdx + 1, 0) = 0.0;
}
for (int colIdx = 0; colIdx < order; ++colIdx) {
coeffs(0, colIdx + 1) = 1.0;
for (int rowIdx = 0; rowIdx < order; ++rowIdx) {
Expand Down
Loading