Namespaces | Functions | Variables
oomph_definitions.cc File Reference

Go to the source code of this file.

Namespaces

namespace  oomph
 DRAIG: Change all instances of (SPATIAL_DIM) to (DIM-1).
 
namespace  oomph::Global_timings
 ===================================================================== Namespace to control level of comprehensive timings
 
namespace  oomph::TerminateHelper
 Helper namespace for set_terminate function – used to spawn.
 
namespace  oomph::Global_output_stream
 Namespace containing an output stream that can be used for debugging. Use at your own risk – global data is evil!
 
namespace  oomph::Global_unsigned
 Namespace containing a number that can be used to annotate things for debugging. Use at your own risk – global data is evil!
 
namespace  oomph::Global_string_for_annotation
 Namespace containing a vector of strings that can be used to to store global output modifiers. This is global data and you use it at your own risk!
 

Functions

void oomph::TerminateHelper::setup ()
 Setup terminate helper.
 
void oomph::TerminateHelper::suppress_exception_error_messages ()
 Flush string stream of error messages (call when error has been caught)
 
void oomph::TerminateHelper::spawn_errors_from_uncaught_errors ()
 Function to spawn messages from uncaught errors.
 
void oomph::TerminateHelper::clean_up_memory ()
 Clean up function that deletes anything dynamically allocated in this namespace.
 
std::string oomph::Global_string_for_annotation::string (const unsigned &i)
 Return the i-th string or "" if the relevant string hasn't been defined.
 

Variables

bool oomph::Global_timings::Doc_comprehensive_timings = false
 Global boolean to switch on comprehensive timing – can probably be declared const false when development on hector is complete.
 
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.
 
std::ofstream * oomph::Global_output_stream::Outfile = 0
 Output stream.
 
unsigned oomph::Global_unsigned::Number = 0
 The unsigned.
 
std::vector< std::string > oomph::Global_string_for_annotation::String
 Storage for strings that may be used for global annotations. This is global data and you use it at your own risk!
 
Nullstream oomph::oomph_nullstream
 Single (global) instantiation of the Nullstream.
 
OomphInfo oomph::oomph_info
 Single (global) instantiation of the OomphInfo object – this is used throughout the library as a "replacement" for std::cout.
 
OutputModifier oomph::default_output_modifier
 Single global instatiation of the default output modifier.