PSCF v1.4.0
fts/analyzer/StepLogger.h
1#ifndef RP_STEP_LOGGER_H
2#define RP_STEP_LOGGER_H
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 <iostream>
12
13namespace Pscf {
14namespace Rp {
15
32 template <int D, class T>
33 class StepLogger : public T::Analyzer
34 {
35
36 public:
37
38 // Protected constructor and destructor (see below).
39
45 void readParameters(std::istream& in) override;
46
52 void sample(long iStep) override;
53
54 protected:
55
62 StepLogger(typename T::Simulator& simulator,
63 typename T::System& system);
64
68 ~StepLogger() = default;
69
70 private:
71
72 // Private alias for base class.
73 using AnalyzerT = typename T::Analyzer;
74
75 };
76
77}
78}
79#endif
void readParameters(std::istream &in) override
Read interval.
~StepLogger()=default
Destructor.
void sample(long iStep) override
Write the step index to a log file.
StepLogger(typename T::Simulator &simulator, typename T::System &system)
Constructor.
Class templates for real-valued periodic fields.
PSCF package top-level namespace.