3from .AbstractFVActionSet
import AbstractFVActionSet
11 Update the shell of a Finite Volume patch
13 Counterpart of exahype2.api.fv.actionsets.UpdateCell which updates only
14 the shell of the patch (@see
15 exahype2.api.fv.RusanovWithOptimisticExplicitEuler). It reads the
16 halo-augmented reconstruction solver._patch_with_halo, invokes the
17 shell compute kernel, and writes the shell of solver._patch. The patch
18 interior of solver._patch remains unchanged. The maximum eigenvalue of
19 the shell goes into the first entry of solver._max_eigenvalue_and_time_step_sizes.
26 @param solver: exahype2.api.Solver
27 Has to have solver._patch, solver._patch_with_halo,
28 solver._max_eigenvalue_and_time_step_sizes and solver.compute_kernel_call_on_shell
29 set - @see exahype2.api.fv.RusanovWithOptimisticExplicitEuler.
32 C++ boolean expression, evaluated per cell in touchCellFirstTime,
33 guarding whether that cell's shell is updated.
36 AbstractFVActionSet.__init__(self, solver)
41 if operation_name == peano4.api.solversteps.ActionSet.OPERATION_TOUCH_CELL_FIRST_TIME:
43 double timeStamp = repositories::{self._solver.get_name_of_global_instance()}.getMinTimeStamp();
44 double timeStepSize = repositories::{self._solver.get_name_of_global_instance()}.getMinTimeStepSize();
45 ::exahype2::CellData patchData(fineGridCell{self._solver._patch_with_halo.name}.value, marker.x(), marker.h(), timeStamp, timeStepSize, fineGridCell{self._solver._patch.name}.value);
46 {self._solver.compute_kernel_call_on_shell}
48 fineGridCell{self._solver._max_eigenvalue_and_time_step_sizes.name}.setMaxEigenvalue( 0, patchData.maxEigenvalue[0] );
53 if operation_name == peano4.api.solversteps.ActionSet.OPERATION_TOUCH_CELL_FIRST_TIME:
58 return __name__.replace(
".py",
"").replace(
".",
"_")
Update the shell of a Finite Volume patch.
get_action_set_name(self)
You should replicate this function in each subclass, so you get meaningful action set names (otherwis...
get_guard_of_operation(self, operation_name)
Return the guard of an operation.
get_body_of_operation(self, operation_name)
Return actual C++ code snippets to be inserted into C++ code.
__init__(self, solver, guard)