PSCF v1.5.0
CPT.h
1#ifndef PSCF_CPT_H
2#define PSCF_CPT_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 <pscf/backend/BackendId.h>
12#include <fftw3.h>
13
14// Forward declarations
15namespace Util {
16 class Random;
17}
18namespace Pscf {
19 template <typename T> class VecRandom;
20}
21
22namespace Pscf {
23
24 using namespace Util;
25
31 class CPT
32 {
33
34 public:
35
36 // Aliases for associated types
37
38 using Real = double;
39 using Complex = fftw_complex;
40
41 // Static members
42
46 static const BackendId id = BackendId::Cpp;
47
51 static void init();
52
58 static void setThreadCount(int nThread);
59
60 };
61
62} // namespace Pscf
63#endif
Backend identifier class for the C++ serial CPU backend.
Definition CPT.h:32
static void init()
Initialize backend.
Definition CPT.cpp:18
static void setThreadCount(int nThread)
Set the number of threads.
Definition CPT.cpp:24
Random number generator.
Definition Random.h:47
PSCF package top-level namespace.
BackendId
Enum that identifies a computational "backend".
Definition BackendId.h:25
Utility classes for scientific computation.