#include <OutputAMRMultiGridInspector.H>
Public Member Functions | |
OutputAMRMultiGridInspector (const std::string &a_name, AMRMultiGrid< T > &a_solver) | |
~OutputAMRMultiGridInspector () | |
Destructor. | |
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) |
Private Attributes | |
std::string | m_name |
AMRMultiGrid< T > * | m_solver |
OutputAMRMultiGridInspector< T >::OutputAMRMultiGridInspector | ( | const std::string & | a_name, | |
AMRMultiGrid< T > & | a_solver | |||
) | [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.
OutputAMRMultiGridInspector< T >::~OutputAMRMultiGridInspector | ( | ) | [inline] |
Destructor.
void OutputAMRMultiGridInspector< T >::recordResiduals | ( | const Vector< T * > & | a_residuals, | |
int | a_minLevel, | |||
int | a_maxLevel, | |||
int | a_iter | |||
) | [inline, virtual] |
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().
void OutputAMRMultiGridInspector< T >::recordCorrections | ( | const Vector< T * > & | a_corrections, | |
int | a_minLevel, | |||
int | a_maxLevel, | |||
int | a_iter | |||
) | [inline, virtual] |
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().
std::string OutputAMRMultiGridInspector< T >::m_name [private] |
AMRMultiGrid<T>* OutputAMRMultiGridInspector< T >::m_solver [private] |