Make gmx_node_num/rank safer
[alexxy/gromacs.git] / src / gromacs / commandline / pargs.cpp
index 0f68e669fdbb644d3122ecbd3e0426573ea501d8..394205f590e047719c6e560e88adfbb02b8fffcc 100644 (file)
@@ -567,9 +567,7 @@ gmx_bool parse_common_args(int *argc, char *argv[], unsigned long Flags,
             gmx::GlobalCommandLineHelpContext::get();
         if (context != NULL)
         {
-            // TODO: The first check should not be necessary, but with
-            // thread-MPI it is...
-            GMX_RELEASE_ASSERT(!gmx_mpi_initialized() || gmx_node_rank() == 0,
+            GMX_RELEASE_ASSERT(gmx_node_rank() == 0,
                                "Help output should be handled higher up and "
                                "only get called only on the master rank");
             gmx::CommandLineHelpWriter(options)