WARPXM v1.10.0
Loading...
Searching...
No Matches
wmfillvalue.h
Go to the documentation of this file.
1#ifndef wmfillvalue_h
2#define wmfillvalue_h
3
4// WarpX lib includes
5//#include <wxfunction.h>
6
7// WarpX HostAction includes
9
10// std includes
11#include <vector>
12
13#include "lib/wxany.h"
14
24{
25public:
32 WmFillValue(const WmConstOpaquePtr& parent_solver) : WmHostAction(parent_solver)
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 std::vector<real>
68 _fillValues; // TODO: I would want this to be heterogenous too, using WxAny or
69 // something similar, but this has proved difficult based on how the
70 // cryptset parsing works
71 std::vector<real> _fillVector;
72
73 real _previous_time;
74 real _interval;
75};
76
79#endif // wmfillvalue_h
Opaque Pointer object that carries the referenced data type, but does not expose this payload type as...
Definition: wmopaqueptr.h:81
The WmFillValue class fills all components of a variable with a specified fill value from the input p...
Definition: wmfillvalue.h:24
void setup(const WxCryptSet &wxc)
Setup HostAction object using supplied cryptset.
WxStepperStatus step()
Step the solver by assigned time step.
virtual void typeCheck()
check that variable types are appropriate for this HostAction.
bool needsDomain() const
Return false because swap operation does not depend on domain specifics.
Definition: wmfillvalue.h:61
WmFillValue(const WmConstOpaquePtr &parent_solver)
Create new WmFillValue host action.
Definition: wmfillvalue.h:32
The WmHostAction class is a base class for sub-solvers in the WARPXM system.
Definition: wmhostaction.h:35
WxCryptSet extends WxCrypt by providing, in addition to name-value pairs, an set of named WxCryptSets...
Definition: wxcryptset.h:35
Represents important parameters for the efficacy of a completing simulation step.
Definition: wxstepperstatus.h:19
#define real
Definition: wmoclunstructuredreconstruction.h:11