11 template<
class Device>
14 using exspace =
typename Device::execution_space;
18 View<rtype*,CLayout,Device>
iseg;
34 KOKKOS_INLINE_FUNCTION
bool is_inside(
int i)
const {
37 for (
int is=0; is<
iseg.size(); is++){
38 if(
iseg(is).start <= i+1 && i+1 <=
iseg(is).end ){
47 void set_to_value(
const View<double*,CLayout,Device>& view,
double value)
const{
48 for (
int is=0; is<
iseg.size(); is++){
59 for (
int is=0; is<
iseg.size(); is++){
void array_deep_copy(T *array, const Kokkos::View< T *, Kokkos::LayoutRight, Device > &view)
Definition: array_deep_copy.hpp:11
Definition: boundary.hpp:6
Definition: field.hpp:301
int end
Definition: boundary.hpp:8
void set_to_value(const View< Field< VarType::Scalar, PhiInterpType::None > *, CLayout, Device > &view, double value) const
Definition: boundary.hpp:58
KOKKOS_INLINE_FUNCTION bool is_inside(int i) const
Definition: boundary.hpp:34
Kokkos::LayoutRight CLayout
Definition: space_settings.hpp:67
void set_to_value(const View< double *, CLayout, Device > &view, double value) const
Definition: boundary.hpp:47
Definition: boundary.hpp:12
typename Device::execution_space exspace
Use execution space where views are allocated.
Definition: boundary.hpp:14
Boundary(int nseg, rtype *bd_fort)
Definition: boundary.hpp:21
View< rtype *, CLayout, Device > iseg
Definition: boundary.hpp:18
void parallel_for(const std::string name, int n_ptl, Function func, Option option, HostAoSoA aosoa_h, DeviceAoSoA aosoa_d)
Definition: streamed_parallel_for.hpp:252
int start
Definition: boundary.hpp:7
Kokkos::ViewAllocateWithoutInitializing NoInit
Definition: space_settings.hpp:68