/Users/mdipierro/fermiqcd/development/Libraries/mdp_macros.h File Reference
Go to the source code of this file.
Defines |
| #define | CHECK_ALL |
| #define | MDP_MPI |
| #define | INCLUDE_DEPRECATED_IO |
| #define | forallsites(x) for(x.start(); x.is_in(); x.next()) |
| | Loop on all local siltes of this process.
|
| #define | forallsitesofparity(x, pofx) |
| #define | forallsitesandcopies(x) for(x.start(), x.idx=0; x.idx<x.lattice().nvol; x.idx++) |
| | Loop on all sites stored by this process.
|
| #define | forallsitesandcopiesofparity(x, pofx) |
| | Loop on all sites stored by this process with given parity.
|
| #define | ME mpi.me() |
| | Returns the unique id of this process.
|
| #define | Nproc mpi.nproc() |
| | Returns the total number of parallel processes for this job.
|
| #define | error(a) _mpi_error_message(a,__FILE__, __LINE__); |
| | Reports a runtime error and the line that caused it.
|
| #define | TRUE true |
| #define | FALSE false |
Detailed Description
- Version:
- 2009-12-21
- Author:
- Massimo Di Pierro <mdipierro@cs.depaul.edu>
Contains class mdp_macros
Licensed under GPL2 license Read attached license in file mdp_license.pdf This file cannot be distributed without file mdp_license.pdf
Define Documentation
| #define error |
( |
a |
|
) |
_mpi_error_message(a,__FILE__, __LINE__); |
Reports a runtime error and the line that caused it.
| #define forallsites |
( |
x |
|
) |
for(x.start(); x.is_in(); x.next()) |
Loop on all local siltes of this process.
| #define forallsitesandcopies |
( |
x |
|
) |
for(x.start(), x.idx=0; x.idx<x.lattice().nvol; x.idx++) |
Loop on all sites stored by this process.
| #define forallsitesandcopiesofparity |
( |
x, |
|
|
pofx |
|
) |
|
Value:for(int __process=0; __process<Nproc; __process++) \
for(x.start(), x.idx=x.lattice().start[__process][pofx % 2]; \
x.idx<x.lattice().stop[__process][(pofx+(pofx % 2))/2]; \
x.idx++)
Loop on all sites stored by this process with given parity.
| #define forallsitesofparity |
( |
x, |
|
|
pofx |
|
) |
|
Value:for(x.start(), x.idx=x.lattice().start[ME][pofx % 2]; \
x.idx<x.lattice().stop[ME][(pofx+(pofx % 2))/2]; \
x.idx++)
Loop on all local sites of this process with given parity If pofx is EVENODD=2 then loops on even and odd sites
| #define INCLUDE_DEPRECATED_IO |
Returns the unique id of this process.
| #define Nproc mpi.nproc() |
Returns the total number of parallel processes for this job.