Peano
Loading...
Searching...
No Matches
exahype2.api.rkfd4.PlotAsVTKFile._PlotPatchesIfPlotterIsActive Class Reference

PlotPatchesInPeanoBlockFormat which only does something if its plotter is active. More...

Inheritance diagram for exahype2.api.rkfd4.PlotAsVTKFile._PlotPatchesIfPlotterIsActive:
Collaboration diagram for exahype2.api.rkfd4.PlotAsVTKFile._PlotPatchesIfPlotterIsActive:

Public Member Functions

 __init__ (self, is_active_predicate, finish_call, **kwargs)
 get_guard_of_operation (self, operation_name)
 get_body_of_unprepareTraversal (self)

Protected Attributes

 _is_active_predicate = is_active_predicate
 _finish_call = finish_call

Detailed Description

PlotPatchesInPeanoBlockFormat which only does something if its plotter is active.

The toolbox action set opens a new snapshot file in beginTraversal() and adds it to the index file. That has to be skipped altogether for a plotter which is not active, so the guards of all operations are combined with the plotter's is<Name>Active(). The predicate does not change throughout the plot sweep, as finish<Name>() - which moves the plotter on to its next output - is only called in unprepareTraversal() (exahype2.api.Solver.Solver.Plotter).

Definition at line 12 of file PlotAsVTKFile.py.

Constructor & Destructor Documentation

◆ __init__()

exahype2.api.rkfd4.PlotAsVTKFile._PlotPatchesIfPlotterIsActive.__init__ ( self,
is_active_predicate,
finish_call,
** kwargs )

Definition at line 30 of file PlotAsVTKFile.py.

References __init__().

Referenced by __init__().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Function Documentation

◆ get_body_of_unprepareTraversal()

exahype2.api.rkfd4.PlotAsVTKFile._PlotPatchesIfPlotterIsActive.get_body_of_unprepareTraversal ( self)

◆ get_guard_of_operation()

exahype2.api.rkfd4.PlotAsVTKFile._PlotPatchesIfPlotterIsActive.get_guard_of_operation ( self,
operation_name )

Field Documentation

◆ _finish_call

exahype2.api.rkfd4.PlotAsVTKFile._PlotPatchesIfPlotterIsActive._finish_call = finish_call
protected

Definition at line 33 of file PlotAsVTKFile.py.

Referenced by get_body_of_unprepareTraversal().

◆ _is_active_predicate

exahype2.api.rkfd4.PlotAsVTKFile._PlotPatchesIfPlotterIsActive._is_active_predicate = is_active_predicate
protected

Definition at line 32 of file PlotAsVTKFile.py.

Referenced by get_guard_of_operation().


The documentation for this class was generated from the following file: