-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathammp.h
102 lines (92 loc) · 2.1 KB
/
ammp.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
/* ammp.h
* include file for ammp and routines associated with it
*
* define the ATOM structure
*/
/* excluded stuff is for a list of bonded and 1-3 atoms not to be
* used in the non-bonded evaluation
* the purpose of this is to speed up the nonbonded calculations since
* the bond list varies only once and a while
*/
/* shadow version use 4dimensions (6 may be best) */
/* dont use double precision */
/* do use it
#define float double
*/
/*#define NEXCLUDE 32 */
#define NEXCLUDE 64
/*
#define QUARTIC
#define QUINTIC
#define CUBIC
*/
#ifdef QUARTIC
#define CUBIC
#endif
#ifdef QUINTIC
#define CUBIC
#define QUARTIC
#endif
/*#define NCLOSE 700 */
/*#define NCLOSE 500 */
/*#define NCLOSE 250 */
#define NCLOSE 400
/*#define NCLOSE 100 */
/* 100 is enough for a 6A sphere (usually) */
/* on the SGI use a different malloc */
#ifdef SGI
#include <sys/types.h>
#include <malloc.h>
#endif
#ifdef DECALPHA
#include <malloc.h>
#endif
#define critical_precision double
typedef struct{
float x,y,z,w;
critical_precision fx,fy,fz,fw;
int serial;
float q,a,b,mass;
float na; /* atomic number == 0 if no orbitals */
float rdebye;
void *next;
char active;
char name[9];
float chi,jaa;
float vx,vy,vz,vw,dx,dy,dz,dw;
float gx,gy,gz,gw;
float VP,px,py,pz,pw,dpx,dpy,dpz,dpw;
/* float dpxx,dpxy,dpxz,dpyy,dpyz,dpzz; */
/* place holders for interpolation on V */
float qxx,qxy,qxz,qyy,qyz,qzz;
float qxw,qyw,qzw,qww;
#ifdef CUBIC
float qxxx,qxxy,qxxz,qxyy,qxyz,qxzz;
float qyyy,qyyz,qyzz,qzzz;
#endif
#ifdef QUARTIC
float qxxxx,qxxxy,qxxxz,qxxyy,qxxyz,qxxzz;
float qxyyy,qxyyz,qxyzz,qxzzz;
float qyyyy,qyyyz,qyyzz,qyzzz,qzzzz;
#endif
#ifdef QUINTIC
float qxxxxx,qxxxxy,qxxxxz,qxxxyy,qxxxyz,qxxxzz;
float qxxyyy,qxxyyz,qxxyzz,qxxzzz;
float qxyyyy,qxyyyz,qxyyzz,qxyzzz,qxzzzz;
float qyyyyy,qyyyyz,qyyyzz,qyyzzz,qyzzzz,qzzzzz;
#endif
/* interpolation on force */
void *close[NCLOSE];
void *excluded[NEXCLUDE];
char exkind[NEXCLUDE];
/* bitmap way to do it
#if (NEXCLUDE <33 )
unsigned exkind;
#else
unsigned long exkind;
#endif
*/
int dontuse;
} ATOM;
int aaerror( char *);
#include "numeric.h"