Chombo + EB
3.2
|
#include <OutputAMRMultiGridInspector.H>
Public Member Functions | |
OutputAMRMultiGridInspector (const std::string &a_name, AMRMultiGrid< T > &a_solver) | |
~OutputAMRMultiGridInspector () | |
Destructor. More... | |
void | recordResiduals (const Vector< T *> &a_residuals, int a_minLevel, int a_maxLevel, int a_iter) |
void | recordCorrections (const Vector< T *> &a_corrections, int a_minLevel, int a_maxLevel, int a_iter) |
Public Member Functions inherited from AMRMultiGridInspector< T > | |
AMRMultiGridInspector () | |
Base class constructor. This must be called by all subclasses. More... | |
virtual | ~AMRMultiGridInspector () |
Destructor. More... | |
Private Attributes | |
std::string | m_name |
AMRMultiGrid< T > * | m_solver |
This subclass of AMRMultiGridInspector simply writes output files containing residuals and corrections at each multigrid iteration.
|
inline |
Create an AMRMultiGridInspector that inspects the given AMRMultiGrid solver and generates output files containing intermediate data. a_name The name of the inspector. This gets prepended to the output files. a_solver The AMRMultiGrid solver with which this inspector is associated.
|
inline |
Destructor.
|
inlinevirtual |
Override this method to keep track of a multigrid residual computed during a multigrid iteration at the given levels.
a_residuals | An array containing the residuals computed by the multigrid algorithm at each level in the range [a_minLevel, a_maxLevel]. |
a_minLevel | The lowest AMR level at which residuals were computed. |
a_maxLevel | The highest AMR level at which residuals were computed. |
a_iter | The multigrid iteration number. |
Implements AMRMultiGridInspector< T >.
References OutputAMRMultiGridInspector< T >::m_name, OutputAMRMultiGridInspector< T >::m_solver, and name().
|
inlinevirtual |
Override this method to keep track of a multigrid correction computed during a V cycle at the given level.
a_corrections | An array containing the corrections computed during a V cycle at each level in the range [a_minLevel, a_maxLevel]. |
a_minLevel | The lowest AMR level at which corrections were computed. |
a_maxLevel | The highest AMR level at which corrections were computed. |
a_iter | The multigrid iteration number. |
Implements AMRMultiGridInspector< T >.
References OutputAMRMultiGridInspector< T >::m_name, OutputAMRMultiGridInspector< T >::m_solver, and name().
|
private |
|
private |