Closed bcaddy closed 1 year ago
Is this true in main as well?
I just checked main and it looks like the issue is there as well
Is this for hydro-only builds as well, or does it only show up with MHD on?
Related, is there any way to check whether this was true before the changes made to the Riemann ICs in the first MHD PR?
When concatenating datasets with the python script, h5py default behavior is to convert to 32-bit, so that when you look at 1-core vs 4-core runs, one can be off by that conversion error. Not sure if that's exactly what's happening here.
If you want you can try https://raw.githubusercontent.com/alwinm/chute/main/cat.py
cat.hydro(i,'','') will concatenate output #i in the current directory. The default behavior is to inherit the datatype of the original hdf5 rather than convert to float32, but the option to convert is there too.
Alternatively, you can edit lines like this in the cholla concatenation script:
fileout.create_dataset(key, (nx, ny, nz), chunks=(nxl,nyl,nzl), dtype=dtype)
This fixes the issue. I'll have a PR up shortly to make sure this doesn't happen again
While debugging the MHD code I found a weird error. The initial conditions of the single rank vs. four rank Sod test differ slightly. I'm not sure why or how to address it. The issue is present on both the
dev
and mydev-mhd-integrator
branches.The difference in values on the dev branch: (ignore the panel labeled null, nothing is intended to be plotted there)
This is the 1 rank minus the 4 rank initial conditions