File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -471,13 +471,6 @@ static int CountTasksPerNode(int numTasks, MPI_Comm comm)
471471 unsigned flag ;
472472 int rc ;
473473
474- if (verbose >= VERBOSE_2 && firstPass ) {
475- char tmp [MAX_STR ];
476- sprintf (tmp , "task %d on %s" , rank , localhost );
477- OutputToRoot (numTasks , comm , tmp );
478- firstPass = FALSE;
479- }
480-
481474 rc = gethostname (localhost , MAX_STR );
482475 if (rc == -1 ) {
483476 /* This node won't match task 0's hostname...expect in the
@@ -489,6 +482,13 @@ static int CountTasksPerNode(int numTasks, MPI_Comm comm)
489482 perror ("gethostname() failed" );
490483 }
491484
485+ if (verbose >= VERBOSE_2 && firstPass ) {
486+ char tmp [MAX_STR ];
487+ sprintf (tmp , "task %d on %s" , rank , localhost );
488+ OutputToRoot (numTasks , comm , tmp );
489+ firstPass = FALSE;
490+ }
491+
492492 /* send task 0's hostname to all tasks */
493493 if (rank == 0 )
494494 strcpy (hostname0 , localhost );
You can’t perform that action at this time.
0 commit comments