Peano
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 
5 from peano4.solversteps.ActionSet import ActionSet
6 
7 
8 
9 class AbstractLimiterActionSet( ActionSet ):
10  def __init__(self,solver):
11  """
12 
13  solver: Ader-DG
14  Reference to creating class
15 
16  """
17  self._solver_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_solver._get_default_includes() + self._solver_solver.get_user_action_set_includes()