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

Namespaces

 MPI
 
 String
 
 Test
 

Data Structures

class  BMP
 

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::pair< std::string, std::string > file_overwrite
 

Function Documentation

◆ Abort() [1/2]

void Util::Abort ( const char *  msg)

Definition at line 165 of file Util.cpp.

Here is the call graph for this function:

◆ Abort() [2/2]

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

Definition at line 90 of file Util.H.

Here is the call graph for this function:

◆ 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 65 of file Util.H.

Here is the call graph for this function:

◆ 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 221 of file Util.H.

Here is the call graph for this function:

◆ 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 404 of file Util.cpp.

Here is the call graph for this function:

◆ CopyFileToOutputDir()

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

Definition at line 49 of file Util.cpp.

Here is the call graph for this function:

◆ CreateCleanDirectory()

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

Definition at line 174 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 194 of file Util.H.

Here is the call graph for this function:

◆ Finalize()

void Util::Finalize ( )

Definition at line 154 of file Util.cpp.

Here is the call graph for this function:

◆ 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 22 of file Util.cpp.

Here is the call graph for this function:

◆ GetOverwrittenFile()

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

Definition at line 91 of file Util.cpp.

◆ Initialize() [1/2]

void Util::Initialize ( )

Definition at line 125 of file Util.cpp.

◆ Initialize() [2/2]

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

Definition at line 131 of file Util.cpp.

Here is the call graph for this function:

◆ Message()

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

Definition at line 133 of file Util.H.

Here is the call graph for this function:

◆ ParallelAbort()

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

Definition at line 112 of file Util.H.

Here is the call graph for this function:

◆ ParallelMessage()

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

Definition at line 155 of file Util.H.

Here is the call graph for this function:

◆ 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 250 of file Util.H.

Here is the call graph for this function:

◆ 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 307 of file Util.H.

◆ RealFillBoundary() [2/2]

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

Definition at line 314 of file Util.H.

◆ SignalHandler()

void Util::SignalHandler ( int  s)

Definition at line 96 of file Util.cpp.

Here is the call graph for this function:

◆ Terminate()

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

Definition at line 168 of file Util.cpp.

Here is the call graph for this function:

◆ 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 171 of file Util.H.

Here is the call graph for this function:

Variable Documentation

◆ file_overwrite

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

Definition at line 20 of file Util.cpp.

◆ filename

std::string Util::filename = ""

Definition at line 19 of file Util.cpp.