SPH
Typedefs | Functions | Variables
Globals.h File Reference

Global parameters of the code. More...

#include "objects/Object.h"

Go to the source code of this file.

Typedefs

using Float = double
 Precision used withing the code. Use Float instead of float or double where precision is important. More...
 
using Size = uint32_t
 Integral type used to index arrays (by default). More...
 
using SignedSize = int32_t
 Signed integral type, used where negative numbers are necessary. Should match Size. More...
 

Functions

constexpr INLINE Float operator""_f (const long double v)
 Useful literal using defined precision. Use "1.0_f" instead of "1.0f" (float) or "1.0" (double) literals. More...
 

Variables

constexpr int DIMENSIONS = 3
 Number of spatial dimensions in the code. More...
 
constexpr int PRECISION = std::is_same<Float, double>::value ? 12 : 6
 Number of valid digits of numbers on output. More...
 
constexpr char CODE_NAME [] = "OpenSPH"
 

Detailed Description

Global parameters of the code.

Author
Pavel Sevecek (sevecek at sirrah.troja.mff.cuni.cz)
Date
2016-2021

Definition in file Globals.h.

Typedef Documentation

◆ Float

using Float = double

Precision used withing the code. Use Float instead of float or double where precision is important.

Definition at line 13 of file Globals.h.

◆ SignedSize

using SignedSize = int32_t

Signed integral type, used where negative numbers are necessary. Should match Size.

Definition at line 19 of file Globals.h.

◆ Size

using Size = uint32_t

Integral type used to index arrays (by default).

Definition at line 16 of file Globals.h.

Function Documentation

◆ operator""_f()

constexpr INLINE Float operator""_f ( const long double  v)
constexpr

Useful literal using defined precision. Use "1.0_f" instead of "1.0f" (float) or "1.0" (double) literals.

Definition at line 28 of file Globals.h.

Variable Documentation

◆ CODE_NAME

constexpr char CODE_NAME[] = "OpenSPH"
constexpr

Definition at line 32 of file Globals.h.

◆ DIMENSIONS

constexpr int DIMENSIONS = 3
constexpr

Number of spatial dimensions in the code.

Definition at line 22 of file Globals.h.

◆ PRECISION

constexpr int PRECISION = std::is_same<Float, double>::value ? 12 : 6
constexpr

Number of valid digits of numbers on output.

Definition at line 25 of file Globals.h.