Skip to content

Commit

Permalink
Merge pull request #15481 from tjhei/kinsol-warning
Browse files Browse the repository at this point in the history
fix kinsol unused lambda capture warning
  • Loading branch information
tamiko committed Jun 25, 2023
2 parents 44a0d7f + 496d747 commit 4ee9f01
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions source/sundials/kinsol.cc
Original file line number Diff line number Diff line change
Expand Up @@ -228,14 +228,12 @@ namespace SUNDIALS

// helper function to create N_Vectors compatible with different versions
// of SUNDIALS
const auto make_compatible_nvector_view = [this](auto &v) {
return internal::make_nvector_view(v
# if !DEAL_II_SUNDIALS_VERSION_LT(6, 0, 0)
,
kinsol_ctx
const auto make_compatible_nvector_view =
# if DEAL_II_SUNDIALS_VERSION_LT(6, 0, 0)
[](auto &v) { return internal::make_nvector_view(v); };
# else
[this](auto &v) { return internal::make_nvector_view(v, kinsol_ctx); };
# endif
);
};


VectorType ones;
Expand Down

0 comments on commit 4ee9f01

Please sign in to comment.