Peano
Loading...
Searching...
No Matches
AbstractRKFDActionSet.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
5
from
peano4.solversteps.ActionSet
import
ActionSet
6
7
8
9
class
AbstractRKFDActionSet
(
ActionSet
):
10
def
__init__
(self,solver):
11
"""
12
13
solver: ADERDG
14
Reference to creating class
15
16
"""
17
super(AbstractRKFDActionSet,self).
__init__
(descend_invocation_order=1,parallel=
False
)
18
self.
_solver
= solver
19
pass
20
21
22
def
get_action_set_name
(self):
23
"""
24
25
You should replicate this function in each subclass, so you get
26
meaningful action set names (otherwise, it will be
27
AbstractRKFDActionSet0,1,2,...).
28
29
"""
30
return
__name__.replace(
".py"
,
""
).replace(
"."
,
"_"
)
31
32
33
def
user_should_modify_template
(self):
34
return
False
35
36
37
def
get_includes
(self):
38
return
"""
39
#include <functional>
40
#include "exahype2/fd/PatchUtils.h"
41
"""
+ self.
_solver
._get_default_includes() + self.
_solver
.user_action_set_includes
42
43
exahype2.solvers.rkfd.actionsets.AbstractRKFDActionSet.AbstractRKFDActionSet
Definition
AbstractRKFDActionSet.py:9
exahype2.solvers.rkfd.actionsets.AbstractRKFDActionSet.AbstractRKFDActionSet._solver
_solver
Definition
AbstractRKFDActionSet.py:18
exahype2.solvers.rkfd.actionsets.AbstractRKFDActionSet.AbstractRKFDActionSet.get_includes
get_includes(self)
Return include statements that you need.
Definition
AbstractRKFDActionSet.py:37
exahype2.solvers.rkfd.actionsets.AbstractRKFDActionSet.AbstractRKFDActionSet.user_should_modify_template
user_should_modify_template(self)
Is the user allowed to modify the output.
Definition
AbstractRKFDActionSet.py:33
exahype2.solvers.rkfd.actionsets.AbstractRKFDActionSet.AbstractRKFDActionSet.get_action_set_name
get_action_set_name(self)
You should replicate this function in each subclass, so you get meaningful action set names (otherwis...
Definition
AbstractRKFDActionSet.py:22
exahype2.solvers.rkfd.actionsets.AbstractRKFDActionSet.AbstractRKFDActionSet.__init__
__init__(self, solver)
solver: ADERDG Reference to creating class
Definition
AbstractRKFDActionSet.py:10
peano4.solversteps.ActionSet.ActionSet
Action set (reactions to events)
Definition
ActionSet.py:6
python
exahype2
solvers
rkfd
actionsets
AbstractRKFDActionSet.py
Generated on Fri Apr 11 2025 10:17:39 for Peano by
1.10.0