mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 13:45:36 -04:00
Move call to MPI_Abort to C++ side
This commit is contained in:
parent
f2748f64a9
commit
6ba4d68cb9
5 changed files with 29 additions and 5 deletions
14
src/error.cpp
Normal file
14
src/error.cpp
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue