From: Mark Abraham Date: Mon, 21 Sep 2020 14:21:14 +0000 (+0200) Subject: Wrong logic was used X-Git-Url: http://biod.pnpi.spb.ru/gitweb/?a=commitdiff_plain;h=5d34a798a035e86fa440556ef70ea88249d758ca;p=alexxy%2Fgromacs.git Wrong logic was used Log files in gitlab gave the warning message for twin-cutoff, but we are not setting these env variables. --- 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");