mdcore  0.1.5
Data Structures | Defines | Functions | Variables
/home/pedro/work/mdcore/src/exclusion.h File Reference

Go to the source code of this file.

Data Structures

struct  exclusion

Defines

#define exclusion_err_ok   0
#define exclusion_err_null   -1
#define exclusion_err_malloc   -2

Functions

int exclusion_eval (struct exclusion *b, int N, struct engine *e, double *epot_out)
 Evaluate a list of exclusioned interactoins.
int exclusion_eval_mod (struct exclusion *b, int N, int nr_threads, int cid_mod, struct engine *e, double *epot_out)
 Evaluate a list of exclusioned interactoins.
int exclusion_eval_div (struct exclusion *b, int N, int nr_threads, int cid_div, struct engine *e, double *epot_out)
 Evaluate a list of exclusioned interactoins.

Variables

int exclusion_err

Define Documentation

#define exclusion_err_malloc   -2
#define exclusion_err_null   -1
#define exclusion_err_ok   0

Function Documentation

int exclusion_eval ( struct exclusion b,
int  N,
struct engine e,
double *  epot_out 
)

Evaluate a list of exclusioned interactoins.

Parameters:
bPointer to an array of exclusion.
NNr of exclusions in b.
ePointer to the engine in which these exclusions are evaluated.
epot_outPointer to a double in which to aggregate the potential energy.
Returns:
exclusion_err_ok or <0 on error (see exclusion_err)
int exclusion_eval_div ( struct exclusion b,
int  N,
int  nr_threads,
int  cid_div,
struct engine e,
double *  epot_out 
)

Evaluate a list of exclusioned interactoins.

Parameters:
bPointer to an array of exclusion.
NNr of exclusions in b.
nr_threadsNumber of computational threads.
cid_divcell id modulus.
ePointer to the engine in which these exclusions are evaluated.
epot_outPointer to a double in which to aggregate the potential energy.
Returns:
exclusion_err_ok or <0 on error (see exclusion_err)

Computes only the interactions on particles inside cells c where c->id % nr_threads == cid_div.

int exclusion_eval_mod ( struct exclusion b,
int  N,
int  nr_threads,
int  cid_mod,
struct engine e,
double *  epot_out 
)

Evaluate a list of exclusioned interactoins.

Parameters:
bPointer to an array of exclusion.
NNr of exclusions in b.
nr_threadsNumber of computational threads.
cid_modcell id modulus.
ePointer to the engine in which these exclusions are evaluated.
epot_outPointer to a double in which to aggregate the potential energy.
Returns:
exclusion_err_ok or <0 on error (see exclusion_err)

Computes only the interactions on particles inside cells c where c->id % nr_threads == cid_mod.


Variable Documentation

ID of the last error

The ID of the last error.

 All Data Structures Files Functions Variables Typedefs Enumerator Defines