WARPXM v1.10.0
Loading...
Searching...
No Matches
wmprobelocation.h
Go to the documentation of this file.
1#ifndef WMPROBELOCATION_H
2#define WMPROBELOCATION_H
3
4// Wm includes
6
7// STL includes
8#include <vector>
9
20{
21public:
27 WmProbeLocation(const WmConstOpaquePtr& parent_solver)
28 : WmHostAction(parent_solver),
29 _isLocal(false),
30 _patchIndex(-1),
31 _nodeIndex(-1),
32 _lastFrameWritten(-1)
33 {
34 }
35
41 void setup(const WxCryptSet& wxc);
42
47 virtual void typeCheck();
48
55
61 bool needsDomain() const
62 {
63 return false;
64 }
65
66private:
67 void createNewFile();
68 void writeVariables(WxIoBase& io, WxIoNodeType fn, const int frame);
69
70 std::vector<real> _location;
71 std::vector<real> _actualLocation;
72 int _isLocal;
73 int _patchIndex;
74 int _nodeIndex;
75 int _lastFrameWritten;
76 std::string _outputFilename;
77};
78
81#endif // WMPROBELOCATION_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 WmProbeLocation class is used to probe a position in a dataset and export that data to a hdf5 fil...
Definition: wmprobelocation.h:20
bool needsDomain() const
Return false because swap operation does not depend on domain specifics.
Definition: wmprobelocation.h:61
virtual void typeCheck()
check that variable types are appropriate for this HostAction.
WxStepperStatus step()
Step the solver by assigned time step.
WmProbeLocation(const WmConstOpaquePtr &parent_solver)
Create new WmProbeLocation host action.
Definition: wmprobelocation.h:27
void setup(const WxCryptSet &wxc)
Setup HostAction object using supplied cryptset.
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