Alamo
Namespaces | Macros | Functions
Util.H File Reference
Include dependency graph for Util.H:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 Util
 
 Util::String
 
 Util::Test
 

Macros

#define INFO   __FILE__, __func__, __LINE__
 
#define TEST(x)   #x, x
 
#define ALAMO_SINGLE_DEFINITION   AMREX_ATTRIBUTE_WEAK
 

Functions

int Util::String::ReplaceAll (std::string &str, const std::string before, const std::string after)
 
int Util::String::ReplaceAll (std::string &str, const char before, const std::string after)
 
std::string Util::String::Wrap (std::string text, unsigned per_line)
 
std::string Util::String::Join (std::vector< std::string > &vec, char separator)
 
std::vector< std::string > Util::String::Split (std::string &str, const char delim)
 
bool Util::String::Contains (std::string &str, const std::string find)
 
template<>
std::complex< int > Util::String::Parse (std::string input)
 
std::string Util::GetFileName ()
 
void Util::CopyFileToOutputDir (std::string a_path, bool fullpath, std::string prefix)
 
std::pair< std::string, std::string > Util::GetOverwrittenFile ()
 
void Util::SignalHandler (int s)
 
void Util::Initialize (int argc, char *argv[])
 
void Util::Initialize ()
 
void Util::Finalize ()
 
void Util::Terminate (const char *, int signal, bool)
 
void Util::Abort (const char *msg)
 
template<typename... Args>
AMREX_FORCE_INLINE void Util::Assert (std::string file, std::string func, int line, std::string smt, bool pass, Args const &... args)
 
template<typename... Args>
void Util::Abort (std::string file, std::string func, int line, Args const &... args)
 
template<typename... Args>
void Util::ParallelAbort (std::string file, std::string func, int line, Args const &... args)
 
template<typename... Args>
void Util::Message (std::string file, std::string func, int line, Args const &... args)
 
template<typename... Args>
void Util::ParallelMessage (std::string file, std::string func, int line, Args const &... args)
 
template<typename... Args>
void Util::Warning (std::string file, std::string func, int line, Args const &... args)
 
template<typename... Args>
void Util::Exception (std::string file, std::string func, int line, Args const &... args)
 
template<typename... Args>
AMREX_FORCE_INLINE void Util::AssertException (std::string file, std::string func, int line, std::string smt, bool pass, Args const &... args)
 
template<typename... Args>
void Util::ParmParseException (std::string file, std::string func, int line, std::string file2, std::string, int line2, std::string fullname, Args const &... args)
 
std::pair< std::string, std::string > Util::CreateCleanDirectory (const std::string &path, bool callbarrier)
 
int Util::Test::Message (std::string testname)
 
int Util::Test::Message (std::string testname, int failed)
 
int Util::Test::SubMessage (std::string testname, int failed)
 
int Util::Test::SubFinalMessage (int failed)
 
template<class T >
AMREX_FORCE_INLINE void Util::RealFillBoundary (amrex::FabArray< amrex::BaseFab< T >> &a_mf, const amrex::Geometry &)
 
AMREX_FORCE_INLINE void Util::RealFillBoundary (amrex::MultiFab &a_mf, const amrex::Geometry &)
 
void Util::AverageCellcenterToNode (amrex::MultiFab &node_mf, const int &dcomp, const amrex::MultiFab &cell_mf, const int &scomp, const int &ncomp)
 

Macro Definition Documentation

◆ ALAMO_SINGLE_DEFINITION

#define ALAMO_SINGLE_DEFINITION   AMREX_ATTRIBUTE_WEAK

Definition at line 25 of file Util.H.

◆ INFO

#define INFO   __FILE__, __func__, __LINE__

Definition at line 20 of file Util.H.

◆ TEST

#define TEST (   x)    #x, x

Definition at line 21 of file Util.H.