constants Namespace Reference

SPADES API: spades::constants Namespace Reference
SPADES API
spades::constants Namespace Reference

SPADES constants. More...

Variables

static constexpr int N_STATES = 2
 Number of states.
 
static constexpr int LVT_IDX = 0
 Index of the local virtual time.
 
static constexpr int RLB_IDX = 1
 Index of the rollback counts.
 
static constexpr amrex::Real LOW_NUM
 A large negative number.
 
static constexpr amrex::Real SMALL_NUM
 A number close to zero.
 
static constexpr amrex::Real EPS
 A number very close to zero.
 
static constexpr amrex::Real TOL = 1e-6
 A tolerance.
 
static constexpr amrex::Real LARGE_NUM
 A large number.
 
static constexpr amrex::Real HALF = 0.5
 
static constexpr int TWO_TO_EIGHT = 256
 
static constexpr int FILE_NAME_DIGITS = 5
 Number of digits to use in output file names.
 
static constexpr int RNG_FILE_NAME_DIGITS = 10
 Number of digits to use in random seed file names.
 
static constexpr int HEADER_FILE_PRECISION = 17
 Precision to use in header files.
 
static constexpr int MAX_ROLLBACK_ITERS = 20
 Maximum number of rollback iterations allowed.
 
static constexpr int TYPE_NBITS = 4
 Bits to encode the type.
 
static constexpr int TIMESTAMP_NBITS = 32
 Bits to encode the timestamp.
 
static constexpr int TOTAL_NBITS = 64
 Bits to encode the full representation.
 

Detailed Description

SPADES constants.

Variable Documentation

◆ EPS

amrex::Real spades::constants::EPS
staticconstexpr
Initial value:
=
static_cast<amrex::Real>(std::numeric_limits<amrex::Real>::epsilon())

A number very close to zero.

◆ FILE_NAME_DIGITS

int spades::constants::FILE_NAME_DIGITS = 5
staticconstexpr

Number of digits to use in output file names.

◆ HALF

amrex::Real spades::constants::HALF = 0.5
staticconstexpr

◆ HEADER_FILE_PRECISION

int spades::constants::HEADER_FILE_PRECISION = 17
staticconstexpr

Precision to use in header files.

◆ LARGE_NUM

amrex::Real spades::constants::LARGE_NUM
staticconstexpr
Initial value:
=
static_cast<amrex::Real>(std::numeric_limits<amrex::Real>::max() * 1e-10)

A large number.

◆ LOW_NUM

amrex::Real spades::constants::LOW_NUM
staticconstexpr
Initial value:
= static_cast<amrex::Real>(
std::numeric_limits<amrex::Real>::lowest() * 1e-10)

A large negative number.

◆ LVT_IDX

int spades::constants::LVT_IDX = 0
staticconstexpr

Index of the local virtual time.

◆ MAX_ROLLBACK_ITERS

int spades::constants::MAX_ROLLBACK_ITERS = 20
staticconstexpr

Maximum number of rollback iterations allowed.

◆ N_STATES

int spades::constants::N_STATES = 2
staticconstexpr

Number of states.

◆ RLB_IDX

int spades::constants::RLB_IDX = 1
staticconstexpr

Index of the rollback counts.

◆ RNG_FILE_NAME_DIGITS

int spades::constants::RNG_FILE_NAME_DIGITS = 10
staticconstexpr

Number of digits to use in random seed file names.

◆ SMALL_NUM

amrex::Real spades::constants::SMALL_NUM
staticconstexpr
Initial value:
= static_cast<amrex::Real>(
std::numeric_limits<amrex::Real>::epsilon() * 1e10)

A number close to zero.

◆ TIMESTAMP_NBITS

int spades::constants::TIMESTAMP_NBITS = 32
staticconstexpr

Bits to encode the timestamp.

◆ TOL

amrex::Real spades::constants::TOL = 1e-6
staticconstexpr

A tolerance.

◆ TOTAL_NBITS

int spades::constants::TOTAL_NBITS = 64
staticconstexpr

Bits to encode the full representation.

◆ TWO_TO_EIGHT

int spades::constants::TWO_TO_EIGHT = 256
staticconstexpr

◆ TYPE_NBITS

int spades::constants::TYPE_NBITS = 4
staticconstexpr

Bits to encode the type.