12#include <prdc/cuda/RField.h>
13#include <prdc/field/MaskTmpl.h>
85 extern template class MaskTmpl< 1, Rpg::FieldIo<1>, Cuda::RField<1> >;
86 extern template class MaskTmpl< 2, Rpg::FieldIo<2>, Cuda::RField<2> >;
87 extern template class MaskTmpl< 3, Rpg::FieldIo<3>, Cuda::RField<3> >;
Field of real values on a regular mesh, allocated on a GPU device.
Container for a field to which the total density is constrained.
void setFieldIo(FieldIo const &fieldIo)
bool isAllocatedRGrid() const
RField const & rgrid() const
void setBasis(DArray< double > const &field)
void setRGrid(RField const &field, bool isSymmetric=false)
void readRGrid(std::istream &in, UnitCell< D > &unitCell, bool isSymmetric=false)
void allocateRGrid(IntVec< D > const &dimensions)
void allocateBasis(int nBasis)
void readBasis(std::istream &in, UnitCell< D > &unitCell)
bool isAllocatedBasis() const
DArray< double > const & basis() const
A field to which the total monomer concentration is constrained.
double rGridAverage() const
Calculate the average value of the rgrid_ member.
Prdc::MaskTmpl< D, FieldIo< D >, Prdc::Cuda::RField< D > > Base
Base class typedef.
PSCF package top-level namespace.
Utility classes for scientific computation.