PSCF v1.3.1
System.cu
1#ifndef RPG_SYSTEM_CU
2#define RPG_SYSTEM_CU
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 "System.h"
12#include <prdc/system/SystemTmpl.tpp>
13
14#include <rpg/solvers/MixtureModifier.h>
15#include <rpg/solvers/Polymer.h>
16#include <rpg/solvers/Solvent.h>
17#include <rpg/scft/ScftThermo.h>
18#include <rpg/environment/EnvironmentFactory.h>
19#include <rpg/fts/simulator/Simulator.h>
20#include <rpg/fts/simulator/SimulatorFactory.h>
21#include <rpg/fts/compressor/Compressor.h>
22#include <rpg/scft/iterator/Iterator.h>
23#include <rpg/scft/iterator/IteratorFactory.h>
24#include <rpg/scft/sweep/Sweep.h>
25#include <rpg/scft/sweep/SweepFactory.h>
26
27#include <prdc/cuda/RField.h>
28#include <prdc/cuda/RFieldDft.h>
29#include <prdc/environment/Environment.h>
30
31#include <pscf/inter/Interaction.h>
32#include <pscf/cuda/ThreadArray.h>
33#include <pscf/cuda/ThreadMesh.h>
34
35namespace Pscf {
36 namespace Prdc {
37 // Explicit instantiation of base class
38 template class SystemTmpl< 1, Rpg::Types<1> >;
39 template class SystemTmpl< 2, Rpg::Types<2> >;
40 template class SystemTmpl< 3, Rpg::Types<3> >;
41 }
42 namespace Rpg {
43
44 /*
45 * Constructor.
46 */
47 template <int D>
49 : SystemTmpl<D, Types<D> >(*this)
50 {
53 }
54
55 /*
56 * Set thread count.
57 */
58 template <int D>
64
65 // Explicit instantiation
66 template class System<1>;
67 template class System<2>;
68 template class System<3>;
69
70 }
71}
72#endif
Base class template for classes that represent a complete system.
Definition SystemTmpl.h:101
SystemTmpl(typename Types< D >::System &system)
Main class, representing a complete physical system.
System()
Constructor.
Definition System.cu:48
virtual void setThreadCount(int nThread) override
Explicitly set maximum number of threads per block.
Definition System.cu:59
List of aliases for types used the in Rpg namespace.
void setClassName(const char *className)
Set class name string.
void init()
Initialize static variables in Pscf::ThreadArray namespace.
void setThreadsPerBlock()
Set the number of threads per block to a default value.
void setThreadsPerBlock(int blockSize)
Manually set the block size that should be used by default.
Periodic fields and crystallography.
Definition CField.cpp:11
SCFT and PS-FTS with real periodic fields (GPU)
PSCF package top-level namespace.
Definition param_pc.dox:1