From: Roland Schulz Date: Wed, 16 Jul 2014 01:45:49 +0000 (-0400) Subject: Change error to warning for missing OMP_NUM_THREADS X-Git-Url: http://biod.pnpi.spb.ru/gitweb/?a=commitdiff_plain;h=60fe41515b4d7bf5d4d18e365f38f77d824c3e94;p=alexxy%2Fgromacs.git Change error to warning for missing OMP_NUM_THREADS Setting the default number of OpenMP threads using -ntomp works too. Using ntomp allows to use the regressiontests. A proper fix should be done in master because it requires larger code changes. Change-Id: Ic47cebc9da6cf1b0624a1383d7ce23f93bd26dbe --- diff --git a/src/gromacs/gmxlib/gmx_omp_nthreads.c b/src/gromacs/gmxlib/gmx_omp_nthreads.c index 9549b91cb4..68fdbb37e7 100644 --- a/src/gromacs/gmxlib/gmx_omp_nthreads.c +++ b/src/gromacs/gmxlib/gmx_omp_nthreads.c @@ -145,9 +145,9 @@ static void pick_module_nthreads(FILE *fplog, int m, * OMP_NUM_THREADS also has to be set */ if (bFullOmpSupport && getenv("OMP_NUM_THREADS") == NULL) { - gmx_fatal(FARGS, "%s=%d is set, the default number of threads also " - "needs to be set with OMP_NUM_THREADS!", - modth_env_var[m], nth); + gmx_warning("%s=%d is set, the default number of threads also " + "needs to be set with OMP_NUM_THREADS!", + modth_env_var[m], nth); } /* with the group scheme warn if any env var except PME is set */