FML
Namespaces | Functions | Variables
Global.cpp File Reference

Go to the source code of this file.

Namespaces

namespace  FML
 
namespace  FML::GRID
 This namespace contains various grids for holding data shared across different tasks.
 

Functions

double FML::uniform_random ()
 
void FML::init_mpi (int *argc, char ***argv)
 Initialize MPI. More...
 
void FML::init_fml ()
 Initialize the global variables within FML We here assume MPI has been initialized. More...
 
void FML::info ()
 Show some info about FML. More...
 
void FML::abort_mpi (int exit_code)
 
void FML::finalize_mpi ()
 
void FML::printf_mpi (const char *fmt,...)
 
bool FML::create_folder (std::string foldername)
 
std::pair< double, double > FML::get_system_memory_use ()
 Fetch the resident set size currently and the peak value so far of it. More...
 
void FML::print_system_memory_use ()
 Print the resident set size and the peak value of it so far. More...
 
 FML::TYPES (char)
 
 FML::TYPES (int)
 
 FML::TYPES (unsigned int)
 
 FML::TYPES (long long)
 
 FML::TYPES (size_t)
 
 FML::TYPES (ptrdiff_t)
 
 FML::TYPES (float)
 
 FML::TYPES (double)
 
 FML::TYPES (long double)
 
void FML::GRID::init_fftw (int *argc, char ***argv)
 
void FML::GRID::finalize_fftw ()
 
void FML::GRID::set_fftw_nthreads (int nthreads)
 

Variables

static std::string processor_name {"NameIsOnlyKnownWithMPI"}
 
FML::UTILS::Timings FML::global_timer
 
FMLSetup & FML::fmlsetup = FMLSetup::init()
 
int FML::ThisTask = 0
 The MPI task number. More...
 
int FML::NTasks = 1
 Total number of MPI tasks. More...
 
int FML::NThreads = 1
 Total number of threads availiable. More...
 
bool FML::FFTWThreadsOK = false
 
bool FML::MPIThreadsOK = false
 If MPI and threads can work together with FFTW. More...
 
double FML::xmin_domain = 0.0
 The local extent of the domain (global domain goes from 0 to 1) More...
 
double FML::xmax_domain = 1.0
 The local extent of the domain (global domain goes from 0 to 1) More...
 
std::mt19937 FML::generator
 

Variable Documentation

◆ processor_name

std::string processor_name {"NameIsOnlyKnownWithMPI"}
static

Definition at line 14 of file Global.cpp.