PSCF v1.4.0
Ramp.tpp
1#ifndef RP_RAMP_TPP
2#define RP_RAMP_TPP
3
4#include "Ramp.h"
5#include <util/containers/DArray.h>
6#include <util/global.h>
7
8namespace Pscf {
9namespace Rp {
10
11 using namespace Util;
12
13 /*
14 * Constructor.
15 */
16 template <int D, class T>
17 Ramp<D,T>::Ramp(typename T::Simulator& simulator)
19 simulatorPtr_(&simulator)
20 {}
21
22 /*
23 * Setup before simulation - sets the nStep member variable.
24 */
25 template <int D, class T>
26 void Ramp<D,T>::setup(int nStep)
27 { nStep_ = nStep; }
28
29}
30}
31#endif
Ramp(typename T::Simulator &simulator)
Constructor.
Definition Ramp.tpp:17
T::Simulator const & simulator() const
Get parent typename T::Simulator by const reference.
int nStep_
Number of steps planned for this simulation (set in setup).
virtual void setup(int nStep)
Final setup before simulation loop, set value of nStep.
Definition Ramp.tpp:26
ParamComposite()
Constructor.
File containing preprocessor macros for error handling.
Class templates for real-valued periodic fields.
PSCF package top-level namespace.