PSCF v1.3
rpc/fts/ramp/Ramp.tpp
1#ifndef RPC_RAMP_TPP
2#define RPC_RAMP_TPP
3
4#include "Ramp.h"
5#include <rpc/fts/simulator/Simulator.h>
6#include <prdc/cpu/RField.h>
7
8#include <util/containers/DArray.h>
9#include <util/global.h>
10
11namespace Pscf {
12namespace Rpc {
13
14 using namespace Util;
15
16 /*
17 * Constructor.
18 */
19 template <int D>
22 simulatorPtr_(&simulator)
23 {}
24
25 /*
26 * Destructor.
27 */
28 template <int D>
31
32 /*
33 * Setup before simulation - sets the nStep member variable.
34 */
35 template <int D>
36 void Ramp<D>::setup(int nStep)
37 { nStep_ = nStep; }
38
39}
40}
41#endif
virtual ~Ramp()
Destructor.
int nStep_
Number of steps planned for this simulation (set in setup).
Simulator< D > const & simulator() const
Get parent Simulator<D> by const reference.
Ramp(Simulator< D > &simulator)
Constructor.
virtual void setup(int nStep)
Final setup before simulation loop, set value of nStep.
Field theoretic simulator (base class).
ParamComposite()
Constructor.
File containing preprocessor macros for error handling.
Real periodic fields, SCFT and PS-FTS (CPU).
Definition param_pc.dox:2
PSCF package top-level namespace.
Definition param_pc.dox:1