Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ else()
find_package(MPI)
if(MPI_FOUND)
message(STATUS "MPI found via find_package")
include_directories(${MPI_INCLUDE_PATH})
include_directories(SYSTEM ${MPI_INCLUDE_PATH})
else()
# Try to detect MPI installation from environment variables like MPI_HOME, MPI_ROOT, or any *MPI*ROOT*
set(_mpi_env_vars)
Expand Down Expand Up @@ -141,7 +141,7 @@ else()
set(CMAKE_C_COMPILER "${MPI_C_COMPILER}")
set(CMAKE_CXX_COMPILER "${MPI_CXX_COMPILER}")
link_directories("${HEREMPI}/lib" "${HEREMPI}/lib/release")
include_directories("${MPI_INCLUDE_PATH}")
include_directories(SYSTEM "${MPI_INCLUDE_PATH}")
message(STATUS "Set MPI_C_COMPILER: ${MPI_C_COMPILER}")
message(STATUS "Set MPI_CXX_COMPILER: ${MPI_CXX_COMPILER}")
message(STATUS "Set MPI_C_LIBRARIES: ${MPI_C_LIBRARIES}")
Expand Down
19 changes: 2 additions & 17 deletions src/Command.cpp

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the code never got implemented here, safe to delete.

Original file line number Diff line number Diff line change
Expand Up @@ -3457,28 +3457,13 @@ namespace libforefire
int Command::listenHTTP(const std::string &arg, size_t &/*numTabs*/)
{

// ID 1 is for the Fortran MPI rank 1
int MPIMODE = 1;
int STANDALONEMODE = 0;
int listenMode = STANDALONEMODE;
size_t defaultport = 8000;
size_t port = defaultport;
std::string defaultHostname = "localhost";

if (currentSession.fd != 0)
if (currentSession.fd != 0 && getDomain()->getDomainID() != 0)
{
if (getDomain()->getDomainID() != 0)
{
return normal;
}
else
{
if (currentSession.fdp != 0)
{
listenMode = MPIMODE;

}
}
return normal;
}

// Local only by default; listenHTTP[0.0.0.0:8000] to open it to the network.
Expand Down
Loading