WARPXM v1.10.0
Loading...
Searching...
No Matches
wmwriteout.h
Go to the documentation of this file.
1#ifndef WmWriteOut_h
2#define WmWriteOut_h
3
4// WarpX lib includes
5
6// WarpX HostAction includes
8
9// std includes
10#include <vector>
11
20{
21public:
27 WmWriteOut(const WmConstOpaquePtr& parent_solver)
28 : WmHostAction(parent_solver), _lastFrameWritten(-1), _writeAllCalls(false)
29 {
30 }
31
37 void setup(const WxCryptSet& wxc) override;
38
43 virtual void typeCheck() override;
44
51
59 WxStepperStatus end() override;
60
66 bool needsDomain() const override
67 {
68 return false;
69 }
70
71private:
72 void writeGeneralMetaData(WxIoBase& io, WxIoNodeType fn, int frame, real tcurr);
73 void writeVariables(WxIoBase& io, WxIoNodeType fn);
74
75 int _lastFrameWritten;
76 int _lastCallWritten;
77
81 int write_interval;
82 bool _writeAllCalls;
83};
84
87#endif // WmWriteOut_h
Opaque Pointer object that carries the referenced data type, but does not expose this payload type as...
Definition: wmopaqueptr.h:81
The WmHostAction class is a base class for sub-solvers in the WARPXM system.
Definition: wmhostaction.h:35
The WmWriteOut class writes a dataset to a file each frame.
Definition: wmwriteout.h:20
WmWriteOut(const WmConstOpaquePtr &parent_solver)
Create new WmWriteOut host action.
Definition: wmwriteout.h:27
void setup(const WxCryptSet &wxc) override
Setup HostAction object using supplied cryptset.
WxStepperStatus step() override
Step the solver by assigned time step.
bool needsDomain() const override
Return false because swap operation does not depend on domain specifics.
Definition: wmwriteout.h:66
WxStepperStatus end() override
Perform actions only done at simulation end.
virtual void typeCheck() override
check that variable types are appropriate for this HostAction.
WxCryptSet extends WxCrypt by providing, in addition to name-value pairs, an set of named WxCryptSets...
Definition: wxcryptset.h:35
Provides an abstract interface for access to hierachical datasets.
Definition: wxiobase.h:25
Represents important parameters for the efficacy of a completing simulation step.
Definition: wxstepperstatus.h:19
Provides a means for derived messengers to return implimentation specific message status flags and da...
Definition: wxiotmpl.h:23
#define real
Definition: wmoclunstructuredreconstruction.h:11