1#ifndef PSCF_R_FIELD_DFT_CU_TPP
2#define PSCF_R_FIELD_DFT_CU_TPP
13#include <pscf/backend/cuda/HostSendArray.h>
49 meshDimensions_ = other.meshDimensions_;
50 dftDimensions_ = other.dftDimensions_;
60 for (
int i = 0; i < D; ++i) {
80 for (
int i = 0; i < D; ++i) {
81 meshDimensions_[i] = 0;
95 for (
int i = 0; i < D; ++i) {
119 meshDimensions_ = other.meshDimensions_;
120 dftDimensions_ = other.dftDimensions_;
Backend identifier class for the GPU-enabled CUDA backend.
An IntVec<D, T> is a D-component vector of elements of integer type T.
void allocate(IntVec< D > const &meshDimensions)
Allocate the underlying C array for an FFT grid.
RFieldDft()
Default constructor.
IntVec< D > const & meshDimensions() const
Return vector of real-space mesh dimensions by constant reference.
#define UTIL_CHECK(condition)
Assertion macro suitable for serial or parallel production code.
PSCF package top-level namespace.
cufftDoubleComplex cudaComplex
Complex number type used in CPU code that uses FFTW.