8#include "Propagator_u.h"
10#include <rp/solvers/PropagatorBase.tpp>
56 qFieldsAll_.allocate(
ns * meshSize);
60 for (
int i = 0; i <
ns; ++i) {
61 qFields_[i].associate(qFieldsAll_, i*meshSize, meshDimensions);
79 qFieldsAll_.deallocate();
87 qFieldsAll_.allocate(
ns * meshSize);
91 for (
int i = 0; i <
ns; ++i) {
92 qFields_[i].associate(qFieldsAll_, i*meshSize, meshDimensions);
120 if (qFields_.isAllocated()) {
121 int ns = qFields_.capacity();
122 for (
int i = 0; i < ns; ++i) {
123 if (qFields_[i].isAssociated()) {
124 qFields_[i].dissociate();
An IntVec<D, T> is a D-component vector of elements of integer type T.
Description of a regular grid of points in a periodic domain.
IntVec< D > dimensions() const
Get an IntVec<D> of the grid dimensions.
int size() const
Get total number of grid points.
void setIsSolved(bool isSolved)
Set the isSolved flag to true or false.
MDE solver for one direction of one block.
virtual void reallocate(int ns)
Mesh< D > const & mesh() const
virtual void allocate(int ns, const Mesh< D > &mesh)
PropagatorBase< D, CUT > PropagatorBaseT
Direct base class.
bool isAllocated_
Is this propagator allocated?
DArray< RField< D, CUT > > qFields_
Array of propagator slices at different contour variable values.
Code for programs that simulate real-valued periodic fields.
PSCF package top-level namespace.