84 using value_type =
typename ParticleBC<T, Dim, ViewType>::value_type;
90 KOKKOS_DEFAULTED_FUNCTION
94 const unsigned& dim,
const bool& isUpper)
97 KOKKOS_INLINE_FUNCTION
void operator()(
const size_t& i)
const {
99 bool tooHigh = value >= maxval_m;
102 * ((tooHigh &&
isUpper_m) * (maxval_m - value)
106 KOKKOS_DEFAULTED_FUNCTION
112 using value_type =
typename ParticleBC<T, Dim, ViewType>::value_type;
118 KOKKOS_DEFAULTED_FUNCTION
122 const unsigned& dim,
const bool& isUpper)
125 KOKKOS_INLINE_FUNCTION
void operator()(
const size_t& i)
const {
127 bool tooHigh = value >= maxval_m;
129 value += (tooHigh &&
isUpper_m) * (maxval_m - value)
133 KOKKOS_DEFAULTED_FUNCTION
Definition ParticleBC.h:21
size_t dim_m
The dimension along which this boundary condition.
Definition ParticleBC.h:28
double middle_m
The coordinate of the midpoint of the domain along the given dimension.
Definition ParticleBC.h:39
bool isUpper_m
Whether the boundary conditions are being applied for an upper.
Definition ParticleBC.h:34
ViewType view_m
Kokkos view containing the field data.
Definition ParticleBC.h:25
double extent_m
The length of the domain along the given dimension.
Definition ParticleBC.h:37
double minval_m
Minimum and maximum coordinates of the domain along the given dimension.
Definition ParticleBC.h:30