PSCF v1.3.1
rpg/fts/analyzer/StepLogger.h
1#ifndef RPG_STEP_LOGGER_H
2#define RPG_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 "Analyzer.h" // base class template
12
13namespace Pscf {
14namespace Rpg {
15
16 using namespace Util;
17
23 template <int D>
24 class StepLogger : public Analyzer<D>
25 {
26
27 public:
28
32 StepLogger();
33
37 virtual ~StepLogger()
38 {}
39
45 virtual void readParameters(std::istream& in);
46
52 virtual void sample(long iStep);
53
56
57 };
58
59 // Explicit instantiation declarations
60 extern template class StepLogger<1>;
61 extern template class StepLogger<2>;
62 extern template class StepLogger<3>;
63
64}
65}
66#endif
Abstract base for periodic output and/or analysis actions.
Analyzer()
Default constructor.
bool isAtInterval(long counter) const
Return true iff counter is a multiple of the interval.
virtual void readParameters(std::istream &in)
Read interval and output file name.
virtual void sample(long iStep)
Write a frame/snapshot to trajectory file.
void setClassName(const char *className)
Set class name string.
SCFT and PS-FTS with real periodic fields (GPU)
PSCF package top-level namespace.
Definition param_pc.dox:1