1#ifndef PSCF_R_FIELD_CU_TPP
2#define PSCF_R_FIELD_CU_TPP
12#include <pscf/backend/cuda/HostSendArray.h>
41 { meshDimensions_ = other.meshDimensions_; }
57 for (
int i = 0; i < D; ++i) {
72 for (
int i = 0; i < D; ++i) {
73 meshDimensions_[i] = 0;
86 for (
int i = 0; i < D; ++i) {
102 meshDimensions_ = other.meshDimensions_;
Backend identifier class for the GPU-enabled CUDA backend.
An IntVec<D, T> is a D-component vector of elements of integer type T.
RField()
Default constructor.
void allocate(IntVec< D > const &meshDimensions)
Allocate the underlying array for data on a regular mesh.
IntVec< D > const & meshDimensions() const
Return mesh dimensions by constant reference.
#define UTIL_CHECK(condition)
Assertion macro suitable for serial or parallel production code.
PSCF package top-level namespace.
cufftDoubleReal cudaReal
Real number type used in CPU code that uses FFTW.