Tidy: modernize-use-nullptr
[alexxy/gromacs.git] / src / gromacs / hardware / hardwareassign.cpp
index 7efeeddf097f0b323bee90db0994ddc2b317bfd4..fecd297757dd2cc29da7c27586334e39a1bc17d1 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * This file is part of the GROMACS molecular simulation package.
  *
- * Copyright (c) 2016, by the GROMACS development team, led by
+ * Copyright (c) 2016,2017, 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.
@@ -223,7 +223,7 @@ void gmx_select_rank_gpu_ids(const gmx::MDLogger &mdlog, const t_commrec *cr,
 
         sfree(checkres);
     }
-    else if (getenv("GMX_EMULATE_GPU") == NULL)
+    else if (getenv("GMX_EMULATE_GPU") == nullptr)
     {
         pick_compatible_gpus(gpu_info, gpu_opt);
         assign_rank_gpu_ids(gpu_opt, cr->nrank_pp_intranode, cr->rank_pp_intranode);