2#include "ff/precision.h"
28void copyGradient(
int vers,
double* grdx,
double* grdy,
double* grdz,
36void copyGradient(
int vers,
double* grdx,
double* grdy,
double* grdz);
void copyGradient(int vers, double *grdx, double *grdy, double *grdz, const grad_prec *gx_src, const grad_prec *gy_src, const grad_prec *gz_src)
Copies the energy gradients from device to host.
void sumGradient(grad_prec *g0x, grad_prec *g0y, grad_prec *g0z, const grad_prec *g1x, const grad_prec *g1y, const grad_prec *g1z)
g0 += g1.
void zeroEGV(int vers=rc_flag)
Zero out all of the counts, energies, gradients, and virials on device.
void copyEnergy(int vers, energy_prec *eng)
void copyGradientSync(int vers, double *grdx, double *grdy, double *grdz, const grad_prec *gx_src, const grad_prec *gy_src, const grad_prec *gz_src, int queue)
Copies the energy gradients from device to host.
void scaleGradient(double scale, grad_prec *g0x, grad_prec *g0y, grad_prec *g0z)
g0 *= scale.
fixed grad_prec
Definition: precision.h:103
mixed energy_prec
Floating-point type for total energies.
Definition: precision.h:97
int rc_flag
Global bitmask.