NAMD
PmeBase.h
Go to the documentation of this file.
1 
7 #ifndef PME_BASE_H__
8 #define PME_BASE_H__
9 
10 #ifdef DEBUGM
11 #include <stdio.h>
12 #endif
13 #include <math.h>
14 #include "MathArray.h"
15 
16 #ifndef M_PI
17 #define M_PI 3.14159265358979323846
18 #endif
19 
20 struct PmeGrid {
21  int K1, K2, K3;
22  int dim2, dim3;
23  int order;
26 #ifdef DEBUGM
27  void print() {
28  printf("K1=%d K2=%d K3=%d dim2=%d dim3=%d order=%d\n"
29  "block1=%d block2=%d block3=%d xBlocks=%d yBlocks=%d zBlock=%d\n",
32  }
33 #endif
34 };
35 
36 struct PmeParticle {
37  double x, y, z;
38  double cg;
39 };
40 
41 #define PME_MAX_EVALS 255
43 
44 #ifndef SQRT_PI
45 #define SQRT_PI 1.7724538509055160273 /* mathematica 15 digits*/
46 #endif
47 
48 #endif
int dim2
Definition: PmeBase.h:22
int zBlocks
Definition: PmeBase.h:25
int dim3
Definition: PmeBase.h:22
double x
Definition: PmeBase.h:37
int K2
Definition: PmeBase.h:21
int K1
Definition: PmeBase.h:21
int block1
Definition: PmeBase.h:24
double cg
Definition: PmeBase.h:38
int block2
Definition: PmeBase.h:24
double z
Definition: PmeBase.h:37
double y
Definition: PmeBase.h:37
MathArray< double, 7 > PmeReduction
Definition: PmeBase.h:42
int yBlocks
Definition: PmeBase.h:25
int order
Definition: PmeBase.h:23
int block3
Definition: PmeBase.h:24
int K3
Definition: PmeBase.h:21
int xBlocks
Definition: PmeBase.h:25