5#include <util/misc/FileMaster.h>
15 template <
int D,
class T>
21 template <
int D,
class T>
30 template <
int D,
class T>
38 fileMasterPtr_(nullptr)
44 template <
int D,
class T>
54 template <
int D,
class T>
61 if (baseInterval < 0) {
76 if (interval_ % baseInterval != 0) {
77 UTIL_THROW(
"interval is not a multiple of baseInterval");
81 template <
int D,
class T>
91 template <
int D,
class T>
98 template <
int D,
class T>
102 return (*fileMasterPtr_);
108 template <
int D,
class T>
112 std::string filename = outputFileName_;
static void initStatic()
Define and initialize baseInterval (initialized to 1).
Analyzer(Simulator< D, T > &simulator, System< D, T > &system)
Constructor.
void readInterval(std::istream &in)
Optionally read interval from file, with error checking.
static long baseInterval
The interval for every Analyzer must be a multiple of baseInterval.
void setFileMaster(FileMaster &fileMaster)
Set the FileMaster to use to open files.
Simulator< D, T > & simulator()
Get the parent Simulator by reference.
std::string const & outputFileName() const
Get the outputFileName string.
virtual void readParameters(std::istream &in)
Read parameters from archive.
FileMaster & fileMaster()
Get the FileMaster by reference.
System< D, T > & system()
Get the parent System by reference.
void readOutputFileName(std::istream &in)
Read outputFileName from file.
Base class for field theoretic PS-FTS simulator.
Base class template for classes that represent a complete system.
A FileMaster manages input and output files for a simulation.
ScalarParam< Type > & read(std::istream &in, const char *label, Type &value)
Add and read a new required ScalarParam < Type > object.
ScalarParam< Type > & readOptional(std::istream &in, const char *label, Type &value)
Add and read a new optional ScalarParam < Type > object.
ParamComposite()
Constructor.
File containing preprocessor macros for error handling.
#define UTIL_CHECK(condition)
Assertion macro suitable for serial or parallel production code.
#define UTIL_THROW(msg)
Macro for throwing an Exception, reporting function, file and line number.
Code for programs that simulate real-valued periodic fields.
PSCF package top-level namespace.