7 #ifndef PME_K_SPACE_H__
8 #define PME_K_SPACE_H__
14 #include "ComputeMoaMgr.decl.h"
17 #ifdef OPENATOM_VERSION
18 friend class ComputeMoaMgr;
19 #endif //OPENATOM_VERSION
23 #ifdef OPENATOM_VERSION
24 PmeKSpace(
PmeGrid grid,
int K2_start,
int K2_end,
int K3_start,
int K3_end, CProxy_ComputeMoaMgr moaProxy);
25 #endif //OPENATOM_VERSION
28 double compute_energy(
float q_arr[],
const Lattice &lattice,
double ewald,
double virial[],
int useCkLoop);
35 double *bm1, *bm2, *bm3;
36 double *exp1, *exp2, *exp3;
37 double i_pi_volume, piob;
40 const int k2_start, k2_end, k3_start, k3_end;
42 void init_exp(
double *xp,
int K,
int k_start,
int k_end,
double recip);
void compute_energy_orthogonal_subset(float q_arr[], double *recips, double partialVirial[], double *partialEnergy, int k1from, int k1to)
static void init_exp(float *xp, int K, float recip, float kappa)
double compute_energy(float q_arr[], const Lattice &lattice, double ewald, double virial[], int useCkLoop)
double compute_energy_orthogonal_helper(float q_arr[], const Lattice &lattice, double ewald, double virial[])
PmeKSpace(PmeGrid grid, int K2_start, int K2_end, int K3_start, int K3_end)