Peano
Loading...
Searching...
No Matches
AbstractADERDGActionSet.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
import
peano4.solversteps
4
5
6
class
AbstractADERDGActionSet
(
peano4.solversteps.ActionSet
):
7
def
__init__
(self, solver):
8
super(AbstractADERDGActionSet, self).
__init__
(
9
descend_invocation_order=1, parallel=
False
10
)
11
self.
_solver
= solver
12
13
def
get_action_set_name
(self):
14
"""
15
You should replicate this function in each subclass, so you get
16
meaningful action set names (otherwise, it will be
17
AbstractADERDGActionSet0,1,2,...).
18
"""
19
return
__name__.replace(
".py"
,
""
).replace(
"."
,
"_"
)
20
21
def
user_should_modify_template
(self):
22
return
False
23
24
def
get_includes
(self):
25
return
(
26
"""
27
#include <algorithm>
28
#include <functional>
29
#include "exahype2/dg/DGUtils.h"
30
"""
31
+ self.
_solver
._get_default_includes()
32
+ self.
_solver
.get_user_action_set_includes()
33
)
exahype2.solvers.aderdg.actionsets.AbstractADERDGActionSet.AbstractADERDGActionSet
Definition
AbstractADERDGActionSet.py:6
exahype2.solvers.aderdg.actionsets.AbstractADERDGActionSet.AbstractADERDGActionSet._solver
_solver
Definition
AbstractADERDGActionSet.py:11
exahype2.solvers.aderdg.actionsets.AbstractADERDGActionSet.AbstractADERDGActionSet.user_should_modify_template
user_should_modify_template(self)
Is the user allowed to modify the output.
Definition
AbstractADERDGActionSet.py:21
exahype2.solvers.aderdg.actionsets.AbstractADERDGActionSet.AbstractADERDGActionSet.__init__
__init__(self, solver)
Definition
AbstractADERDGActionSet.py:7
exahype2.solvers.aderdg.actionsets.AbstractADERDGActionSet.AbstractADERDGActionSet.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
AbstractADERDGActionSet.py:13
exahype2.solvers.aderdg.actionsets.AbstractADERDGActionSet.AbstractADERDGActionSet.get_includes
get_includes(self)
Return include statements that you need.
Definition
AbstractADERDGActionSet.py:24
peano4.solversteps.ActionSet.ActionSet
Action set (reactions to events)
Definition
ActionSet.py:6
python
exahype2
solvers
aderdg
actionsets
AbstractADERDGActionSet.py
Generated on Sat Feb 28 2026 09:46:16 for Peano by
1.10.0