Go to the source code of this file.
|#define ||INLINE inline|
| ||__attribute__ ((always_inline)) INLINE void potential_eval(struct potential *p|
| ||Evaluates the given potential at the given point (interpolated). |
|FPTYPE FPTYPE * ||e|
Evaluates the given potential at the given point (interpolated).
|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