1#ifndef PSCF_R_FIELD_CP_H
2#define PSCF_R_FIELD_CP_H
11#include <pscf/backend/cpp/BackendArray.h>
12#include <pscf/backend/cpp/CPT.h>
13#include <pscf/math/IntVec.h>
25 template <
int D,
class T>
class RField;
127 template <
class Archive>
128 void serialize(Archive& ar,
const unsigned int version);
151 template <
int D>
inline
153 {
return meshDimensions_; }
159 template <
class Archive>
161 const unsigned int version)
164 ar & meshDimensions_;
Backend identifier class for the C++ serial CPU backend.
Data ValueType
Data type of each array element.
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.
void associate(BackendArray< double, CPT > &arr, int beginId, IntVec< D > const &meshDimensions)
Associate this object with a slice of another BackendArray.
void allocate(IntVec< D > const &meshDimensions)
Allocate the underlying C array for values on a regular mesh.
~RField() override=default
Destructor.
void deallocate() override
Deallocate memory and return to empty state.
RField()
Default constructor.
IntVec< D > const & meshDimensions() const
Return mesh dimensions by constant reference.
PSCF package top-level namespace.