Peano
Loading...
Searching...
No Matches
exahype2.api.fv.MaxEigenvalueReduction Namespace Reference

Functions

 add_max_eigenvalue_reduction (solver)
 Let the generated abstract solver class host the maximum eigenvalue of a time step.

Function Documentation

◆ add_max_eigenvalue_reduction()

exahype2.api.fv.MaxEigenvalueReduction.add_max_eigenvalue_reduction ( solver)

Let the generated abstract solver class host the maximum eigenvalue of a time step.

The class collects the maximum over all patches and threads. This is a reduction over the whole mesh, hence it belongs to the solver and not to a cell. exahype2.api.fv.actionsets.ReduceMaxEigenvalue feeds it (reduceMaxEigenvalue()), while exahype2.api.fv.actionsets.ComputeGlobalCFLCondition reads and resets it (getAndResetMaxEigenvalue()) in a different place of the time step. Reading and resetting is one operation to avoid races.

Parameters
solverexahype2.api.Solver The solver whose abstract class hosts the reduction.

Definition at line 5 of file MaxEigenvalueReduction.py.