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
Function Documentation
Evaluate a list of exclusioned interactoins. 
- Parameters:
- 
  
    | b | Pointer to an array of exclusion. |  | N | Nr of exclusions in b. |  | e | Pointer to the engine in which these exclusions are evaluated. |  | epot_out | Pointer to a double in which to aggregate the potential energy. |  
 
- Returns:
- exclusion_err_ok or <0 on error (see exclusion_err) 
 
 
Evaluate a list of exclusioned interactoins. 
- Parameters:
- 
  
    | b | Pointer to an array of exclusion. |  | N | Nr of exclusions in b. |  | nr_threads | Number of computational threads. |  | cid_div | cell id modulus. |  | e | Pointer to the engine in which these exclusions are evaluated. |  | epot_out | Pointer 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. 
 
 
Evaluate a list of exclusioned interactoins. 
- Parameters:
- 
  
    | b | Pointer to an array of exclusion. |  | N | Nr of exclusions in b. |  | nr_threads | Number of computational threads. |  | cid_mod | cell id modulus. |  | e | Pointer to the engine in which these exclusions are evaluated. |  | epot_out | Pointer 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.