![]() |
|
Functions | |
| void | setup () |
| Setup terminate helper. More... | |
| void | suppress_exception_error_messages () |
| Suppress error messages (e.g. because error has been caught) More... | |
| void | spawn_errors_from_uncaught_errors () |
| Function to spawn messages from uncaught errors. More... | |
| void | clean_up_memory () |
Variables | |
| std::ostream * | Error_message_stream_pt = &std::cerr |
| Stream to output error messages. More... | |
| std::stringstream * | Exception_stringstream_pt = 0 |
| String stream that records the error message. More... | |
////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////// Helper namespace for set_terminate function – used to spawn
////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////// Helper namespace for set_terminate function – used to spawn
| void oomph::TerminateHelper::clean_up_memory | ( | ) |
Clean up function that deletes anything dynamically allocated in this namespace
References Exception_stringstream_pt.
Referenced by oomph::MGSolver< DIM >::full_setup(), oomph::HelmholtzMGPreconditioner< DIM >::full_setup(), BoussinesqPreconditioner::setup(), oomph::BlockDiagonalPreconditioner< MATRIX >::setup(), oomph::BlockTriangularPreconditioner< MATRIX >::setup(), oomph::NavierStokesSchurComplementPreconditioner::setup(), oomph::ExactDGPBlockPreconditioner< MATRIX >::setup(), oomph::BandedBlockTriangularPreconditioner< MATRIX >::setup(), oomph::CG< MATRIX >::solve(), oomph::BiCGStab< MATRIX >::solve(), oomph::GS< MATRIX >::solve(), oomph::DampedJacobi< MATRIX >::solve(), oomph::GMRES< MATRIX >::solve(), BoussinesqPreconditioner::~BoussinesqPreconditioner(), SimpleLSCPreconditioner::~NavierStokesSchurComplementPreconditioner(), and oomph::Problem::~Problem().
| void oomph::TerminateHelper::setup | ( | ) |
Setup terminate helper.
References Exception_stringstream_pt, and spawn_errors_from_uncaught_errors().
Referenced by oomph::Problem::Problem().
| void oomph::TerminateHelper::spawn_errors_from_uncaught_errors | ( | ) |
Function to spawn messages from uncaught errors.
Referenced by setup().
| void oomph::TerminateHelper::suppress_exception_error_messages | ( | ) |
Suppress error messages (e.g. because error has been caught)
Flush string stream of error messages (call when error has been caught)
References Exception_stringstream_pt.
Referenced by oomph::OomphLibException::disable_error_message().
| std::ostream * oomph::TerminateHelper::Error_message_stream_pt = &std::cerr |
Stream to output error messages.
| std::stringstream * oomph::TerminateHelper::Exception_stringstream_pt = 0 |
String stream that records the error message.
Referenced by clean_up_memory(), setup(), and suppress_exception_error_messages().