From 5d34a798a035e86fa440556ef70ea88249d758ca Mon Sep 17 00:00:00 2001 From: Mark Abraham Date: Mon, 21 Sep 2020 16:21:14 +0200 Subject: [PATCH] Wrong logic was used Log files in gitlab gave the warning message for twin-cutoff, but we are not setting these env variables. --- src/gromacs/nbnxm/nbnxm_gpu_data_mgmt.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gromacs/nbnxm/nbnxm_gpu_data_mgmt.cpp b/src/gromacs/nbnxm/nbnxm_gpu_data_mgmt.cpp index 3276b9ece1..3fd85ae473 100644 --- a/src/gromacs/nbnxm/nbnxm_gpu_data_mgmt.cpp +++ b/src/gromacs/nbnxm/nbnxm_gpu_data_mgmt.cpp @@ -108,8 +108,8 @@ int nbnxn_gpu_pick_ewald_kernel_type(const interaction_const_t& ic) || (getenv("GMX_OCL_NB_ANA_EWALD") != nullptr); const bool forceTabulatedEwaldLegacy = (getenv("GMX_CUDA_NB_TAB_EWALD") != nullptr) || (getenv("GMX_OCL_NB_TAB_EWALD") != nullptr); - const bool forceTwinCutoffEwaldLegacy = (getenv("GMX_CUDA_NB_EWALD_TWINCUT") == nullptr) - || (getenv("GMX_OCL_NB_EWALD_TWINCUT") == nullptr); + const bool forceTwinCutoffEwaldLegacy = (getenv("GMX_CUDA_NB_EWALD_TWINCUT") != nullptr) + || (getenv("GMX_OCL_NB_EWALD_TWINCUT") != nullptr); printEnviromnentVariableDeprecationMessage(forceAnalyticalEwaldLegacy, "NB_ANA_EWALD"); printEnviromnentVariableDeprecationMessage(forceTabulatedEwaldLegacy, "NB_TAB_EWALD"); -- 2.22.0