4dc0561d1aa30b466f1061e8590eb8e750d316aa
[alexxy/gromacs.git] / include / sortwater.h
1 #ifndef _sortwater_h
2 #define _sortwater_h
3
4 #ifdef HAVE_CONFIG_H
5 #include <config.h>
6 #endif
7
8 #include "typedefs.h"
9
10 extern void randwater(int astart,int nwater,int nwatom,
11                       rvec x[],rvec v[],int *seed);
12 /* Randomize the order of nwater molecules of length nwatom, the
13  * first atom of which is at astart.
14  * If v is not NULL it will be shuffled along
15  */
16
17
18 extern void sortwater(int astart,int nwater,int nwatom,rvec x[],rvec v[]);
19 /* Sort the order of nwater molecules of length nwatom on X coordinate
20  * If v is not NULL it will be shuffled along
21  */
22
23 extern void mkcompact(int astart,int nwater,int nwatom,rvec x[],rvec v[],
24                       int nnode,matrix box);
25 /* Make compact subboxes */
26
27 #endif