Closed GeorgeHicks1 closed 4 years ago
I have no problem opening hdf5 files while the simulation is running, even on supercomputers. I think we had similar reports in the past, but that was due to the filesystem, or to the way hdf5 was compiled. Could you contact your sysadmin on these points?
Ok, thank you for your response. I will contact them.
If you find a solution, please share. It could be useful to other users with similar systems
I've found a solution that works for me. I now add os.environ["HDF5_USE_FILE_LOCKING"] = "FALSE"
before opening a simulation.
Description
I opened a simulation while it was still running to check everything was going ok. The simulation opened ok. After the simulation had finished, I tried to open it again and I get the error below.
Have I somehow corrupted the hdf5 files by opening them while they were being written to?
It is similar to this I believe: https://github.com/h5py/h5py/issues/736
Steps to reproduce the problem
S=happi.Open(sim_directory) Electron_xy=S.ParticleBinning(0)
Parameters
Smilei version v4.3-106-g8c22fd7-master
Input file: namelist.txt
Commands or script used to run the faulty simulation?: pbscx2.txt
Computing resources