OpenMC/include/openmc/message_passing.h
2019-10-28 11:55:45 -05:00

23 lines
370 B
C++

#ifndef OPENMC_MESSAGE_PASSING_H
#define OPENMC_MESSAGE_PASSING_H
#ifdef OPENMC_MPI
#include <mpi.h>
#endif
namespace openmc {
namespace mpi {
extern int rank;
extern int n_procs;
extern bool master;
#ifdef OPENMC_MPI
extern MPI_Datatype bank;
extern MPI_Comm intracomm;
#endif
} // namespace mpi
} // namespace openmc
#endif // OPENMC_MESSAGE_PASSING_H