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
Function Documentation
Evaluates the given potential at the given point (interpolated).
- Parameters:
-
| p | The potential to be evaluated. |
| r2 | The radius at which it is to be evaluated, squared. |
| e | Pointer to a floating-point value in which to store the interaction energy. |
| f | Pointer 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