PSCF v1.4.0
rpg/field/CFields.h
1#ifndef RPG_C_FIELD_CONTAINER_H
2#define RPG_C_FIELD_CONTAINER_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/CFields.h> // base class template
12#include <rpg/field/FieldIo.h> // base class template argument
13#include <prdc/cuda/RField.h> // base class template argument
14
15namespace Pscf {
16namespace Rpg {
17
18 using namespace Util;
19 using namespace Prdc;
20 using namespace Prdc::Cuda;
21
33 template <int D>
34 class CFields : public Rp::CFields<D, RField<D>, FieldIo<D> >
35 {
36 public:
37 CFields() = default;
38 virtual ~CFields() = default;
39 };
40
41} // namespace Rpg
42} // namespace Pscf
43
44// Explicit instantiation declarations
45namespace Pscf {
46 namespace Rp {
47 using namespace Prdc::Cuda;
48 extern template class Rp::CFields<1, RField<1>, Rpg::FieldIo<1> >;
49 extern template class Rp::CFields<2, RField<2>, Rpg::FieldIo<2> >;
50 extern template class Rp::CFields<3, RField<3>, Rpg::FieldIo<3> >;
51 }
52 namespace Rpg {
53 extern template class CFields<1>;
54 extern template class CFields<2>;
55 extern template class CFields<3>;
56 }
57}
58#endif
A list of c fields stored in both basis and r-grid format.
A list of c fields stored in both basis and r-grid format.
Periodic fields and crystallography.
Definition complex.cpp:11
SCFT and PS-FTS with real periodic fields (GPU)
PSCF package top-level namespace.