Move call to MPI_Abort to C++ side

This commit is contained in:
Paul Romano 2018-10-10 07:50:30 -05:00
parent f2748f64a9
commit 6ba4d68cb9
5 changed files with 29 additions and 5 deletions

14
src/error.cpp Normal file
View file

@ -0,0 +1,14 @@
#include "openmc/error.h"
#include "openmc/message_passing.h"
namespace openmc {
#ifdef OPENMC_MPI
void abort_mpi(int code)
{
MPI_Abort(mpi::intracomm, code);
}
#endif
} // namespace openmc