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 kernel does not return any
19 eigenvalue, as exahype2.api.fv.actionsets.ComputeMaxEigenvalue determines
20 it for the whole patch afterwards.
27 @param solver: exahype2.api.Solver
28 Has to have solver._patch, solver._patch_with_halo,
29 and solver.compute_kernel_call_on_shell
30 set - @see exahype2.api.fv.RusanovWithOptimisticExplicitEuler.
33 C++ boolean expression, evaluated per cell in touchCellFirstTime,
34 guarding whether that cell's shell is updated.
37 AbstractFVActionSet.__init__(self, solver)
42 if operation_name == peano4.api.solversteps.ActionSet.OPERATION_TOUCH_CELL_FIRST_TIME:
44 double timeStamp = repositories::{self._solver.get_name_of_global_instance()}.getMinTimeStamp();
45 double timeStepSize = repositories::{self._solver.get_name_of_global_instance()}.getMinTimeStepSize();
46 ::exahype2::CellData patchData(fineGridCell{self._solver._patch_with_halo.name}.value, marker.x(), marker.h(), timeStamp, timeStepSize, fineGridCell{self._solver._patch.name}.value);
47 {self._solver.compute_kernel_call_on_shell}
52 if operation_name == peano4.api.solversteps.ActionSet.OPERATION_TOUCH_CELL_FIRST_TIME:
57 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)