aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Carpet/Carpet/src/SetupGH.cc9
1 files changed, 0 insertions, 9 deletions
diff --git a/Carpet/Carpet/src/SetupGH.cc b/Carpet/Carpet/src/SetupGH.cc
index 138e0f63a..94d430aab 100644
--- a/Carpet/Carpet/src/SetupGH.cc
+++ b/Carpet/Carpet/src/SetupGH.cc
@@ -283,19 +283,10 @@ namespace Carpet {
}
#endif
-#if 0
- // Do not call Util_GetHostName. Certain InfiniBand libraries do
- // not allow calling fork or exec, and getting the host name
- // seems also not allowed. It leads to random crashes.
- char hostnamebuf[1000];
- Util_GetHostName (hostnamebuf, sizeof hostnamebuf);
- string const hostname (hostnamebuf);
-#else
char hostnamebuf[MPI_MAX_PROCESSOR_NAME];
int hostnamelen;
MPI_Get_processor_name (hostnamebuf, &hostnamelen);
string const hostname (hostnamebuf);
-#endif
DetermineHosts (hostname, true);
#if HAVE_GETPID
int const mypid = static_cast<int> (getpid ());