Redefine the default boolean type to gmx_bool.
[alexxy/gromacs.git] / src / tools / gmx_multipoles.c
index 4daa01b3eee29ed10cdf0de79e56b5816c62b05e..1a7b10c5875b816d9080448068fc44248bbc6183 100644 (file)
@@ -153,7 +153,7 @@ void make_rot_mat(int axis,real theta,matrix t_mat){
   t_mat[i[ZZ]][i[ZZ]]=c;
 }
 
-bool test_linear_mol(rvec d)
+gmx_bool test_linear_mol(rvec d)
 {
   /* d is sorted in descending order */
   if ( (d[ZZ] < TOLERANCE) && (d[XX]-d[YY]) < TOLERANCE ) {
@@ -350,7 +350,7 @@ void pr_M1(FILE *fp,char *msg,int mol,rvec m1,real time)
 }
 
 /* Print the quadrupole moment components */
-void pr_M2(FILE *fp,char *msg,tensor m2,bool bFull)
+void pr_M2(FILE *fp,char *msg,tensor m2,gmx_bool bFull)
 {
   int i,j;
 
@@ -371,7 +371,7 @@ void pr_M2(FILE *fp,char *msg,tensor m2,bool bFull)
 }
 
 /* Print the octopole moment components */
-void pr_M3(FILE *fp,char *msg,tensor3 m3,bool bFull)
+void pr_M3(FILE *fp,char *msg,tensor3 m3,gmx_bool bFull)
 {
   int i,j,k;
 
@@ -396,7 +396,7 @@ void pr_M3(FILE *fp,char *msg,tensor3 m3,bool bFull)
 }
 
 /* Print the hexadecapole moment components */
-void pr_M4(FILE *fp,char *msg,tensor4 m4,bool bFull)
+void pr_M4(FILE *fp,char *msg,tensor4 m4,gmx_bool bFull)
 {
   int i,j,k,l;
 
@@ -607,7 +607,7 @@ rotate_mol(k0,k1,index,x,r_mat);
 }
 
 /* Does the real work */
-void do_multipoles(char *trjfn,char *topfn,char *molndxfn,bool bFull)
+void do_multipoles(char *trjfn,char *topfn,char *molndxfn,gmx_bool bFull)
 {
   int        i;
   int        gnx;
@@ -621,7 +621,7 @@ void do_multipoles(char *trjfn,char *topfn,char *molndxfn,bool bFull)
   matrix     box;
   real       t0,t1,tq;
   int        teller;
-  bool       bCont;
+  gmx_bool       bCont;
 
   rvec       *x,*m1;
   tensor     *m2;
@@ -689,7 +689,7 @@ int gmx_multipoles(int argc,char *argv[])
     "The center of mass of the molecule is used as the origin"
   };
 
-  static bool bFull = FALSE;
+  static gmx_bool bFull = FALSE;
   static int  ntb=0;
   t_pargs pa[] = {
     { "-boxtype",FALSE,etINT,&ntb, "HIDDENbox type 0=rectangular; 1=truncated octahedron (only rectangular boxes are fully implemented)"},