BornAgain  1.19.79
Open-source research software to simulate and fit neutron and x-ray reflectometry and grazing-incidence small-angle scattering
ROOT::Minuit2::MPITerminate Class Reference

Description

Definition at line 29 of file MPIProcess.h.

Public Member Functions

 ~MPITerminate ()
 

Constructor & Destructor Documentation

◆ ~MPITerminate()

ROOT::Minuit2::MPITerminate::~MPITerminate ( )
inline

Definition at line 31 of file MPIProcess.h.

31  {
32 #ifdef MPIPROC
33  if (MPI::Is_initialized() && !(MPI::Is_finalized())) {
34  std::cout << "Info --> MPITerminate:: End MPI on #"
35  << MPI::COMM_WORLD.Get_rank() << " processor"
36  << std::endl;
37 
38  MPI::Finalize();
39  }
40 #endif
41  }

The documentation for this class was generated from the following file: