WARPXM v1.10.0
Loading...
Searching...
No Matches
copyvals.h
Go to the documentation of this file.
1#ifndef wmapplication_function_arbitrary_copyvals_h
2#define wmapplication_function_arbitrary_copyvals_h
3
4// WARPXM Includes
6
7namespace wxm
8{
9namespace apps
10{
11namespace functions
12{
13namespace arbitrary
14{
19class CopyVals : public WmApplication
20{
21public:
26
30 ~CopyVals() override;
31
36 void setup(const WxCryptSet& wxc) override;
37
43 const std::vector<int>& getInputVariableIndexes(int flag) const override
44 {
45 return _variables;
46 }
47
53 const std::vector<int>& getOutputVariableIndexes(int flag) const override
54 {
55 return _variables;
56 }
57
65 void evaluate_function(const real* q,
66 const real* aux,
67 const solverVariables_t* pSV,
68 real* result) const override;
69
70protected:
71 std::vector<int> _variables;
72
73private:
74 CopyVals& operator=(const CopyVals& var);
75 CopyVals(const CopyVals& var);
76};
77} // namespace arbitrary
78} // namespace functions
79} // namespace apps
80} // namespace wxm
81
82#endif
Base Class for physics applications.
Definition: wmapplication.h:93
WxCryptSet extends WxCrypt by providing, in addition to name-value pairs, an set of named WxCryptSets...
Definition: wxcryptset.h:35
This function simply copies input to output.
Definition: copyvals.h:20
void setup(const WxCryptSet &wxc) override
Setup.
const std::vector< int > & getOutputVariableIndexes(int flag) const override
Grab output variable indices.
Definition: copyvals.h:53
void evaluate_function(const real *q, const real *aux, const solverVariables_t *pSV, real *result) const override
Redefinition of the function evaluator.
const std::vector< int > & getInputVariableIndexes(int flag) const override
Grab input variable indices.
Definition: copyvals.h:43
std::vector< int > _variables
Definition: copyvals.h:71
list apps
Definition: shock_tube.py:33
Base namespace for everything not included in the global namespace.
Definition: field_source.h:8
Definition: wmapplication.h:38
#define real
Definition: wmoclunstructuredreconstruction.h:11