PSCF v1.4.0
rpc/field/WFields.h
1#ifndef RPC_W_FIELDS_H
2#define RPC_W_FIELDS_H
3
4/*
5* PSCF - Polymer Self-Consistent Field
6*
7* Copyright 2015 - 2025, The Regents of the University of Minnesota
8* Distributed under the terms of the GNU General Public License.
9*/
10
11#include <rp/field/WFields.h> // base class template
12#include <prdc/cpu/RField.h> // base class member
13
14namespace Pscf {
15namespace Rpc {
16
17 // Forward declaration
18 template <int D> class FieldIo;
19
20 using namespace Util;
21 using namespace Prdc;
22 using namespace Prdc::Cpu;
23
35 template <int D>
36 class WFields
37 : public Rp::WFields<D, RField<D>, FieldIo<D> >
38 {};
39
40} // namespace Rpc
41} // namespace Pscf
42
43// Explicit instantiation declarations
44namespace Pscf {
45 namespace Rp {
46 using namespace Prdc;
47 extern template class WFields<1, Cpu::RField<1>, Rpc::FieldIo<1> >;
48 extern template class WFields<2, Cpu::RField<2>, Rpc::FieldIo<2> >;
49 extern template class WFields<3, Cpu::RField<3>, Rpc::FieldIo<3> >;
50 }
51 namespace Rpc {
52 extern template class WFields<1>;
53 extern template class WFields<2>;
54 extern template class WFields<3>;
55 }
56}
57#endif
A container of w fields stored in both basis and r-grid format.
File input/output operations and format conversions for fields.
A container of fields stored in both basis and r-grid format.
Periodic fields and crystallography.
Definition complex.cpp:11
Real periodic fields, SCFT and PS-FTS (CPU).
Definition param_pc.dox:2
PSCF package top-level namespace.