PSCF v1.4.0
BdStep.tpp
1#ifndef RP_BD_STEP_TPP
2#define RP_BD_STEP_TPP
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 "BdStep.h"
12#include <util/random/Random.h>
13
14namespace Pscf {
15namespace Rp {
16
17 using namespace Util;
18
19 /*
20 * Constructor.
21 */
22 template <int D, class T>
23 BdStep<D,T>::BdStep(typename T::BdSimulator& simulator)
24 : simulatorPtr_(&simulator),
25 systemPtr_(&(simulator.system())),
26 randomPtr_(&(simulator.random())),
27 vecRandomPtr_(&(simulator.vecRandom()))
28 {}
29
30 /*
31 * readParameters, empty default implementation.
32 */
33 template <int D, class T>
34 void BdStep<D,T>::readParameters(std::istream &in)
35 {}
36
37 /*
38 * Setup at beginning of loop.
39 */
40 template <int D, class T>
42 {}
43
44 template <int D, class T>
46 {}
47
48 template <int D, class T>
49 void BdStep<D,T>::outputTimers(std::ostream& out)
50 {}
51
52 template<int D, class T>
55
56}
57}
58#endif
virtual void setup()
Setup before the beginning of each simulation run.
Definition BdStep.tpp:41
T::BdSimulator & simulator()
Get parent BdSimulator object.
T::VecRandom & vecRandom()
Get vector random number generator of parent simulator.
T::System & system()
Get parent System object.
virtual void output()
Output statistics for this stepper (after end of simulation).
Definition BdStep.tpp:45
virtual void outputTimers(std::ostream &out)
Output any timing results to ostream.
Definition BdStep.tpp:49
Random & random()
Get scalar random number generator of parent simulator.
virtual void readParameters(std::istream &in)
Read required parameters from file.
Definition BdStep.tpp:34
virtual void clearTimers()
Clear timers.
Definition BdStep.tpp:53
Class templates for real-valued periodic fields.
PSCF package top-level namespace.