1#ifndef PRDC_FIELD_CHECK_H
2#define PRDC_FIELD_CHECK_H
11#include <pscf/math/IntVec.h>
15 template <
typename T>
class DArray;
31 template <
int D,
class FT>
56 template <
int D,
class FT>
82 template <
int D,
class FT>
103 template <
int D,
class FT>
141 template <
int D,
class AT>
174 template <
class OAT,
class IAT>
179#include "fieldCheck.tpp"
An IntVec<D, T> is a D-component vector of elements of integer type T.
Dynamically allocatable contiguous array template.
void copyArrays(DArray< OAT > &out, DArray< IAT > const &in)
Copy a DArray of 1D arrays.
void inspectArrays(DArray< AT > const &arrays, int &nMonomer, int &capacity)
Inspect dimensions of a DArray of 1D arrays, each of type AT.
void inspectFields(DArray< FT > const &fields, int &nMonomer, IntVec< D > &dimensions)
Inspect dimensions of a DArray of fields, each of type FT.
void checkAllocateArrays(DArray< AT > &arrays, int nMonomer, int capacity)
Check allocation of a DArray of 1D arrays, allocate if necessary.
void checkAllocateFields(DArray< FT > &fields, int nMonomer, IntVec< D > const &dimensions)
Check allocation of an array of fields, allocate if necessary.
void checkAllocateField(FT &field, IntVec< D > const &dimensions)
Check allocation of a single field, allocate if necessary.
Periodic fields and crystallography.
void allocateArrays(DArray< AT > &arrays, int n, int capacity)
Allocate an array of arrays.
void allocateFields(DArray< FT > &fields, int n, IntVec< D > const &dimension)
Allocate a DArray of fields.
PSCF package top-level namespace.
Utility classes for scientific computation.