Peano 4
Loading...
Searching...
No Matches
AbstractFVActionSet.py
Go to the documentation of this file.
1# This file is part of the ExaHyPE2 project. For conditions of distribution and
2# use, please see the copyright notice at www.peano-framework.org
3
4
5from peano4.solversteps.ActionSet import ActionSet
6
7
8
10 def __init__(self,solver):
11 """
12
13 solver: ADERDG
14 Reference to creating class
15
16 """
17 super(AbstractFVActionSet,self).__init__(descend_invocation_order=1,parallel=False)
18 self._solver = solver
19 pass
20
21
23 """
24
25 You should replicate this function in each subclass, so you get
26 meaningful action set names (otherwise, it will be
27 AbstractFVActionSet0,1,2,...).
28
29 """
30 return __name__.replace(".py", "").replace(".", "_")
31
32
34 return False
35
36
37 def get_includes(self):
38 return """
39#include <functional>
40#include "exahype2/fv/PatchUtils.h"
41""" + self._solver._get_default_includes() + self._solver.user_action_set_includes
42
43
__init__(self, solver)
solver: ADERDG Reference to creating class
user_should_modify_template(self)
Is the user allowed to modify the output.
get_action_set_name(self)
You should replicate this function in each subclass, so you get meaningful action set names (otherwis...
Action set (reactions to observations made by the grid traversal observer)
Definition ActionSet.py:6