Peano
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
5
from
peano4.solversteps.ActionSet
import
ActionSet
6
7
8
9
class
AbstractFVActionSet
(
ActionSet
):
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
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
AbstractFVActionSet0,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/fv/PatchUtils.h"
41
"""
+ self.
_solver
._get_default_includes() + self.
_solver
.user_action_set_includes
42
43
exahype2.solvers.fv.actionsets.AbstractFVActionSet.AbstractFVActionSet
Definition
AbstractFVActionSet.py:9
exahype2.solvers.fv.actionsets.AbstractFVActionSet.AbstractFVActionSet.__init__
__init__(self, solver)
solver: ADERDG Reference to creating class
Definition
AbstractFVActionSet.py:10
exahype2.solvers.fv.actionsets.AbstractFVActionSet.AbstractFVActionSet.get_includes
get_includes(self)
Return include statements that you need.
Definition
AbstractFVActionSet.py:37
exahype2.solvers.fv.actionsets.AbstractFVActionSet.AbstractFVActionSet._solver
_solver
Definition
AbstractFVActionSet.py:18
exahype2.solvers.fv.actionsets.AbstractFVActionSet.AbstractFVActionSet.user_should_modify_template
user_should_modify_template(self)
Is the user allowed to modify the output.
Definition
AbstractFVActionSet.py:33
exahype2.solvers.fv.actionsets.AbstractFVActionSet.AbstractFVActionSet.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
AbstractFVActionSet.py:22
peano4.solversteps.ActionSet.ActionSet
Action set (reactions to events)
Definition
ActionSet.py:6
python
exahype2
solvers
fv
actionsets
AbstractFVActionSet.py
Generated on Tue Mar 18 2025 20:03:03 for Peano by
1.10.0