1 |
|
#define EXTERN extern |
2 |
|
#include "pcwin.h" |
3 |
|
#include "pcmod.h" |
4 |
– |
#include "substr.h" |
4 |
|
#include "field.h" |
5 |
|
#include "atom_k.h" |
6 |
|
#include "pot.h" |
7 |
|
#include "energies.h" |
8 |
|
#include "solv.h" |
10 |
– |
#include "fix.h" |
11 |
– |
|
12 |
– |
EXTERN int ncol[]; |
13 |
– |
|
14 |
– |
struct t_residues { |
15 |
– |
int nchain, ichainstart[10]; |
16 |
– |
int ngroup, iresnum[200], irestype[200], istartatom[200]; |
17 |
– |
} residues; |
9 |
|
|
10 |
|
EXTERN struct t_minim_values { |
11 |
|
int iprint, ndc, nconst; |
21 |
|
int type, method, field, added_const; |
22 |
|
char added_path[256],added_name[256]; |
23 |
|
} minim_control; |
33 |
– |
EXTERN struct t_dmomv { |
34 |
– |
float xn,yn,zn,xp,yp,zp; |
35 |
– |
} dmomv; |
24 |
|
EXTERN struct t_dipolemom { |
25 |
|
double total, xdipole, ydipole, zdipole; |
26 |
|
} dipolemom; |
56 |
|
void deletebond(int, int); |
57 |
|
void set_atomtype(int,int,int,int,int,int); |
58 |
|
void set_atomdata(int,int,int,int,int,int); |
71 |
– |
extern void matrotat(float (*)[4], int, float); |
72 |
– |
extern void matxform(float (*)[4], int); |
59 |
|
void message_alert(char *, char *); |
60 |
|
void charge_dipole(void); |
61 |
|
int isangle(int,int); |
101 |
|
atom[ia].atomnum = atom_k.number[type]; |
102 |
|
atom[ia].atomwt = atom_k.weight[type]; |
103 |
|
strcpy(atom[ia].name, atom_k.symbol[type]); |
104 |
< |
} |
119 |
< |
|
120 |
< |
if ( field.type == MMX && mmxtype == LPTYPE) |
121 |
< |
atom[ia].color = 1; |
122 |
< |
else if ( type < 300 && mmxtype != LPTYPE ) |
123 |
< |
atom[ia].color = ncol[atom[ia].atomnum-1]; |
124 |
< |
else |
125 |
< |
atom[ia].color = 7; |
126 |
< |
|
104 |
> |
} |
105 |
|
} |
106 |
|
// =============================================== |
107 |
|
void set_atomtype(int ia, int mmxtype, int mm3type, int mmfftype,int ambertype,int oplstype) |
182 |
|
set_atomtype(natom,mmxtype,mm3type,mmfftype,ambertype,oplstype); |
183 |
|
} |
184 |
|
|
207 |
– |
atom[natom].color = ncol[atom[natom].atomnum-1]; |
185 |
|
atom[natom].x = x; atom[natom].y = y; atom[natom].z = z; |
209 |
– |
atom[natom].vdw_radius = Elements[atom[natom].atomnum-1].covradius; |
210 |
– |
atom[natom].substr[0] = (1L << 0); |
186 |
|
atom[natom].flags = 0; |
212 |
– |
substr.istract[0] = TRUE; |
187 |
|
return natom; |
188 |
|
} |
189 |
|
} |
212 |
|
atom[natom].opls_type = type; |
213 |
|
} |
214 |
|
if (type != 0) atom[natom].type = type; |
241 |
– |
atom[natom].color = ncol[atom[natom].atomnum-1]; |
215 |
|
atom[natom].x = x; atom[natom].y = y; atom[natom].z = z; |
243 |
– |
atom[natom].vdw_radius = Elements[i].covradius; |
244 |
– |
atom[natom].substr[0] = (1L << 0); |
245 |
– |
substr.istract[0] = TRUE; |
216 |
|
if (type > 299) |
217 |
|
return -1; |
218 |
|
else if (atom[natom].mmff_type == 0) |
291 |
|
atom[i].y = 0.0F; |
292 |
|
atom[i].z = 0.0F; |
293 |
|
atom[i].flags = 0; |
324 |
– |
for (j=0; j < MAXSSCLASS; j++) |
325 |
– |
atom[i].substr[j] = 0; |
294 |
|
for (j=0; j<MAXIAT; j++) |
295 |
|
{ |
296 |
|
if (atom[i].iat[j] != 0 ) |