Skip to content

Commit

Permalink
Add get_sarah_list metafunction for BoundaryCorrections
Browse files Browse the repository at this point in the history
  • Loading branch information
knelli2 authored and shabibti committed Feb 16, 2024
1 parent f0c9ae9 commit 57cbdd4
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -140,4 +140,18 @@ template <typename BoundaryCondition>
using get_deriv_vars_from_boundary_condition =
typename get_deriv_vars_from_boundary_condition_impl<
BoundaryCondition>::type;

template <typename BoundaryCorrection, typename = std::void_t<>>
struct get_sarah_list_impl {
using type = tmpl::list<>;
};

template <typename BoundaryCorrection>
struct get_sarah_list_impl<
BoundaryCorrection, std::void_t<typename BoundaryCorrection::sarah_list>> {
using type = typename BoundaryCorrection::sarah_list;
};

template <typename BoundaryCorrection>
using get_sarah_list = typename get_sarah_list_impl<BoundaryCorrection>::type;
} // namespace evolution::dg::Actions::detail
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ void internal_mortar_data_impl(

using dg_package_data_projected_tags =
tmpl::append<variables_tags, fluxes_tags, temporary_tags_for_face,
detail::get_sarah_list<BoundaryCorrection>,
primitive_tags_for_face>;
using FieldsOnFace = Variables<tmpl::remove_duplicates<tmpl::push_back<
tmpl::append<dg_package_data_projected_tags,
Expand Down

0 comments on commit 57cbdd4

Please sign in to comment.