Go to the source code of this file.
Classes | |
class | Playa::Out |
Namespaces | |
namespace | Teuchos |
namespace | Playa |
Playa is a collection of high-level objects for linear algebra. | |
Defines | |
#define | PLAYA_OUT(test, msg) |
#define | PLAYA_ROOT_OUT(test, msg) |
#define | PLAYA_VERB_EXTREME(msg) PLAYA_MSG4(this->verb(), msg) |
#define | PLAYA_VERB_HIGH(msg) PLAYA_MSG3(this->verb(), msg) |
#define | PLAYA_VERB_MEDIUM(msg) PLAYA_MSG2(this->verb(), msg) |
#define | PLAYA_VERB_LOW(msg) PLAYA_MSG1(this->verb(), msg) |
#define | PLAYA_HEADER_LINE "\n------------------------------------------------------------------\n" |
#define | PLAYA_MSG(context, level, msg) PLAYA_OUT(this->verbLevel(context) >= level, msg) |
#define | PLAYA_LEVEL1(context, msg) PLAYA_MSG(context, 1, msg) |
#define | PLAYA_LEVEL2(context, msg) PLAYA_MSG(context, 2, msg) |
#define | PLAYA_LEVEL3(context, msg) PLAYA_MSG(context, 3, msg) |
#define | PLAYA_LEVEL4(context, msg) PLAYA_MSG(context, 4, msg) |
#define | PLAYA_LEVEL5(context, msg) PLAYA_MSG(context, 5, msg) |
#define | PLAYA_MSG1(level, msg) PLAYA_OUT(level >= 1, msg) |
#define | PLAYA_MSG2(level, msg) PLAYA_OUT(level >= 2, msg) |
#define | PLAYA_MSG3(level, msg) PLAYA_OUT(level >= 3, msg) |
#define | PLAYA_MSG4(level, msg) PLAYA_OUT(level >= 4, msg) |
#define | PLAYA_MSG5(level, msg) PLAYA_OUT(level >= 5, msg) |
#define | PLAYA_ROOT_MSG1(level, msg) PLAYA_ROOT_OUT(level >= 1, msg) |
#define | PLAYA_ROOT_MSG2(level, msg) PLAYA_ROOT_OUT(level >= 2, msg) |
#define | PLAYA_ROOT_MSG3(level, msg) PLAYA_ROOT_OUT(level >= 3, msg) |
#define | PLAYA_ROOT_MSG4(level, msg) PLAYA_ROOT_OUT(level >= 4, msg) |
#define | PLAYA_ROOT_MSG5(level, msg) PLAYA_ROOT_OUT(level >= 5, msg) |
#define | PLAYA_BANNER1(level, tab, msg) |
#define | PLAYA_BANNER2(level, tab, msg) |
#define | PLAYA_BANNER3(level, tab, msg) |
Functions | |
void | Playa::writeTable (std::ostream &os, const Tabs &tab, const Array< double > &a, int cols) |
void | Playa::writeTable (std::ostream &os, const Tabs &tab, const Array< int > &a, int cols) |
#define PLAYA_BANNER1 | ( | level, | |||
tab, | |||||
msg | ) |
Value:
PLAYA_ROOT_MSG1(level, tab \ << "===================================================================");\ PLAYA_ROOT_MSG1(level, tab << std::endl << tab \ << " " << msg); \ PLAYA_ROOT_MSG1(level, tab << std::endl << tab\ << "===================================================================");
Definition at line 132 of file PlayaOut.hpp.
#define PLAYA_BANNER2 | ( | level, | |||
tab, | |||||
msg | ) |
Value:
PLAYA_ROOT_MSG2(level, tab \ << "-------------------------------------------------------------------");\ PLAYA_ROOT_MSG2(level, tab << msg); \ PLAYA_MSG2(level, tab\ << "-------------------------------------------------------------------");
Definition at line 141 of file PlayaOut.hpp.
#define PLAYA_BANNER3 | ( | level, | |||
tab, | |||||
msg | ) |
Value:
PLAYA_ROOT_MSG3(level, tab \ << "-------------------------------------------------------------------");\ PLAYA_ROOT_MSG3(level, tab << std::endl << tab \ << msg); \ PLAYA_ROOT_MSG3(level, tab << std::endl << tab\ << "-------------------------------------------------------------------");
Definition at line 150 of file PlayaOut.hpp.
#define PLAYA_HEADER_LINE "\n------------------------------------------------------------------\n" |
Definition at line 92 of file PlayaOut.hpp.
#define PLAYA_LEVEL1 | ( | context, | |||
msg | ) | PLAYA_MSG(context, 1, msg) |
Definition at line 96 of file PlayaOut.hpp.
#define PLAYA_LEVEL2 | ( | context, | |||
msg | ) | PLAYA_MSG(context, 2, msg) |
Definition at line 98 of file PlayaOut.hpp.
#define PLAYA_LEVEL3 | ( | context, | |||
msg | ) | PLAYA_MSG(context, 3, msg) |
Definition at line 100 of file PlayaOut.hpp.
#define PLAYA_LEVEL4 | ( | context, | |||
msg | ) | PLAYA_MSG(context, 4, msg) |
Definition at line 102 of file PlayaOut.hpp.
#define PLAYA_LEVEL5 | ( | context, | |||
msg | ) | PLAYA_MSG(context, 5, msg) |
Definition at line 104 of file PlayaOut.hpp.
#define PLAYA_MSG | ( | context, | |||
level, | |||||
msg | ) | PLAYA_OUT(this->verbLevel(context) >= level, msg) |
Definition at line 94 of file PlayaOut.hpp.
#define PLAYA_MSG1 | ( | level, | |||
msg | ) | PLAYA_OUT(level >= 1, msg) |
Definition at line 107 of file PlayaOut.hpp.
Referenced by Playa::LinearOperator< Scalar >::apply(), Playa::LinearOperator< Scalar >::applyTranspose(), Playa::OptConvergenceTestBuilder::createConvTest(), Playa::LineSearchBuilder::createLineSearch(), Playa::OptBuilder::createOptimizer(), Playa::LinearSolverBuilder::createSolver(), Sundance::ExodusMeshReader::ExodusMeshReader(), Playa::ObjectiveBase::fdCheck(), Playa::LineSearchBasedOptBase::run(), Playa::NewtonArmijoSolver< Scalar >::solve(), Playa::LinearSolver< Scalar >::solve(), Sundance::TransientStepProblem::step(), and Playa::DefaultOptConvergenceTest::test().
#define PLAYA_MSG2 | ( | level, | |||
msg | ) | PLAYA_OUT(level >= 2, msg) |
Definition at line 109 of file PlayaOut.hpp.
Referenced by Playa::SimpleZeroOp< Scalar >::apply(), Playa::SimpleTransposedOp< Scalar >::apply(), Playa::SimpleScaledOp< Scalar >::apply(), Playa::SimpleIdentityOp< Scalar >::apply(), Playa::SimpleDiagonalOp< Scalar >::apply(), Playa::SimpleComposedOp< Scalar >::apply(), Playa::SimpleBlockOp< Scalar >::apply(), Playa::SimpleAddedOp< Scalar >::apply(), Playa::InverseOperator< Scalar >::apply(), Playa::OptConvergenceTestBuilder::createConvTest(), Playa::LineSearchBuilder::createLineSearch(), Playa::OptBuilder::createOptimizer(), Playa::LinearSolverBuilder::createSolver(), Sundance::PDEConstrainedObjBase::eval(), Sundance::PDEConstrainedObjBase::evalGrad(), Playa::ObjectiveBase::fdCheck(), Sundance::ExodusMeshReader::fillMesh(), Sundance::NonlinearPDEConstrainedObj::initEquations(), Sundance::LinearPDEConstrainedObj::initEquations(), Playa::LineSearchBasedOptBase::run(), Playa::NewtonArmijoSolver< Scalar >::solve(), Playa::LinearSolver< Scalar >::solve(), Sundance::NonlinearPDEConstrainedObj::solveState(), Sundance::LinearPDEConstrainedObj::solveState(), Sundance::NonlinearPDEConstrainedObj::solveStateAndAdjoint(), Sundance::LinearPDEConstrainedObj::solveStateAndAdjoint(), Sundance::TransientStepProblem::step(), and Playa::DefaultOptConvergenceTest::test().
#define PLAYA_MSG3 | ( | level, | |||
msg | ) | PLAYA_OUT(level >= 3, msg) |
Definition at line 111 of file PlayaOut.hpp.
Referenced by Playa::SimpleAddedOp< Scalar >::apply(), Playa::LinearOperator< Scalar >::apply(), Playa::LinearOperator< Scalar >::applyTranspose(), Playa::ObjectiveBase::fdCheck(), Sundance::ExodusMeshReader::fillMesh(), Sundance::NonlinearPDEConstrainedObj::initEquations(), Sundance::LinearPDEConstrainedObj::initEquations(), Playa::NewtonArmijoSolver< Scalar >::solve(), Sundance::NonlinearPDEConstrainedObj::solveState(), Sundance::LinearPDEConstrainedObj::solveState(), Sundance::NonlinearPDEConstrainedObj::solveStateAndAdjoint(), and Sundance::LinearPDEConstrainedObj::solveStateAndAdjoint().
#define PLAYA_MSG4 | ( | level, | |||
msg | ) | PLAYA_OUT(level >= 4, msg) |
#define PLAYA_MSG5 | ( | level, | |||
msg | ) | PLAYA_OUT(level >= 5, msg) |
Definition at line 115 of file PlayaOut.hpp.
Referenced by Sundance::PDEConstrainedObjBase::evalGrad(), Sundance::NonlinearPDEConstrainedObj::solveState(), Sundance::LinearPDEConstrainedObj::solveState(), Sundance::NonlinearPDEConstrainedObj::solveStateAndAdjoint(), and Sundance::LinearPDEConstrainedObj::solveStateAndAdjoint().
#define PLAYA_OUT | ( | test, | |||
msg | ) |
Value:
{ \
if (test) \
{ \
TeuchosOStringStream omsg; \
omsg << msg; \
Out::println(omsg.str()); \
} \
}
Definition at line 66 of file PlayaOut.hpp.
#define PLAYA_ROOT_MSG1 | ( | level, | |||
msg | ) | PLAYA_ROOT_OUT(level >= 1, msg) |
Definition at line 119 of file PlayaOut.hpp.
Referenced by Sundance::ExodusMeshReader::fillMesh(), Sundance::readNodalFields(), Sundance::DoublingStepController::run(), Sundance::DoublingStepController::write(), and Sundance::ExodusWriter::writeFields().
#define PLAYA_ROOT_MSG2 | ( | level, | |||
msg | ) | PLAYA_ROOT_OUT(level >= 2, msg) |
Definition at line 121 of file PlayaOut.hpp.
Referenced by Sundance::readNodalFields(), Sundance::DoublingStepController::run(), and Sundance::ExodusWriter::writeFields().
#define PLAYA_ROOT_MSG3 | ( | level, | |||
msg | ) | PLAYA_ROOT_OUT(level >= 3, msg) |
Definition at line 123 of file PlayaOut.hpp.
Referenced by Sundance::readNodalFields(), and Sundance::DoublingStepController::run().
#define PLAYA_ROOT_MSG4 | ( | level, | |||
msg | ) | PLAYA_ROOT_OUT(level >= 4, msg) |
Definition at line 125 of file PlayaOut.hpp.
#define PLAYA_ROOT_MSG5 | ( | level, | |||
msg | ) | PLAYA_ROOT_OUT(level >= 5, msg) |
#define PLAYA_ROOT_OUT | ( | test, | |||
msg | ) |
Value:
{ \
if (test) \
{ \
TeuchosOStringStream omsg; \
omsg << msg; \
Out::root() << omsg.str() << std::endl; \
} \
}
Definition at line 76 of file PlayaOut.hpp.
#define PLAYA_VERB_EXTREME | ( | msg | ) | PLAYA_MSG4(this->verb(), msg) |
Definition at line 87 of file PlayaOut.hpp.
#define PLAYA_VERB_HIGH | ( | msg | ) | PLAYA_MSG3(this->verb(), msg) |
Definition at line 88 of file PlayaOut.hpp.
#define PLAYA_VERB_LOW | ( | msg | ) | PLAYA_MSG1(this->verb(), msg) |
Definition at line 90 of file PlayaOut.hpp.
#define PLAYA_VERB_MEDIUM | ( | msg | ) | PLAYA_MSG2(this->verb(), msg) |
Definition at line 89 of file PlayaOut.hpp.