oomph_utilities.h File Reference
#include <string>
#include <sstream>
#include <fstream>
#include <cmath>
#include <map>
#include <ctime>
#include <complex>
#include "Vector.h"
#include "oomph_definitions.h"
#include "communicator.h"
#include <cxxabi.h>

Go to the source code of this file.

Classes

class  oomph::AbsCmp< T >
 
class  oomph::Timer
 Timer. More...
 
class  oomph::DocLinearSolverInfo
 
class  oomph::DocInfo
 
struct  oomph::CommandLineArgs::ArgInfo< T >
 Structure to store information on a command line argument. More...
 
class  oomph::MPI_Helpers
 
class  oomph::SolutionFunctorBase
 
class  oomph::SolutionFunctor
 

Namespaces

 oomph
 DRAIG: Change all instances of (SPATIAL_DIM) to (DIM-1).
 
 oomph::ANSIEscapeCode
 
 oomph::DebugHelpers
 
 oomph::SecondInvariantHelper
 
 oomph::BrokenCopy
 
 oomph::MathematicalConstants
 
 oomph::StringConversion
 
 oomph::TypeNames
 
 oomph::CumulativeTimings
 Namespace for global (cumulative) timings.
 
 oomph::CommandLineArgs
 Namespace for command line arguments.
 
 oomph::ObsoleteCode
 Namespace for flagging up obsolete parts of the code.
 
 oomph::TecplotNames
 Namespace for tecplot stuff.
 
 oomph::PauseFlags
 Namespace for pause() command.
 
 oomph::TimingHelpers
 Helper for recording execution time.
 
 oomph::MemoryUsage
 

Functions

void oomph::ANSIEscapeCode::set_text_effect (std::string text_effect)
 
std::string oomph::DebugHelpers::debug_string (const std::string &filename, const int &line, const bool &make_new_line)
 
double oomph::SecondInvariantHelper::second_invariant (const DenseMatrix< double > &tensor)
 Compute second invariant of tensor. More...
 
void oomph::BrokenCopy::broken_assign (const std::string &class_name)
 Issue error message and terminate execution. More...
 
void oomph::BrokenCopy::broken_copy (const std::string &class_name)
 Issue error message and terminate execution. More...
 
const std::complex< doubleoomph::MathematicalConstants::I (0.0, 1.0)
 The imaginary unit. More...
 
template<class T >
std::string oomph::StringConversion::to_string (T object, unsigned float_precision=8)
 
std::string oomph::StringConversion::to_lower (const std::string &input)
 Convert a string to lower case (outputs a copy). More...
 
std::string oomph::StringConversion::to_upper (const std::string &input)
 Convert a string to upper case (outputs a copy). More...
 
void oomph::StringConversion::split_string (const std::string &s, char delim, Vector< std::string > &elems)
 
Vector< std::string > oomph::StringConversion::split_string (const std::string &s, char delim)
 
template<class T >
std::string oomph::TypeNames::get_type_name (T &obj)
 
template<class T >
std::string oomph::TypeNames::get_type_name (T *obj)
 
void oomph::CumulativeTimings::start (const unsigned &i)
 (Re-)start i-th timer More...
 
void oomph::CumulativeTimings::halt (const unsigned &i)
 Halt i-th timer. More...
 
void oomph::CumulativeTimings::reset (const unsigned &i)
 Reset i-th timer. More...
 
void oomph::CumulativeTimings::reset ()
 Reset all timers. More...
 
double oomph::CumulativeTimings::cumulative_time (const unsigned &i)
 Report time accumulated by i-th timer. More...
 
void oomph::CumulativeTimings::set_ntimers (const unsigned &ntimers)
 Set number of timings that can be recorded in parallel. More...
 
template<class Target , class Source >
Target oomph::checked_dynamic_cast (Source *x)
 
template<class Target , class Source >
Target oomph::checked_static_cast (Source *x)
 
void oomph::CommandLineArgs::setup (int argc, char **argv)
 Set values. More...
 
void oomph::CommandLineArgs::output ()
 Doc the command line arguments. More...
 
void oomph::CommandLineArgs::specify_command_line_flag (const std::string &command_line_flag, const std::string &doc)
 Specify possible argument-free command line flag. More...
 
void oomph::CommandLineArgs::specify_command_line_flag (const std::string &command_line_flag, double *arg_pt, const std::string &doc)
 
void oomph::CommandLineArgs::specify_command_line_flag (const std::string &command_line_flag, int *arg_pt, const std::string &doc)
 
void oomph::CommandLineArgs::specify_command_line_flag (const std::string &command_line_flag, unsigned *arg_pt, const std::string &doc)
 
void oomph::CommandLineArgs::specify_command_line_flag (const std::string &command_line_flag, std::string *arg_pt, const std::string &doc)
 
bool oomph::CommandLineArgs::command_line_flag_has_been_set (const std::string &flag)
 
void oomph::CommandLineArgs::doc_all_flags (std::ostream &outstream)
 Document the values of all flags (specified or not). More...
 
void oomph::CommandLineArgs::doc_specified_flags ()
 Document specified command line flags. More...
 
void oomph::CommandLineArgs::doc_available_flags ()
 Document available command line flags. More...
 
void oomph::CommandLineArgs::check_arg_index (const int &argc, const int &arg_index)
 Helper function to check if command line index is legal. More...
 
void oomph::CommandLineArgs::parse_and_assign (int argc, char *argv[], const bool &throw_on_unrecognised_args)
 
void oomph::CommandLineArgs::parse_and_assign (const bool &throw_on_unrecognised_args)
 
void oomph::ObsoleteCode::obsolete ()
 Output warning message. More...
 
void oomph::ObsoleteCode::obsolete (const std::string &message)
 Ouput a warning message with a string argument. More...
 
void oomph::TecplotNames::setup ()
 Setup namespace. More...
 
void oomph::pause (std::string message)
 Pause and display message. More...
 
double oomph::TimingHelpers::timer ()
 returns the time in seconds after some point in past More...
 
std::string oomph::TimingHelpers::convert_secs_to_formatted_string (const double &time_in_sec)
 
void oomph::MemoryUsage::empty_my_memory_usage_file ()
 
void oomph::MemoryUsage::empty_total_memory_usage_file ()
 
void oomph::MemoryUsage::doc_total_memory_usage (const std::string &prefix_string)
 
void oomph::MemoryUsage::empty_memory_usage_files ()
 
void oomph::MemoryUsage::doc_memory_usage (const std::string &prefix_string)
 
void oomph::MemoryUsage::empty_top_file ()
 
void oomph::MemoryUsage::run_continous_top (const std::string &comment)
 
void oomph::MemoryUsage::stop_continous_top (const std::string &comment)
 
void oomph::MemoryUsage::insert_comment_to_continous_top (const std::string &comment)
 Insert comment into running continuous top output. More...
 

Variables

const double oomph::MathematicalConstants::Pi = 3.1415926535897932384626433832795028841971693993751
 50 digits from maple More...