Skip to content
Snippets Groups Projects
Commit b2cf0b1d authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

simpler MPI stuff in projects (for Riochard)

parent aca23dea
No related branches found
No related tags found
No related merge requests found
...@@ -470,15 +470,15 @@ if(ENABLE_MATHEX) ...@@ -470,15 +470,15 @@ if(ENABLE_MATHEX)
endif(ENABLE_MATHEX) endif(ENABLE_MATHEX)
if(ENABLE_MPI) if(ENABLE_MPI)
find_package(MPI) find_package(MPI)
if(MPI_FOUND) if(MPI_FOUND)
message("-- Found MPI") message("-- Found MPI")
set(HAVE_MPI TRUE) set(HAVE_MPI TRUE PARENT_SCOPE) # export it for projects, too
list(APPEND CONFIG_OPTIONS "MPI") list(APPEND CONFIG_OPTIONS "MPI")
list(APPEND EXTERNAL_INCLUDES ${MPI_INCLUDE_DIR}) list(APPEND EXTERNAL_INCLUDES ${MPI_INCLUDE_DIR})
list(APPEND EXTERNAL_LIBRARIES ${MPI_LIBRARIES}) list(APPEND EXTERNAL_LIBRARIES ${MPI_LIBRARIES})
INCLUDE(CMakeForceCompiler) include(CMakeForceCompiler)
CMAKE_FORCE_CXX_COMPILER(${MPI_COMPILER} "MPI C++ Compiler") cmake_force_cxx_compiler(${MPI_COMPILER} "MPI C++ Compiler")
endif(MPI_FOUND) endif(MPI_FOUND)
endif(ENABLE_MPI) endif(ENABLE_MPI)
......
...@@ -4,6 +4,9 @@ ...@@ -4,6 +4,9 @@
// compile with: g++ interactive.cpp -lreadline -ltermcap // compile with: g++ interactive.cpp -lreadline -ltermcap
// launch Gmsh with the "-listen" option and you will be able to
// control it interactively with this program.
class GmshInteractiveClient{ class GmshInteractiveClient{
private: private:
GmshClient _client; GmshClient _client;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment