WARPXM v1.10.0
Loading...
Searching...
No Matches
unique_variable.h
Go to the documentation of this file.
1#pragma once
2
3// Wm includes
4#include "diagnostic.h"
5
6// STL includes
7#include <vector>
8
9namespace wxm
10{
11namespace diagnostics
12{
13
21{
22public:
28 UniqueVariable(const WmConstOpaquePtr& parent_solver)
29 : Diagnostic(parent_solver), _patch_to_read(-1)
30 {
31 }
32
38 void setup(const WxCryptSet& wxc) override;
39
44 void typeCheck() override;
45
51 bool needsDomain() const override
52 {
53 return false;
54 }
55
56 void runDiagnostic(std::vector<real>& res) override;
57
58private:
59 void createNewFile();
60 void writeVariables(WxIoBase& io, WxIoNodeType fn, const int frame);
61
65 int _patch_to_read;
66
67};
68
69} // namespace diagnostics
70} // namespace wxm
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: unique_variable.h:21
void runDiagnostic(std::vector< real > &res) override
UniqueVariable(const WmConstOpaquePtr &parent_solver)
Create new UniqueVariable diagnostic.
Definition: unique_variable.h:28
void setup(const WxCryptSet &wxc) override
Setup HostAction object using supplied cryptset.
void typeCheck() override
check that variable types are appropriate for this HostAction.
bool needsDomain() const override
Return false because swap operation does not depend on domain specifics.
Definition: unique_variable.h:51
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