Make gmx_node_num/rank safer
[alexxy/gromacs.git] / src / gromacs / commandline / cmdlinemodulemanager.cpp
index 826d96fd9d9c24d86f7cc12764588dc3ccaef022..8ceab3e6a305e4121df80aed81f7de71ec904656 100644 (file)
@@ -515,9 +515,7 @@ void CommandLineModuleManager::addHelpTopic(HelpTopicPointer topic)
 int CommandLineModuleManager::run(int argc, char *argv[])
 {
     CommandLineModuleInterface    *module;
-    // TODO: With thread-MPI, gmx_node_rank() returns random stuff here, so we
-    // need the first check.
-    const bool                     bMaster = (!gmx_mpi_initialized() || gmx_node_rank() == 0);
+    const bool                     bMaster = (gmx_node_rank() == 0);
     bool                           bQuiet  = impl_->bQuiet_ || !bMaster;
     CommandLineCommonOptionsHolder optionsHolder;
     try