Why do I have to call MPI.Finalize() inside the destructor?

Advertisements I’m currently trying to understand mpi4py. I set mpi4py.rc.initialize = False and mpi4py.rc.finalize = False because I can’t see why we would want initialization and finalization automatically. The default behavior is that MPI.Init() gets called when MPI is being imported. I think the reason for that is because for each rank a instance of… Read More Why do I have to call MPI.Finalize() inside the destructor?