4#include "multipatch_field.hpp"
12template <
class ExecSpace,
template <
typename P>
typename T,
class... Patches>
17 Kokkos::SpaceAccessibility<ExecSpace, typename FuncType::memory_space>::accessible);
18 using IdxRangeFunc =
typename FuncType::discrete_domain_type;
19 constexpr std::size_t NPatches = multipatch_function.
size();
20 IdxRangeFunc idx_range = get_idx_range(multipatch_function);
21 std::array<double, NPatches> norm_inf_on_patch(
22 {(
norm_inf(exec_space, multipatch_function.template get<Patches>()))...});
24 for (std::size_t i(0); i < NPatches; ++i) {
25 result = std::max(result, norm_inf_on_patch[i]);
37template <
class ExecSpace,
template <
typename P>
typename T,
class... Patches>
45 Kokkos::SpaceAccessibility<ExecSpace, typename FuncType::memory_space>::accessible);
46 using IdxRangeFunc =
typename FuncType::discrete_domain_type;
47 constexpr std::size_t NPatches = multipatch_function.
size();
48 IdxRangeFunc idx_range = get_idx_range(multipatch_function);
49 std::array<double, NPatches> norm_inf_on_patch({(error_norm_inf(
51 multipatch_function.template get<Patches>(),
52 multipatch_exact_function.template get<Patches>()))...});
54 for (std::size_t i(0); i < NPatches; ++i) {
55 result = std::max(result, norm_inf_on_patch[i]);
A class to store field objects on patches.
Definition multipatch_field.hpp:30
static constexpr std::size_t size()
Get the number of objects stored inside the class.
Definition multipatch_type.hpp:131
A class which describes the real space in the temporal direction.
Definition geometry.hpp:44