1#ifndef PSCF_R_FIELD_DFT_CP_H
2#define PSCF_R_FIELD_DFT_CP_H
11#include <pscf/backend/cpp/BackendArray.h>
12#include <pscf/backend/cpp/CPT.h>
13#include <pscf/math/IntVec.h>
141 template <
class Archive>
142 void serialize(Archive& ar,
const unsigned int version);
166 template <
int D>
inline
168 {
return meshDimensions_; }
173 template <
int D>
inline
175 {
return dftDimensions_; }
181 template <
class Archive>
183 const unsigned int version)
186 ar & meshDimensions_;
Backend identifier class for the C++ serial CPU backend.
Dynamic reference counted array for use with FFTW library.
void serialize(Archive &ar, const unsigned int version)
Serialize an FftwDRArray to/from an Archive.
An IntVec<D, T> is a D-component vector of elements of integer type T.
void serialize(Archive &ar, const unsigned int version)
Serialize a Field to/from an Archive.
IntVec< D > const & dftDimensions() const
Return vector of dft (Fourier) grid dimensions by const reference.
RFieldDft()
Default constructor.
double RealType
Type of real and imaginary parts of a complex element value.
virtual void deallocate()
Deallocate underlying C array and clear mesh dimensions.
IntVec< D > const & meshDimensions() const
Return vector of spatial mesh dimensions by const reference.
void allocate(IntVec< D > const &meshDimensions)
Allocate the underlying C array and set mesh dimensions.
PSCF package top-level namespace.