mdcore  0.1.5
Defines | Functions | Variables
/home/pedro/work/mdcore/src/potential_eval.h File Reference

Go to the source code of this file.

Defines

#define INLINE   inline

Functions

 __attribute__ ((always_inline)) INLINE void potential_eval(struct potential *p
 Evaluates the given potential at the given point (interpolated).

Variables

FPTYPE r2
FPTYPE FPTYPE * e

Define Documentation

#define INLINE   inline

Function Documentation

__attribute__ ( (always_inline)  )

Evaluates the given potential at the given point (interpolated).

Parameters:
pThe potential to be evaluated.
r2The radius at which it is to be evaluated, squared.
ePointer to a floating-point value in which to store the interaction energy.
fPointer to a floating-point value in which to store the magnitude of the interaction force divided by r.

Note that for efficiency reasons, this function does not check if any of the parameters are NULL or if sqrt(r2) is within the interval of the potential p.


Variable Documentation

FPTYPE FPTYPE* e
FPTYPE r2
 All Data Structures Files Functions Variables Typedefs Enumerator Defines