HILA
Loading...
Searching...
No Matches
params.h File Reference

This file contains #defined constants. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define DEFAULT_OUTPUT_NAME   "output"
 Default output file name.
 
#define EVEN_SITES_FIRST
 EVEN_SITES_FIRST is default. To traverse odd sites first set -DEVEN_SITES_FIRST=0.
 
#define NDEBUG
 Turn off asserts which are on by default.
 
#define NDIM   4
 HILA system dimensionality.
 
#define NODE_LAYOUT_BLOCK   4
 

Detailed Description

This file contains #defined constants.

These can be overruled in application Makefile, with APP_OPTS := -DPARAMETER=value.

There are two types of #define variables, True/False switches or parameter variables.

True/False statements can be set with either 0 (False) or 1 (True) as -DPARAMETER=0.

Parameter variables are set similary with -DPARAMETER=var where var is the chosen variable

Definition in file params.h.

Macro Definition Documentation

◆ NDEBUG

#define NDEBUG

Turn off asserts which are on by default.

By defining either RELEASE or NDEBUG (No debug) asserts will be turned off. Static asserts naturally remain active

Definition at line 23 of file params.h.

◆ NDIM

#define NDIM   4

HILA system dimensionality.

Set's HILA dimensionality for which 4 is default. Options are 2,3,4

Definition at line 32 of file params.h.

◆ NODE_LAYOUT_BLOCK

#define NODE_LAYOUT_BLOCK   4

NODE_LAYOUT_TRIVIAL or NODE_LAYOUT_BLOCK determine how MPI ranks are laid out on logical lattice. TRIVIAL lays out the lattice on logical order where x-direction runs fastest etc. if NODE_LAYOUT_BLOCK is defined, NODE_LAYOUT_BLOCK consecutive MPI ranks are laid out so that these form a compact "block" of ranks logically close togeter. Define NODE_LAYOUT_BLOCK to be the number of MPI processes within one compute node - tries to maximize the use of fast local communications. Either one of these must be defined.

Definition at line 62 of file params.h.