Peano
Loading...
Searching...
No Matches
AbstractRungeKuttaDGActionSet.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
5from peano4.solversteps.ActionSet import ActionSet
6
7
9 def __init__(self, solver):
10 """
11
12 solver: RungeKuttaDG
13 Reference to creating class
14
15 """
16 super(AbstractRungeKuttaDGActionSet, self).__init__(descend_invocation_order=1, parallel=False)
17 self._solver = solver
18 pass
19
21 """
22
23 You should replicate this function in each subclass, so you get
24 meaningful action set names (otherwise, it will be
25 AbstractFVActionSet0,1,2,...).
26
27 """
28 return __name__.replace(".py", "").replace(".", "_")
29
31 return False
32
33 def get_includes(self):
34 return (
35 """
36#include <functional>
37#include "exahype2/dg/DGUtils.h"
38#include "exahype2/dg/CellIntegral.h"
39#include "exahype2/dg/Riemann.h"
40#include "exahype2/dg/BoundaryConditions.h"
41"""
42 + self._solver._get_default_includes()
43 + self._solver.user_action_set_includes
44 )
get_action_set_name(self)
You should replicate this function in each subclass, so you get meaningful action set names (otherwis...
Action set (reactions to events)
Definition ActionSet.py:6