mdcore
0.1.5
|
#include "../config.h"
#include <stdlib.h>
#include <stdio.h>
#include <pthread.h>
#include <math.h>
#include <float.h>
#include <string.h>
#include <limits.h>
#include "cycle.h"
#include "errs.h"
#include "fptype.h"
#include "lock.h"
#include "part.h"
#include "potential.h"
#include "potential_eval.h"
#include "cell.h"
#include "fifo.h"
#include "space.h"
#include "engine.h"
#include "exclusion.h"
Defines | |
#define | error(id) ( exclusion_err = errs_register( id , exclusion_err_msg[-(id)] , __LINE__ , __FUNCTION__ , __FILE__ ) ) |
Functions | |
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. | |
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 (struct exclusion *b, int N, struct engine *e, double *epot_out) |
Evaluate a list of exclusioned interactoins. | |
Variables | |
int | exclusion_err = exclusion_err_ok |
unsigned int | exclusion_rcount = 0 |
char * | exclusion_err_msg [2] |
#define error | ( | id | ) | ( exclusion_err = errs_register( id , exclusion_err_msg[-(id)] , __LINE__ , __FUNCTION__ , __FILE__ ) ) |
int exclusion_eval | ( | struct exclusion * | b, |
int | N, | ||
struct engine * | e, | ||
double * | epot_out | ||
) |
Evaluate a list of exclusioned interactoins.
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. |
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.
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. |
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.
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. |
Computes only the interactions on particles inside cells c
where c->id
% nr_threads == cid_mod.
The ID of the last error.
char* exclusion_err_msg[2] |
{ "Nothing bad happened.", "An unexpected NULL pointer was encountered." }
unsigned int exclusion_rcount = 0 |