Skip to content
Snippets Groups Projects
  • Markus Blatt's avatar
    033377ca
    Prevents calling MPI_Comm_free after MPI_Finalize. · 033377ca
    Markus Blatt authored
    With OpenMPI there appeared cases where MPI_Comm_free
    was called after MPI_Finalize. This was caused by the
    destructor of OwnerOverlapCopyCommunication being called
    after MPI_Finalize.
    This patch moves the destruction out of the main method.
    If MPI 2 functionality is available we also check whether
    MPI_Finalize was called before freeing the communicator and
    only call free if not.
    033377ca
    History
    Prevents calling MPI_Comm_free after MPI_Finalize.
    Markus Blatt authored
    With OpenMPI there appeared cases where MPI_Comm_free
    was called after MPI_Finalize. This was caused by the
    destructor of OwnerOverlapCopyCommunication being called
    after MPI_Finalize.
    This patch moves the destruction out of the main method.
    If MPI 2 functionality is available we also check whether
    MPI_Finalize was called before freeing the communicator and
    only call free if not.