1#ifndef PSCF_C_FIELD_CP_H
2#define PSCF_C_FIELD_CP_H
11#include <pscf/backend/cpp/BackendArray.h>
12#include <pscf/backend/cpp/CPT.h>
13#include <pscf/math/IntVec.h>
22 template <
int D,
class T>
class CField;
106 template <
class Archive>
107 void serialize(Archive& ar,
const unsigned int version);
121 template <
int D>
inline
123 {
return meshDimensions_; }
129 template <
class Archive>
132 const unsigned int version)
135 ar & meshDimensions_;
CField()
Default constructor.
const IntVec< D > & meshDimensions() const
Return mesh dimensions by constant reference.
virtual void deallocate()
Deallocate underlying C array and clear mesh dimensions.
void allocate(const IntVec< D > &meshDimensions)
Allocate the underlying C array for an FFT grid.
double RealType
Type of real and imaginary parts of a complex value.
void serialize(Archive &ar, const unsigned int version)
Serialize a Field to/from an Archive.
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.
PSCF package top-level namespace.