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
3from peano4.api.solversteps.ActionSet import ActionSet
4
5
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
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
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
get_action_set_name(self)
You should replicate this function in each subclass, so you get meaningful action set names (otherwis...
user_should_modify_template(self)
Is the user allowed to modify the output.
__init__(self, solver)
solver: ADERDG Reference to creating class
Action set (reactions to events)
Definition ActionSet.py:6