Closed rennehan closed 4 months ago
If you upload an example IC and parameter file we could take a look, but this isn't enough information to reproduce the issue.
We do have a specific code for writing out SWIFT-compatible IC files, units and all: https://swiftsimio.readthedocs.io/en/latest/creating_initial_conditions/index.html
Hi, I generated cosmological dark-matter-only ICs for Swift using Python (h5py + numpy).
Specifically, I'm using Python 3.9.12 (Miniconda + gcc 7.5.0), numpy 1.22.4, and h5py 3.6.0.
I wrote out my ICs with an initial starting scale factor of 0.008, using the above libraries.
When I tried to run Swift (with debugging checks), I had the following output near the very start of the run:
I specified a_begin in the parameter file as 0.008.
This is a precision issue that can be avoided if I set a_begin = 0.07999999. I'm not sure why this is happening, but it should be reproducible.