Rename some variables in GPU task assignment and fix their usage
[alexxy/gromacs.git] / src / gromacs / mdrun / legacymdrunoptions.h
index 97daa7e5481844a804df31b2c200552c49122e8e..95abef6a57f49e4bcdc9e303cf19ce79ded5701d 100644 (file)
@@ -3,7 +3,7 @@
  *
  * Copyright (c) 1991-2000, University of Groningen, The Netherlands.
  * Copyright (c) 2001-2004, The GROMACS development team.
- * Copyright (c) 2011-2020, by the GROMACS development team, led by
+ * Copyright (c) 2011-2020,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.
@@ -163,7 +163,7 @@ public:
     const char* pme_fft_opt_choices[5] = { nullptr, "auto", "cpu", "gpu", nullptr };
     const char* bonded_opt_choices[5]  = { nullptr, "auto", "cpu", "gpu", nullptr };
     const char* update_opt_choices[5]  = { nullptr, "auto", "cpu", "gpu", nullptr };
-    const char* gpuIdsAvailable        = "";
+    const char* devicesSelectedByUser  = "";
     const char* userGpuTaskAssignment  = "";
 
 
@@ -217,7 +217,7 @@ public:
         { "-gpu_id",
           FALSE,
           etSTR,
-          { &gpuIdsAvailable },
+          { &devicesSelectedByUser },
           "List of unique GPU device IDs available to use" },
         { "-gputasks",
           FALSE,