|
Peano
|
Evaluate the gradient-based refinement criterion and collect the outcome as refine and erase requests. More...


Public Member Functions | |
| get_action_set_name (self) | |
| Return unique action set name. | |
Public Member Functions inherited from exahype2.api.blockstructured.DynamicMeshRefinement.DynamicMeshRefinement | |
| __init__ (self, solver, int patch_size, str guard, float min_volume_size=None, float max_volume_size=None, int event_lifetime=2, bool hand_events_to_peano=False, bool veto_erase=False) | |
| str | get_volume_evaluation (self) |
| C++ Jinja2 template evaluating the criterion within one volume. | |
| get_body_of_operation (self, operation_name) | |
| Return actual C++ code snippets to be inserted into C++ code. | |
| get_guard_of_operation (self, operation_name) | |
| Return the guard of an operation. | |
| get_body_of_unprepareTraversal (self) | |
| Commit the new events once per rank and mesh sweep, after all trees have merged their local events into the service. | |
| get_body_of_createGridControlEventsForNextTraversal (self) | |
| Return the grid control events that this action set wants to trigger. | |
| get_attributes (self) | |
| Return attributes as copied and pasted into the generated class. | |
| user_should_modify_template (self) | |
| Is the user allowed to modify the output. | |
| get_includes (self) | |
| Return include statements that you need. | |
Public Member Functions inherited from peano4.api.solversteps.ActionSet.ActionSet | |
| get_constructor_body (self) | |
| Define a tailored constructor body. | |
| get_static_initialisations (self, full_qualified_classname) | |
| get_destructor_body (self) | |
| get_implementation_of_createGridControlEventsForNextTraversal (self) | |
| Return the C++ implementation of createGridControlEventsForNextTraversal() | |
| get_body_of_prepareTraversal (self) | |
| get_implementation_of_prepareTraversal (self) | |
| Return the C++ implementation of prepareTraversal() | |
| get_implementation_of_unprepareTraversal (self) | |
| Return the C++ implementation of unprepareTraversal() | |
| get_implementation_of_operation (self, operation_name) | |
| Return the C++ implementation of an operation. | |
| bool | may_run_in_background_task (self) |
| May a task graph compiler move touchCellFirstTime() into a task. | |
Additional Inherited Members | |
Data Fields inherited from exahype2.api.blockstructured.DynamicMeshRefinement.DynamicMeshRefinement | |
| patch_size | |
| guard | |
| event_lifetime | |
| min_volume_size | |
| max_volume_size | |
| hand_events_to_peano | |
| veto_erase | |
Data Fields inherited from peano4.api.solversteps.ActionSet.ActionSet | |
| descend_invocation_order | |
| parallel | |
Protected Attributes inherited from exahype2.api.blockstructured.DynamicMeshRefinement.DynamicMeshRefinement | |
| _solver | |
Evaluate the gradient-based refinement criterion and collect the outcome as refine and erase requests.
The action set is the counterpart of exahype2.api.blockstructured.DynamicMeshRefinement for solvers with an exahype2.api.GradientRefinement PDE term. It differs only in what it evaluates per volume: For each coordinate axis, it computes the left and the right difference quotient of the solution (exahype2::fv::computeOneSidedGradient()) and hands each of them to the term, i.e. it calls the term 2*Dimensions times per volume. Each call starts from Keep.
A volume asks for a refinement if any call says Refine, and it may be erased only if all calls say Erase. As the action set combines the volumes of a cell the same way, it simply treats each call like the outcome of one further volume. Everything else, i.e. the mesh size bounds and the bookkeeping within the refinement service, is inherited.
Definition at line 6 of file DynamicMeshRefinementWithGradients.py.
| exahype2.api.blockstructured.DynamicMeshRefinementWithGradients.DynamicMeshRefinementWithGradients.get_action_set_name | ( | self | ) |
Return unique action set name.
Returns a description (word) for the mapping which is also used as class name for the generated type. As a consequence, the result should be one word (if possible) and uppercase. Also, every subclass should overwrite this routine.
The generator will take the result and construct eventually classes similar to MyStep2Dummy.h and MyStep2Dummy.cpp or similar for the example below, where we return Dummy.
Reimplemented from exahype2.api.blockstructured.DynamicMeshRefinement.DynamicMeshRefinement.
Definition at line 56 of file DynamicMeshRefinementWithGradients.py.
|
static |
Per-volume evaluation of the gradient-based criterion.
Definition at line 30 of file DynamicMeshRefinementWithGradients.py.
Referenced by exahype2.api.blockstructured.DynamicMeshRefinement.DynamicMeshRefinement.get_volume_evaluation().