Fix typo in selectSpreadKernelPtr causing wrong kernel to be selected
authorAndrey Alekseenko <al42and@gmail.com>
Thu, 9 Sep 2021 16:07:20 +0000 (16:07 +0000)
committerAndrey Alekseenko <al42and@gmail.com>
Thu, 9 Sep 2021 16:07:20 +0000 (16:07 +0000)
Fixes #4138

src/gromacs/ewald/pme_gpu_internal.cpp

index c67e471ca3c86118b89d4061e046c8b824bebe1d..8b9dea9fab9d5734c2e283c3e28e8736689f119a 100644 (file)
@@ -1,7 +1,8 @@
 /*
  * This file is part of the GROMACS molecular simulation package.
  *
- * Copyright (c) 2016,2017,2018,2019,2020, by the GROMACS development team, led by
+ * Copyright (c) 2016,2017,2018,2019,2020 by the GROMACS development team.
+ * Copyright (c) 2021, by the GROMACS development team, led by
  * Mark Abraham, David van der Spoel, Berk Hess, and Erik Lindahl,
  * and including many others, as listed in the AUTHORS file in the
  * top-level source directory and at http://www.gromacs.org.
@@ -1113,6 +1114,7 @@ static auto selectSpreadKernelPtr(const PmeGpu*  pmeGpu,
             {
                 kernelPtr = pmeGpu->programHandle_->impl_->spreadKernelThPerAtom4Dual;
             }
+            else
             {
                 kernelPtr = pmeGpu->programHandle_->impl_->spreadKernelThPerAtom4Single;
             }