WARPXM v1.10.0
Loading...
Searching...
No Matches
wmpatchprocessor.h
Go to the documentation of this file.
1#ifndef __WmPatchProcessor__h__
2#define __WmPatchProcessor__h__
3
4// WarpM includes
6
7// STD libraries
8#include <list>
9#include <vector>
10#include <iostream>
11
12// forward declarations - should remove this
13class WmPatchProcess;
14
24{
25public:
26 WmPatchProcessor(const WmConstOpaquePtr& parent_solver) : WmHostAction(parent_solver)
27 {
28 }
29
31
37 void setup(const WxCryptSet& wxc);
38
43 virtual void typeCheck();
44
54
62 bool needsDomain() const
63 {
64 return false;
65 }
66
67 virtual std::string name() const;
68
72 std::vector<WmPatchProcess*>& patchProcesses()
73 {
74 return _patchedProcesses;
75 }
76
77private:
79 WmPatchProcessor& operator=(const WmPatchProcessor& ctp);
81
82 std::vector<std::string> _onSubdomains; // This needs to be added to base class
83
84 std::vector<WmPatchProcess*> _patchedProcesses;
85};
86
89#endif // __WmPatchProcessor__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 WmPatchProcess class is a base class for processes that are broken up onto separate sections of t...
Definition: wmpatchprocess.h:26
The WmPatchProcessor class is used to manage taskes run on patches of a domain.
Definition: wmpatchprocessor.h:24
WmPatchProcessor(const WmConstOpaquePtr &parent_solver)
Definition: wmpatchprocessor.h:26
virtual std::string name() const
Get name of object.
virtual void typeCheck()
check that variable types are appropriate for this HostAction.
std::vector< WmPatchProcess * > & patchProcesses()
Gets the patch processes associated with this patch processor.
Definition: wmpatchprocessor.h:72
bool needsDomain() const
Return false because compute operation actually could depend on multiple domains, one domain,...
Definition: wmpatchprocessor.h:62
void setup(const WxCryptSet &wxc)
Setup HostAction object using supplied cryptset.
WxStepperStatus step()
Step the solver by given time step.
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