Block-Structured AMR Software Framework
AMReX_EB2_IF_Base.H
Go to the documentation of this file.
1 #ifndef AMREX_EB2_IF_BASE_H_
2 #define AMREX_EB2_IF_BASE_H_
3 #include <AMReX_Config.H>
4 
5 #include <AMReX_Gpu.H>
6 #include <AMReX_Utility.H>
7 #include <type_traits>
8 
9 namespace amrex {
10 
11 struct GPUable {};
12 
13 namespace EB2 {
14 
15 template <class D, class Enable = void> struct IsGPUable : std::false_type {};
16 
17 template <class D>
18 struct IsGPUable<D, std::enable_if_t<std::is_base_of_v<GPUable,D>>>
19  : std::true_type {};
20 
21 }
22 }
23 
24 #endif
Definition: AMReX_Amr.cpp:49
Definition: AMReX_EB2_IF_Base.H:15
Definition: AMReX_EB2_IF_Base.H:11