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

fix compile with Intel mpi

parent 6ba42903
Branches
Tags
No related merge requests found
...@@ -3,13 +3,18 @@ ...@@ -3,13 +3,18 @@
// See the LICENSE.txt file for license information. Please report all // See the LICENSE.txt file for license information. Please report all
// bugs and problems to the public mailing list <gmsh@geuz.org>. // bugs and problems to the public mailing list <gmsh@geuz.org>.
#include "GmshConfig.h"
#if defined(HAVE_MPI)
#include <mpi.h>
#endif
#include <stdlib.h> #include <stdlib.h>
#include <stdio.h> #include <stdio.h>
#include <math.h> #include <math.h>
#include <string.h> #include <string.h>
#include <time.h> #include <time.h>
#include <sys/stat.h> #include <sys/stat.h>
#include "GmshConfig.h"
#include "GmshMessage.h" #include "GmshMessage.h"
#include "GmshSocket.h" #include "GmshSocket.h"
#include "Gmsh.h" #include "Gmsh.h"
...@@ -24,10 +29,6 @@ ...@@ -24,10 +29,6 @@
#include "onelab.h" #include "onelab.h"
#endif #endif
#if defined(HAVE_MPI)
#include <mpi.h>
#endif
#if defined(HAVE_PETSC) #if defined(HAVE_PETSC)
#include <petsc.h> #include <petsc.h>
#endif #endif
......
...@@ -3,8 +3,20 @@ ...@@ -3,8 +3,20 @@
// See the LICENSE.txt file for license information. Please report all // See the LICENSE.txt file for license information. Please report all
// bugs and problems to the public mailing list <gmsh@geuz.org>. // bugs and problems to the public mailing list <gmsh@geuz.org>.
#include <sstream>
#include "GmshConfig.h" #include "GmshConfig.h"
#if defined(HAVE_MPI)
#include <mpi.h>
#define MPI_GMSH_COMPUTE_VIEW 1
#define MPI_GMSH_DATA_READY 2
#define MPI_GMSH_VARRAY 3
#define MPI_GMSH_VARRAY_LEN 4
#define MPI_GMSH_SHUTDOWN 5
#define MPI_GMSH_PARSE_STRING 6
#define MPI_GMSH_MERGE_FILE 7
#endif
#include <sstream>
#include "GmshMessage.h" #include "GmshMessage.h"
#if defined(HAVE_ONELAB) && defined(HAVE_POST) #if defined(HAVE_ONELAB) && defined(HAVE_POST)
...@@ -19,17 +31,6 @@ ...@@ -19,17 +31,6 @@
#include "PViewData.h" #include "PViewData.h"
#include "PViewDataRemote.h" #include "PViewDataRemote.h"
#if defined(HAVE_MPI)
#include <mpi.h>
#define MPI_GMSH_COMPUTE_VIEW 1
#define MPI_GMSH_DATA_READY 2
#define MPI_GMSH_VARRAY 3
#define MPI_GMSH_VARRAY_LEN 4
#define MPI_GMSH_SHUTDOWN 5
#define MPI_GMSH_PARSE_STRING 6
#define MPI_GMSH_MERGE_FILE 7
#endif
static void computeAndSendVertexArrays(GmshClient *client, bool compute=true) static void computeAndSendVertexArrays(GmshClient *client, bool compute=true)
{ {
for(unsigned int i = 0; i < PView::list.size(); i++){ for(unsigned int i = 0; i < PView::list.size(); i++){
......
...@@ -3,13 +3,14 @@ ...@@ -3,13 +3,14 @@
// See the LICENSE.txt file for license information. Please report all // See the LICENSE.txt file for license information. Please report all
// bugs and problems to the public mailing list <gmsh@geuz.org>. // bugs and problems to the public mailing list <gmsh@geuz.org>.
#include <dofManager.h>
#include "GmshConfig.h" #include "GmshConfig.h"
#ifdef HAVE_MPI #ifdef HAVE_MPI
#include "mpi.h" #include "mpi.h"
#endif #endif
#include <dofManager.h>
template<> template<>
void dofManager<double>::scatterSolution() void dofManager<double>::scatterSolution()
{ {
......
...@@ -4,13 +4,14 @@ ...@@ -4,13 +4,14 @@
// bugs and problems to the public mailing list <gmsh@geuz.org>. // bugs and problems to the public mailing list <gmsh@geuz.org>.
#include "GmshConfig.h" #include "GmshConfig.h"
#include <string.h>
#if defined(HAVE_PETSC) #if defined(HAVE_PETSC)
#include "petsc.h" #include "petsc.h"
#include "linearSystemPETSc.h" #include "linearSystemPETSc.h"
#include "fullMatrix.h" #include "fullMatrix.h"
#include <stdlib.h> #include <stdlib.h>
#include "GmshMessage.h" #include "GmshMessage.h"
#include "linearSystemPETSc.hpp" #include "linearSystemPETSc.hpp"
template class linearSystemPETSc<double>; template class linearSystemPETSc<double>;
......
...@@ -39,7 +39,9 @@ ...@@ -39,7 +39,9 @@
#include "linearSystem.h" #include "linearSystem.h"
#include "sparsityPattern.h" #include "sparsityPattern.h"
#include "fullMatrix.h" #include "fullMatrix.h"
#include <string.h>
#include <vector> #include <vector>
#if defined(HAVE_PETSC) #if defined(HAVE_PETSC)
#ifndef SWIG #ifndef SWIG
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment