#include "gromacs/random/threefry.h"
#include "gromacs/random/uniformintdistribution.h"
#include "gromacs/topology/topology.h"
+#include "gromacs/utility/basedefinitions.h"
#include "gromacs/utility/cstringutil.h"
#include "gromacs/utility/exceptions.h"
#include "gromacs/utility/fatalerror.h"
int nthreads;
gmx::DefaultRandomEngine* trng = nullptr;
#endif
- int64_t mc = 0, mc_max;
+ int64_t mc_max;
gmx::DefaultRandomEngine rng(seed);
/* allocate memory for pr */
snew(tgr[i], pr->grn);
trng[i].seed(rng());
}
-# pragma omp parallel shared(tgr, trng, mc) private(tid, i, j)
+# pragma omp parallel shared(tgr, trng) private(tid, i, j)
{
gmx::UniformIntDistribution<int> tdist(0, isize - 1);
tid = gmx_omp_get_thread_num();
/* now starting parallel threads */
+ INTEL_DIAGNOSTIC_IGNORE(593)
# pragma omp for
- for (mc = 0; mc < mc_max; mc++)
+ for (int64_t mc = 0; mc < mc_max; mc++)
{
try
{
GMX_CATCH_ALL_AND_EXIT_WITH_FATAL_ERROR
}
}
+ INTEL_DIAGNOSTIC_RESET
/* collecting data from threads */
for (i = 0; i < pr->grn; i++)
{
delete[] trng;
#else
gmx::UniformIntDistribution<int> dist(0, isize - 1);
- for (mc = 0; mc < mc_max; mc++)
+ for (int64_t mc = 0; mc < mc_max; mc++)
{
i = dist(rng); // [0,isize-1]
j = dist(rng); // [0,isize-1]