A factory class for generating StatusTestOutput objects.
More...
#include <BelosStatusTestOutputFactory.hpp>
template<class ScalarType, class MV, class OP>
class Belos::StatusTestOutputFactory< ScalarType, MV, OP >
A factory class for generating StatusTestOutput objects.
StatusTestOutputFactory provides a generic interface for generating StatusTestOutput objects that any solver manager can use. This factory removes the logic for selecting which StatusTestOutput class needs to be used from the solver managers. It also hides the generation of new StatusTestOutput classes from the solver managers.
Definition at line 70 of file BelosStatusTestOutputFactory.hpp.
◆ StatusTestOutputFactory() [1/3]
template<class ScalarType, class MV, class OP>
◆ ~StatusTestOutputFactory()
template<class ScalarType, class MV, class OP>
◆ StatusTestOutputFactory() [2/3]
template<class ScalarType, class MV, class OP>
◆ StatusTestOutputFactory() [3/3]
template<class ScalarType, class MV, class OP>
◆ create()
template<class ScalarType, class MV, class OP>
Create the StatusTestOutput object specified by the outputStyle.
The StatusTestOutput object requires an OutputManager for printing the underlying StatusTest on calls to checkStatus(), as well as an underlying StatusTest.
The last two parameters, described below, in addition to the verbosity level of the OutputManager, control when printing is called. When both the mod
criterion and the printStates
criterion are satisfied, the status test will be printed to the OutputManager with MsgType of StatusTestDetails.
- Parameters
-
[in] | mod | A positive number describes how often the output should be printed. On every call to checkStatus(), an internal counter is incremented. Printing may only occur when this counter is congruent to zero modulo mod . Default: 1 (attempt to print on every call to checkStatus()) |
[in] | printStates | A combination of StatusType values for which the output may be printed. Default: Passed (attempt to print whenever checkStatus() will return Passed) |
Definition at line 111 of file BelosStatusTestOutputFactory.hpp.
◆ outputStyle_
template<class ScalarType, class MV, class OP>
◆ taggedTests_
template<class ScalarType, class MV, class OP>
The documentation for this class was generated from the following file: