I have a question about "pulling out" the MPI communicator used to open an h5py file from the instance of the file:
If I do something like,
f = h5py.File(filename, 'r', driver='mpio', comm=MPI.COMM_WORLD)
comm = f.id.get_access_plist().get_fapl_mpio()
f2 = h5py.File(filename, 'r', driver='mpio', comm=comm)
Will the second file also be opened with MPI.COMM_WORLD? I don't think this works, as MPI.COMM_WORLD is in instance of MPI.Intracomm, but comm is an instance of MPI.Comm.
Is there a way one can get back the communicator that was originally passed when the file was opened?
Thanks for any help,