#include <cstdlib>
#include <cstring>
#include <cctype>
#include <cstdio>
#include <ctime>
#include <iostream>
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <errno.h>
#include <REAL.H>
#include <BoxLib.H>
#include <Utility.H>
#include <BLassert.H>
#include <sys/times.h>
#include <sys/time.h>
#include <sys/param.h>
#include <unistd.h>
Functions | |
double | BoxLib::second (double *t=0) |
Returns the total user and system time used by the calling process up to the point of the call. | |
double | get_initial_wall_clock_time () |
double | BoxLib::wsecond (double *t=0) |
Returns the current time as the number of microseconds relative to program startup. | |
void | BoxLib::ResetWallClockTime () |
Reset start of Wall Clock Time for wsecond() to NOW. | |
bool | BoxLib::is_integer (const char *str) |
Return true if argument is a non-zero length string of digits. | |
std::string | BoxLib::Concatenate (const std::string &root, int num) |
Returns rootNNNN where NNNN == num. | |
bool | BoxLib::UtilCreateDirectory (const std::string &path, mode_t mode) |
Creates the specified directories. | |
void | BoxLib::CreateDirectoryFailed (const std::string &dir) |
Output a message and abort when couldn't create the directory. | |
void | BoxLib::FileOpenFailed (const std::string &dir) |
Output a message and abort when couldn't open the file. | |
void | BoxLib::UnlinkFile (const std::string &file) |
Attempt to unlink the file. Ignore any errors. | |
void | BoxLib::OutOfMemory () |
Aborts after printing message indicating out-of-memory; i.e. | |
pid_t | fork () |
pid_t | BoxLib::Execute (const char *cmd) |
Try to execute a shell command in a subshell. | |
unsigned long | TEMPERING_SHIFT_U (unsigned long y) |
unsigned long | TEMPERING_SHIFT_S (unsigned long y) |
unsigned long | TEMPERING_SHIFT_T (unsigned long y) |
unsigned long | TEMPERING_SHIFT_L (unsigned long y) |
void | BoxLib::InitRandom (unsigned long seed) |
Set the seed of the random number generator. | |
double | BoxLib::Random () |
Mersenne Twister pseudo-random number generator. | |
void | FORT_BLUTILRAND (Real *rn) |
Variables | |
const char * | path_sep_str = "/" |
int | BL_Initial_Wall_Clock_Time_Init = 0 |
long | BL_Initial_Wall_Clock_Time_sec = 0 |
long | BL_Initial_Wall_Clock_Time_usec = 0 |
double | BL_Initial_Wall_Clock_Time = 0.0 |
const long | billion = 1000000000L |
const int | M = 397 |
const unsigned long | MATRIX_A = 0x9908B0DFUL |
const unsigned long | UPPER_MASK = 0x80000000UL |
const unsigned long | LOWER_MASK = 0x7FFFFFFFUL |
const unsigned long | TEMPERING_MASK_B = 0x9D2C5680UL |
const unsigned long | TEMPERING_MASK_C = 0xEFC60000UL |
BoxLib::mt19937 | the_generator |
pid_t fork | ( | ) |
Referenced by BoxLib::Execute().
void FORT_BLUTILRAND | ( | Real * | rn | ) |
double get_initial_wall_clock_time | ( | ) |
References BoxLib::Abort(), BL_Initial_Wall_Clock_Time_Init, BL_Initial_Wall_Clock_Time_sec, and BL_Initial_Wall_Clock_Time_usec.
Referenced by BoxLib::ResetWallClockTime(), and BoxLib::wsecond().
unsigned long @64::TEMPERING_SHIFT_L | ( | unsigned long | y | ) | [inline, static] |
unsigned long @64::TEMPERING_SHIFT_S | ( | unsigned long | y | ) | [inline, static] |
unsigned long @64::TEMPERING_SHIFT_T | ( | unsigned long | y | ) | [inline, static] |
unsigned long @64::TEMPERING_SHIFT_U | ( | unsigned long | y | ) | [inline, static] |
const long billion = 1000000000L [static] |
Referenced by BoxLib::Time::as_double(), BoxLib::Time::as_long(), and BoxLib::Time::Time().
double BL_Initial_Wall_Clock_Time = 0.0 |
Referenced by BoxLib::wsecond().
int BL_Initial_Wall_Clock_Time_Init = 0 |
Referenced by get_initial_wall_clock_time(), and BoxLib::wsecond().
long BL_Initial_Wall_Clock_Time_sec = 0 |
Referenced by get_initial_wall_clock_time(), and BoxLib::wsecond().
long BL_Initial_Wall_Clock_Time_usec = 0 |
Referenced by get_initial_wall_clock_time(), and BoxLib::wsecond().
const unsigned long LOWER_MASK = 0x7FFFFFFFUL [static] |
const int M = 397 [static] |
Referenced by operator<<(), operator>>(), and BoxLib::base_Timer< FCN >::tick().
const unsigned long MATRIX_A = 0x9908B0DFUL [static] |
const char* path_sep_str = "/" |
Referenced by BoxLib::UtilCreateDirectory().
const unsigned long TEMPERING_MASK_B = 0x9D2C5680UL [static] |
const unsigned long TEMPERING_MASK_C = 0xEFC60000UL [static] |
BoxLib::mt19937 the_generator [static] |
Referenced by BoxLib::InitRandom(), and BoxLib::Random().
const unsigned long UPPER_MASK = 0x80000000UL [static] |