/* this is not strictly thread-safe, but it's only written to at the beginning
of the simulation, once by each thread with the same value. We assume
that writing to an int is atomic.*/
-static bool parallel_env_val;
+static gmx_bool parallel_env_val;
#ifdef GMX_THREADS
tMPI_Thread_mutex_t parallel_env_mutex=TMPI_THREAD_MUTEX_INITIALIZER;
#endif
been initialized, for example when checking whether gmx_finalize()
needs to be called. Use PAR(cr) to check whether the simulation actually
has more than one node/thread. */
-bool gmx_parallel_env_initialized(void)
+gmx_bool gmx_parallel_env_initialized(void)
{
- bool ret;
+ gmx_bool ret;
#ifdef GMX_THREADS
tMPI_Thread_mutex_lock(¶llel_env_mutex);
#endif
return ret;
}
-static void set_parallel_env(bool val)
+static void set_parallel_env(gmx_bool val)
{
#ifdef GMX_THREADS
tMPI_Thread_mutex_lock(¶llel_env_mutex);
static void par_fn(char *base,int ftp,const t_commrec *cr,
- bool bAppendSimId,bool bAppendNodeId,
+ gmx_bool bAppendSimId,gmx_bool bAppendNodeId,
char buf[],int bufsize)
{
int n;
const char *name)
{
int *ibuf,p;
- bool bCompatible;
+ gmx_bool bCompatible;
fprintf(log,"Multi-checking %s ... ",name);
sfree(ibuf);
}
-void gmx_log_open(const char *lognm,const t_commrec *cr,bool bMasterOnly,
+void gmx_log_open(const char *lognm,const t_commrec *cr,gmx_bool bMasterOnly,
unsigned long Flags, FILE** fplog)
{
int len,testlen,pid;
FILE *fp=*fplog;
char *tmpnm;
- bool bAppend = Flags & MD_APPENDFILES;
+ gmx_bool bAppend = Flags & MD_APPENDFILES;
debug_gmx();
}
void init_multisystem(t_commrec *cr,int nsim, int nfile,
- const t_filenm fnm[],bool bParFn)
+ const t_filenm fnm[],gmx_bool bParFn)
{
gmx_multisim_t *ms;
int nnodes,nnodpersim,sim,i,ftp;
t_commrec *cr;
char **argv;
int i;
- bool pe=FALSE;
+ gmx_bool pe=FALSE;
snew(cr,1);