Redefine the default boolean type to gmx_bool.
[alexxy/gromacs.git] / src / mdlib / domdec_setup.c
index 78356d8646460b7ae4f5672f1c117bda9a8ead23..ecc3207d2fdb41186170948b04957b6f29d911fd 100644 (file)
@@ -60,12 +60,12 @@ static int factorize(int n,int **fac,int **mfac)
        return ndiv;
 }
 
-static bool fits_pme_ratio(int nnodes,int npme,float ratio)
+static gmx_bool fits_pme_ratio(int nnodes,int npme,float ratio)
 {
     return ((double)npme/(double)nnodes > 0.95*ratio); 
 }
 
-static bool fits_pp_pme_perf(FILE *fplog,
+static gmx_bool fits_pp_pme_perf(FILE *fplog,
                              t_inputrec *ir,matrix box,gmx_mtop_t *mtop,
                              int nnodes,int npme,float ratio)
 {
@@ -236,7 +236,7 @@ real comm_box_frac(ivec dd_nc,real cutoff,gmx_ddbox_t *ddbox)
     return comm_vol;
 }
 
-static bool inhomogeneous_z(const t_inputrec *ir)
+static gmx_bool inhomogeneous_z(const t_inputrec *ir)
 {
     return ((EEL_PME(ir->coulombtype) || ir->coulombtype==eelEWALD) &&
             ir->ePBC==epbcXYZ && ir->ewald_geometry==eewg3DC);
@@ -486,16 +486,16 @@ static void assign_factors(gmx_domdec_t *dd,
 
 static real optimize_ncells(FILE *fplog,
                             int nnodes_tot,int npme_only,
-                            bool bDynLoadBal,real dlb_scale,
+                            gmx_bool bDynLoadBal,real dlb_scale,
                             gmx_mtop_t *mtop,matrix box,gmx_ddbox_t *ddbox,
                             t_inputrec *ir,
                             gmx_domdec_t *dd,
                             real cellsize_limit,real cutoff,
-                            bool bInterCGBondeds,bool bInterCGMultiBody,
+                            gmx_bool bInterCGBondeds,gmx_bool bInterCGMultiBody,
                             ivec nc)
 {
     int npp,npme,ndiv,*div,*mdiv,d,nmax;
-    bool bExcl_pbcdx;
+    gmx_bool bExcl_pbcdx;
     float pbcdxr;
     real limit;
     ivec itry;
@@ -603,9 +603,9 @@ static real optimize_ncells(FILE *fplog,
 real dd_choose_grid(FILE *fplog,
                     t_commrec *cr,gmx_domdec_t *dd,t_inputrec *ir,
                     gmx_mtop_t *mtop,matrix box,gmx_ddbox_t *ddbox,
-                    bool bDynLoadBal,real dlb_scale,
+                    gmx_bool bDynLoadBal,real dlb_scale,
                     real cellsize_limit,real cutoff_dd,
-                    bool bInterCGBondeds,bool bInterCGMultiBody)
+                    gmx_bool bInterCGBondeds,gmx_bool bInterCGMultiBody)
 {
     int  npme,nkx,nky;
     real limit;