mdcore  0.1.5
Defines | Functions | Variables
/home/pedro/work/mdcore/src/runner_pwverlet.c File Reference
#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 <sched.h>
#include "cycle.h"
#include "errs.h"
#include "fptype.h"
#include "lock.h"
#include "part.h"
#include "cell.h"
#include "fifo.h"
#include "space.h"
#include "potential.h"
#include "potential_eval.h"
#include "engine.h"
#include "runner.h"

Defines

#define error(id)   ( runner_err = errs_register( id , runner_err_msg[-(id)] , __LINE__ , __FUNCTION__ , __FILE__ ) )

Functions

 __attribute__ ((flatten))
 Fill in the pairwise Verlet list entries for the given cell pair if needed and compute the interactions.

Variables

char * runner_err_msg []
unsigned int runner_rcount

Define Documentation

#define error (   id)    ( runner_err = errs_register( id , runner_err_msg[-(id)] , __LINE__ , __FUNCTION__ , __FILE__ ) )

Function Documentation

__attribute__ ( (flatten)  )

Fill in the pairwise Verlet list entries for the given cell pair if needed and compute the interactions.

Parameters:
rThe runner computing the pair.
cell_iThe first cell.
cell_jThe second cell.
pshiftA pointer to an array of three floating point values containing the vector separating the centers of cell_i and cell_j.
Returns:
runner_err_ok or <0 on error (see runner_err)
Parameters:
rThe runner computing the pair.
cell_iThe first cell.
cell_jThe second cell.
pshiftA pointer to an array of three floating point values containing the vector separating the centers of cell_i and cell_j.
Returns:
runner_err_ok or <0 on error (see runner_err)

This routine differs from runner_dopair_verlet in that instead of storing a Verlet table, the sorted particle ids are stored. This requires only (size_i + size_j) entries as opposed to size_i*size_j for the Verlet table, yet may be less efficient since particles within the skin along the cell-pair axis are inspected, as opposed to particles simply within the skin of each other.


Variable Documentation

char* runner_err_msg[]
unsigned int runner_rcount
 All Data Structures Files Functions Variables Typedefs Enumerator Defines