PSCF v1.5.0
Propagator_c.h
1#ifndef RP_PROPAGATOR_C_H
2#define RP_PROPAGATOR_C_H
3
4/*
5* PSCF - Polymer Self-Consistent Field
6*
7* Copyright 2015 - 2026, David Morse (morse012@um.edu) and co-authors
8* Distributed under the terms of the GNU General Public License.
9*/
10
11#include <rp/solvers/PropagatorBase.h> // base class template
12#include <pscf/backend/cpp/CPT.h> // template argument
13
14namespace Pscf {
15namespace Rp {
16
17 using namespace Util;
18
19 // Declare primary template
20 template <int D, class T> class Propagator;
21
37 template <int D>
38 class Propagator<D,CPT>
39 : public PropagatorBase<D,CPT>
40 {
41
42 public:
43
44 // Member functions
45
49 Propagator();
50
55
70 void allocate(int ns, const Mesh<D>& mesh) override;
71
83 void reallocate(int ns) override;
84
85 protected:
86
89
92
98
99 };
100
101} // namespace Rp
102} // namespace Pscf
103
104// Explicit instantiation declarations
105namespace Pscf {
106 namespace Rp {
107 extern template class PropagatorBase<1,CPT>;
108 extern template class PropagatorBase<2,CPT>;
109 extern template class PropagatorBase<3,CPT>;
110 extern template class Propagator<1,CPT>;
111 extern template class Propagator<2,CPT>;
112 extern template class Propagator<3,CPT>;
113 }
114}
115#endif
Backend identifier class for the C++ serial CPU backend.
Definition CPT.h:32
Description of a regular grid of points in a periodic domain.
Definition Mesh.h:61
DArray< RField< D, CPT > > qFields_
Mesh< D > const & mesh() const
PropagatorTmpl< Propagator< D, CPT > > PropagatorTmplT
void reallocate(int ns) override
Reallocate memory used by this propagator.
PropagatorBase< D, CPT > PropagatorBaseT
Direct (parent) base class.
void allocate(int ns, const Mesh< D > &mesh) override
Allocate memory used by this propagator.
Code for programs that simulate real-valued periodic fields.
Definition param_pc.dox:2
PSCF package top-level namespace.