Peano
Loading...
Searching...
No Matches
DynamicMeshRefinementTrigger.py
Go to the documentation of this file.
1# This file is part of the Peano 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
6import jinja2
7
8
10 """
11
12 AMR criterion based upon the particle density
13
14 This implementation is almost exactly the same as the toolbox variant,
15 but it does not work with a static field, but instead pipes all the
16 refinement events a global variable.
17
18 """
19
20 def __init__(self):
21 """ """
22 return
23
25 return False
26
27 def get_body_of_operation(self, operation_name):
28 result = "\n"
29 return result
30
32 return """
33 return ::exaparty::committedGridControlEvents;
34"""
35
37 return __name__.replace(".py", "").replace(".", "_")
38
39 def get_includes(self):
40 return """
41#include "exaparty/GridControlEvents.h"
42"""
get_body_of_createGridControlEventsForNextTraversal(self)
Return the grid control events that this action set wants to trigger.
get_body_of_operation(self, operation_name)
Return actual C++ code snippets to be inserted into C++ code.
Action set (reactions to events)
Definition ActionSet.py:6