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
from
peano4.api.solversteps.ActionSet
import
ActionSet
4
5
6
class
AbstractFVActionSet
(
ActionSet
):
7
def
__init__
(self, solver):
8
"""
9
10
solver: ADERDG
11
Reference to creating class
12
13
"""
14
super(AbstractFVActionSet, self).
__init__
(descend_invocation_order=1, parallel=
False
)
15
self.
_solver
= solver
16
pass
17
18
def
get_action_set_name
(self):
19
"""
20
21
You should replicate this function in each subclass, so you get
22
meaningful action set names (otherwise, it will be
23
AbstractFVActionSet0,1,2,...).
24
25
"""
26
return
__name__.replace(
".py"
,
""
).replace(
"."
,
"_"
)
27
28
def
user_should_modify_template
(self):
29
return
False
30
31
def
get_includes
(self):
32
return
f
"""
33
#include <functional>
34
#include "exahype2/CellData.h"
35
#include "exahype2/fv/PatchUtils.h"
36
#include "kernels/{self._solver.name}_rusanov.h"
37
"""
+ self.
_solver
._get_default_includes() + self.
_solver
.user_solver_includes
exahype2.api.fv.actionsets.AbstractFVActionSet.AbstractFVActionSet
Definition
AbstractFVActionSet.py:6
exahype2.api.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:18
exahype2.api.fv.actionsets.AbstractFVActionSet.AbstractFVActionSet._solver
_solver
Definition
AbstractFVActionSet.py:15
exahype2.api.fv.actionsets.AbstractFVActionSet.AbstractFVActionSet.user_should_modify_template
user_should_modify_template(self)
Is the user allowed to modify the output.
Definition
AbstractFVActionSet.py:28
exahype2.api.fv.actionsets.AbstractFVActionSet.AbstractFVActionSet.get_includes
get_includes(self)
Return include statements that you need.
Definition
AbstractFVActionSet.py:31
exahype2.api.fv.actionsets.AbstractFVActionSet.AbstractFVActionSet.__init__
__init__(self, solver)
solver: ADERDG Reference to creating class
Definition
AbstractFVActionSet.py:7
peano4.api.solversteps.ActionSet.ActionSet
Action set (reactions to events)
Definition
ActionSet.py:6
src
exahype2
api
fv
actionsets
AbstractFVActionSet.py
Generated on Tue Nov 3 2026 16:05:41 for Peano by
1.9.8