Gyselalib++
Loading...
Searching...
No Matches
null_extrapolation_rules.hpp
1
// SPDX-License-Identifier: MIT
2
3
#pragma once
4
#include <stdexcept>
5
6
#include <ddc/ddc.hpp>
7
#include <ddc/kernels/splines.hpp>
8
9
#include "ddc_aliases.hpp"
10
#include "multipatch_type.hpp"
11
16
struct
NullExtrapolationRule
17
{
26
template
<
class
... Dim,
template
<
typename
P>
typename
SplinesOnPatch,
class
... Patches>
27
KOKKOS_FUNCTION
double
operator()
(
28
Coord<Dim...>
const
& coord_extrap,
29
MultipatchType<SplinesOnPatch, Patches...>
const
& patches_splines,
30
int
const
out_of_bounds_idx)
const
31
{
32
assert(out_of_bounds_idx < 0);
33
return
0.0;
34
}
35
};
MultipatchType
A class to store several objects that are of a type which is templated by the patch.
Definition
multipatch_type.hpp:32
NullExtrapolationRule
Define null extrapolation rule commun to all geometries.
Definition
null_extrapolation_rules.hpp:17
NullExtrapolationRule::operator()
KOKKOS_FUNCTION double operator()(Coord< Dim... > const &coord_extrap, MultipatchType< SplinesOnPatch, Patches... > const &patches_splines, int const out_of_bounds_idx) const
Evaluate to zero the splines at a given coordinate outside of the splines domain.
Definition
null_extrapolation_rules.hpp:27
src
multipatch
spline
null_extrapolation_rules.hpp
Generated by
1.9.8