Commit c2c6d9dd authored by Giovanni La Mura's avatar Giovanni La Mura
Browse files

Move MPI inclusion from Commons header to Commons implementation

parent fa4f9f1b
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -33,10 +33,6 @@
#ifndef INCLUDE_COMMONS_H_
#define INCLUDE_COMMONS_H_

#ifdef USE_MPI
#include <mpi.h>
#endif

class ParticleDescriptor;

/*! \brief Structure with essential MPI data.
+6 −6
Original line number Diff line number Diff line
@@ -18,6 +18,12 @@
 *
 * \brief Implementation of the common data structures.
 */
#include <cstring>

#ifdef USE_MPI
#include <mpi.h>
#endif

#ifndef INCLUDE_TYPES_H_
#include "../include/types.h"
#endif
@@ -30,12 +36,6 @@
#include "../include/Commons.h"
#endif

#include <cstring>

#ifdef USE_MPI
#include <mpi.h>
#endif

mixMPI::mixMPI() {
  mpirunning = 0;
  rank = 0;