Alamo
Namespaces | Data Structures | Functions | Variables
Util Namespace Reference

Namespaces

namespace  Hash
 
namespace  MPI
 
namespace  String
 
namespace  Test
 

Data Structures

class  BMP
 
class  PNG
 

Functions

Set::Scalar Random ()
 
Set::Scalar Gaussian (amrex::Real mean, amrex::Real std_deviation)
 
std::string GetFileName ()
 
void CopyFileToOutputDir (std::string a_path, bool fullpath, std::string prefix)
 
std::pair< std::string, std::string > GetOverwrittenFile ()
 
void SignalHandler (int s)
 
void Initialize ()
 
void Initialize (int argc, char *argv[])
 
void Finalize ()
 
void Abort (const char *msg)
 
void Terminate (const char *, int signal, bool)
 
std::pair< std::string, std::string > CreateCleanDirectory (const std::string &path, bool callbarrier)
 
void AverageCellcenterToNode (amrex::MultiFab &node_mf, const int &dcomp, const amrex::MultiFab &cell_mf, const int &scomp, const int &ncomp)
 
template<typename... Args>
AMREX_FORCE_INLINE void Assert (std::string file, std::string func, int line, std::string smt, bool pass, Args const &... args)
 
template<typename... Args>
void Abort (std::string file, std::string func, int line, Args const &... args)
 
template<typename... Args>
void ParallelAbort (std::string file, std::string func, int line, Args const &... args)
 
template<typename... Args>
void Message (std::string file, std::string func, int line, Args const &... args)
 
template<typename... Args>
void ParallelMessage (std::string file, std::string func, int line, Args const &... args)
 
template<typename... Args>
void Warning (std::string file, std::string func, int line, Args const &... args)
 
template<typename... Args>
void Exception (std::string file, std::string func, int line, Args const &... args)
 
template<typename... Args>
AMREX_FORCE_INLINE void AssertException (std::string file, std::string func, int line, std::string smt, bool pass, Args const &... args)
 
template<typename... Args>
void ParmParseException (std::string file, std::string func, int line, std::string file2, std::string, int line2, std::string fullname, Args const &... args)
 
template<class T >
AMREX_FORCE_INLINE void RealFillBoundary (amrex::FabArray< amrex::BaseFab< T > > &a_mf, const amrex::Geometry &)
 
AMREX_FORCE_INLINE void RealFillBoundary (amrex::MultiFab &a_mf, const amrex::Geometry &)
 

Variables

std::string filename = ""
 
std::string globalprefix = ""
 
std::pair< std::string, std::string > file_overwrite
 
bool initialized = false
 
bool finalized = false
 

Function Documentation

◆ Abort() [1/2]

void Util::Abort ( const char *  msg)

Definition at line 170 of file Util.cpp.

◆ Abort() [2/2]

template<typename... Args>
void Util::Abort ( std::string  file,
std::string  func,
int  line,
Args const &...  args 
)

Definition at line 96 of file Util.H.

◆ Assert()

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 
)

Definition at line 70 of file Util.H.

◆ AssertException()

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 
)

Definition at line 233 of file Util.H.

◆ AverageCellcenterToNode()

void Util::AverageCellcenterToNode ( amrex::MultiFab &  node_mf,
const int &  dcomp,
const amrex::MultiFab &  cell_mf,
const int &  scomp,
const int &  ncomp 
)

Definition at line 409 of file Util.cpp.

◆ CopyFileToOutputDir()

void Util::CopyFileToOutputDir ( std::string  a_path,
bool  fullpath,
std::string  prefix 
)

Definition at line 52 of file Util.cpp.

◆ CreateCleanDirectory()

std::pair< std::string, std::string > Util::CreateCleanDirectory ( const std::string &  path,
bool  callbarrier 
)

Definition at line 179 of file Util.cpp.

◆ Exception()

template<typename... Args>
void Util::Exception ( std::string  file,
std::string  func,
int  line,
Args const &...  args 
)

Definition at line 205 of file Util.H.

◆ Finalize()

void Util::Finalize ( )

Definition at line 158 of file Util.cpp.

◆ Gaussian()

Set::Scalar Util::Gaussian ( amrex::Real  mean,
amrex::Real  std_deviation 
)

Definition at line 13 of file Set.cpp.

◆ GetFileName()

std::string Util::GetFileName ( )

Definition at line 25 of file Util.cpp.

◆ GetOverwrittenFile()

std::pair< std::string, std::string > Util::GetOverwrittenFile ( )

Definition at line 94 of file Util.cpp.

◆ Initialize() [1/2]

void Util::Initialize ( )

Definition at line 128 of file Util.cpp.

◆ Initialize() [2/2]

void Util::Initialize ( int  argc,
char *  argv[] 
)

Definition at line 135 of file Util.cpp.

◆ Message()

template<typename... Args>
void Util::Message ( std::string  file,
std::string  func,
int  line,
Args const &...  args 
)

Definition at line 141 of file Util.H.

◆ ParallelAbort()

template<typename... Args>
void Util::ParallelAbort ( std::string  file,
std::string  func,
int  line,
Args const &...  args 
)

Definition at line 119 of file Util.H.

◆ ParallelMessage()

template<typename... Args>
void Util::ParallelMessage ( std::string  file,
std::string  func,
int  line,
Args const &...  args 
)

Definition at line 164 of file Util.H.

◆ ParmParseException()

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 
)

Definition at line 263 of file Util.H.

◆ Random()

Set::Scalar Util::Random ( )

Definition at line 9 of file Set.cpp.

◆ RealFillBoundary() [1/2]

template<class T >
AMREX_FORCE_INLINE void Util::RealFillBoundary ( amrex::FabArray< amrex::BaseFab< T > > &  a_mf,
const amrex::Geometry &   
)

Definition at line 322 of file Util.H.

◆ RealFillBoundary() [2/2]

AMREX_FORCE_INLINE void Util::RealFillBoundary ( amrex::MultiFab &  a_mf,
const amrex::Geometry &   
)

Definition at line 329 of file Util.H.

◆ SignalHandler()

void Util::SignalHandler ( int  s)

Definition at line 99 of file Util.cpp.

◆ Terminate()

void Util::Terminate ( const char *  ,
int  signal,
bool   
)

Definition at line 173 of file Util.cpp.

◆ Warning()

template<typename... Args>
void Util::Warning ( std::string  file,
std::string  func,
int  line,
Args const &...  args 
)

String::Wrap(messagestream.str(),150);

Definition at line 181 of file Util.H.

Variable Documentation

◆ file_overwrite

std::pair<std::string,std::string> Util::file_overwrite

Definition at line 21 of file Util.cpp.

◆ filename

std::string Util::filename = ""

Definition at line 19 of file Util.cpp.

◆ finalized

bool Util::finalized = false

Definition at line 23 of file Util.cpp.

◆ globalprefix

std::string Util::globalprefix = ""

Definition at line 20 of file Util.cpp.

◆ initialized

bool Util::initialized = false

Definition at line 22 of file Util.cpp.