30 const uint max_block_size = 0)
54 template <
typename... T> NT
get(
const ctype k,
const T &...t)
const
58 const auto constant = KERNEL::constant(k, t...);
61#pragma acc parallel loop reduction(+ : value)
65#pragma acc loop reduction(+ : value)
72#pragma acc loop reduction(+ : value)
84 value += int_element * weight * KERNEL::kernel(q, cos1, cos2, phi, k, t...);
89 return constant + value;
102 template <
typename... T> std::future<NT>
request(
const ctype k,
const T &...t)
const
104 return std::async(std::launch::deferred, [=,
this]() {
return get(k, t...); });
Definition integrator_4D_openAcc.hh:16
std::future< NT > request(const ctype k, const T &...t) const
Request a future for the integral of the kernel.
Definition integrator_4D_openAcc.hh:102
typename get_type::ctype< NT > ctype
Numerical type to be used for integration tasks e.g. the argument or possible jacobians.
Definition integrator_4D_openAcc.hh:21
const std::vector< ctype > & ang_quadrature_p3
Definition integrator_4D_openAcc.hh:118
const std::vector< ctype > & ang_quadrature_w2
Definition integrator_4D_openAcc.hh:117
const std::vector< ctype > & ang_quadrature_p2
Definition integrator_4D_openAcc.hh:116
Integrator4DOACC(QuadratureProvider &quadrature_provider, const std::array< uint, 4 > grid_sizes, const ctype x_extent, const JSONValue &)
Definition integrator_4D_openAcc.hh:23
const std::vector< ctype > & ang_quadrature_w3
Definition integrator_4D_openAcc.hh:119
const std::vector< ctype > & x_quadrature_p
Definition integrator_4D_openAcc.hh:112
const std::vector< ctype > & x_quadrature_w
Definition integrator_4D_openAcc.hh:113
const std::vector< ctype > & ang_quadrature_w1
Definition integrator_4D_openAcc.hh:115
const std::vector< ctype > & ang_quadrature_p1
Definition integrator_4D_openAcc.hh:114
const std::array< uint, 4 > grid_sizes
Definition integrator_4D_openAcc.hh:108
Integrator4DOACC(QuadratureProvider &quadrature_provider, std::array< uint, 4 > grid_sizes, const ctype x_extent, const uint max_block_size=0)
Definition integrator_4D_openAcc.hh:29
const ctype x_extent
Definition integrator_4D_openAcc.hh:110
NT get(const ctype k, const T &...t) const
Get the integral of the kernel.
Definition integrator_4D_openAcc.hh:54
A wrapper around the boost json value class.
Definition json.hh:19
A class that provides quadrature points and weights, in host and device memory. The quadrature points...
Definition quadrature_provider.hh:139
typename internal::_ctype< CT >::value ctype
Definition types.hh:106
Definition complex_math.hh:14
constexpr __forceinline__ __host__ __device__ NumberType powr(const NumberType x)
A compile-time evaluatable power function for whole number exponents.
Definition math.hh:45
unsigned int uint
Definition utils.hh:22