WARPXM v1.10.0
Loading...
Searching...
No Matches
probe.h
Go to the documentation of this file.
1#ifndef WXM_DIAGNOSTIC_PROBE_H
2#define WXM_DIAGNOSTIC_PROBE_H
3
4// Wm includes
5#include "diagnostic.h"
6
7// STL includes
8#include <vector>
9
10namespace wxm
11{
12namespace diagnostics
13{
14
26class Probe : public Diagnostic
27{
28public:
34 Probe(const WmConstOpaquePtr& parent_solver)
35 : Diagnostic(parent_solver), _local_rank(0), _patchIndex(-1), _nodeIndex(-1)
36 {
37 }
38
44 void setup(const WxCryptSet& wxc) override;
45
50 void typeCheck() override;
51
57 bool needsDomain() const override
58 {
59 return false;
60 }
61
65 void probe(std::vector<real>& res);
66
67 void runDiagnostic(std::vector<real>& res) override;
68
69private:
70 void createNewFile();
71 void writeVariables(WxIoBase& io, WxIoNodeType fn, const int frame);
72
73 std::vector<real> _location;
74 std::vector<real> _actualLocation;
75 int _local_rank;
76 int _patchIndex;
77 int _nodeIndex;
78};
79
80} // namespace diagnostics
81} // namespace wxm
82
83#endif
Opaque Pointer object that carries the referenced data type, but does not expose this payload type as...
Definition: wmopaqueptr.h:81
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
A simulation diagnostic.
Definition: diagnostic.h:18
This probes a location in the domain and gets the values of the associated variables.
Definition: probe.h:27
bool needsDomain() const override
Return false because swap operation does not depend on domain specifics.
Definition: probe.h:57
void runDiagnostic(std::vector< real > &res) override
void typeCheck() override
check that variable types are appropriate for this HostAction.
void setup(const WxCryptSet &wxc) override
Setup HostAction object using supplied cryptset.
void probe(std::vector< real > &res)
Runs the probe.
Probe(const WmConstOpaquePtr &parent_solver)
Create new Probe diagnostic.
Definition: probe.h:34
Base namespace for everything not included in the global namespace.
Definition: field_source.h:8
Provides a means for derived messengers to return implimentation specific message status flags and da...
Definition: wxiotmpl.h:23