-
Notifications
You must be signed in to change notification settings - Fork 3
/
atom_property.h
33 lines (28 loc) · 1.14 KB
/
atom_property.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
//function defination for atom properties
#define BINSIZE_DEFALUT 3.0
#define RCUTOFF_DEFAULT 6.0
#define max_neighbour 100
typedef struct systeminfo{
float boxmd[3],halfboxmd[3],cellsize[3];
int Natoms;
int ng[3];
float binsize; //binsize is minimum linklist cellsize
float rcutoff,rcutoffsq; //cutoff distance for atoms
long int *llst;
long int ***lshd;
int **neigh_info;
} a_systeminfo;
typedef struct coodrinates{
int atype;
char aname[2];
float loc[3];
float property;
int label;
float *feature;
} a_coodrinates;
extern int read_input(char *filename,a_systeminfo *mdatom_info,a_coodrinates **retval);
extern int write_coordinate(a_coodrinates *input_atoms,char *filename,int Natoms,float *box,int **c_number);
extern int setsystemparameter(a_systeminfo *mdatom_info);
extern int makelinkedlist(a_coodrinates *input_atoms,int Natoms,float *cellsize,int *ng,long int *llst,long int ***lshd);
extern int makeneighboutlist(a_coodrinates *input_atoms,int Natoms,float *boxmd,float *halfboxmd,
float *cellsize,int *ng,float rcutoffsq,long int *llst,long int ***lshd,int ***retval);