1#ifndef RP_PROPAGATOR_BASE_H
2#define RP_PROPAGATOR_BASE_H
11#include <pscf/solvers/PropagatorTmpl.h>
12#include <util/containers/DArray.h>
17 template <
int D>
class Mesh;
20 template <
int D,
class T>
class RField;
23 template <
int D,
class T>
class Block;
80 template <
int D,
class T>
267 bool hasComputedHead_;
276 template <
int D,
class T>
inline
286 template <
int D,
class T>
inline
297 template <
int D,
class T>
inline
307 template <
int D,
class T>
inline
317 template <
int D,
class T>
inline
327 template <
int D,
class T>
inline
337 template <
int D,
class T>
inline
344 template <
int D,
class T>
inline
351 template <
int D,
class T>
inline
353 { blockPtr_ = &
block; }
Description of a regular grid of points in a periodic domain.
const QT & partner() const
Get partner propagator.
const QT & source(int id) const
Get a source propagator.
virtual void reallocate(int ns)
Reallocate memory used by this propagator.
void solve()
Solve the modified diffusion equation (MDE) for this block.
void solveMde()
Compute solution of modified diffusion equation (MDE).
RField< D, T > const & q(int i) const
Return q-field at a specified step.
DArray< RField< D, CPT > > qFields_
Mesh< D > const & mesh() const
void setBlock(Block< D, T > &block)
Associate this propagator with a block.
PropagatorTmpl< Propagator< D, CPT > > PropagatorTmplT
RField< D, CPT > const & head() const
void solve(RField< D, T > const &head)
Solve the MDE for a specified initial condition.
PropagatorBase()
Constructor.
bool isAllocated() const
Has memory been allocated for this propagator?
virtual void allocate(int ns, const Mesh< D > &mesh)
Allocate memory used by this propagator.
RField< D, T > const & tail() const
Return q-field at the terminal (tail) vertex.
Block< D, T > & block()
Get the associated Block object by non-const reference.
Block< D, CPT > const & block() const
~PropagatorBase()
Destructor.
void computeQ(double &Q) const
Compute and return partition function for the polymer molecule.
void computeHead()
Compute initial q-field at the head vertex.
Dynamically allocatable contiguous array template.
#define UTIL_CHECK(condition)
Assertion macro suitable for serial or parallel production code.
#define UTIL_ASSERT(condition)
Assertion macro suitable for debugging serial or parallel code.
bool isThread()
Is the thread model in use ?
Code for programs that simulate real-valued periodic fields.
PSCF package top-level namespace.