![]() |
MoDeNa
1.0
Software framework facilitating sequential multi-scale modelling
|
Defines global variables, macros, templates and namespace. More...
Go to the source code of this file.
Data Structures | |
| struct | fn1_params |
| struct for passing paramaters to GSL function More... | |
Namespaces | |
| module | globals |
| namespace with global variables | |
Macros | |
| #define | ABS(x) (((x) < 0) ? -(x) : (x)) |
| Absolute value. | |
| #define | MIN(x, y) (((x) < (y)) ? (x) : (y)) |
| Lesser of two values. | |
| #define | CONFINEX(x) (((x) >= 0) ? (x) % nx : (x) + nx) |
Periodic boundary conditions in x. | |
| #define | CONFINEY(x) (((x) >= 0) ? (x) % ny : (x) + ny) |
Periodic boundary conditions in y. | |
| #define | CONFINEZ(x) (((x) >= 0) ? (x) % nz : (x) + nz) |
Periodic boundary conditions in z. | |
| #define | AMAT(i, j, k) amat[CONFINEX(i)][CONFINEY(j)][CONFINEZ(k)] |
| Respect periodic boundary conditions in matrix. | |
| #define | V_CELL(m, i, j, k) v_cell[(m)][CONFINEX(i)][CONFINEY(j)][CONFINEZ(k)] |
| Respect periodic boundary conditions cell volume matrix. | |
Functions | |
| template<typename T > | |
| int | sgn (T val) |
| signum | |
Defines global variables, macros, templates and namespace.
Definition in file globals.hh.