Skip to content
Snippets Groups Projects
Commit 7934e8f5 authored by Michael Kuron's avatar Michael Kuron :mortar_board:
Browse files

Don’t call MPI_Type_free after MPI_Finalize

Vector2, Vector3 and Matrix3 define their own MPITrait::type functions that return an MPI_Datatype for them. It is created the first time the function is called and put into a static variable. It is therefore destroyed after the main() function exits, which is usually after MPI_Finalize has been called. Freeing the MPI_Datatype is therefore not possible and mpi::datatype cannot be used.
parent b82da6d8
No related merge requests found
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment