Peano
Loading...
Searching...
No Matches
AbstractLimiterActionSet.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
8
9class AbstractLimiterActionSet( ActionSet ):
10 def __init__(self,solver):
11 """
12
13 solver: Ader-DG
14 Reference to creating class
15
16 """
17 self._solver = solver
18 pass
19
20
22 """
23
24 You should replicate this function in each subclass, so you get
25 meaningful action set names (otherwise, it will be
26 AbstractFVActionSet0,1,2,...).
27
28 """
29 return __name__.replace(".py", "").replace(".", "_")
30
31
33 return False
34
35#TODO: duplicate DGUtils into aderdg?
36 def get_includes(self):
37 return """
38#include <functional>
39""" + self._solver._get_default_includes() + self._solver.get_user_action_set_includes()
get_action_set_name(self)
You should replicate this function in each subclass, so you get meaningful action set names (otherwis...
__init__(self, solver)
solver: Ader-DG Reference to creating class