-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Redistribute can make incompatible files if nxpe not provided #102
Comments
Hi, I'm also seeing the error @mikekryjak did you see any other potential causes of variables being incompatible with Field3D? Thanks |
Hi @davedavemckay, sadly I think my issue was due to |
Hi @mikekryjak - no worries. They do seem to correctly split, in that I see 32 .nc files and loading them in with |
@davedavemckay what I was going to do to diagnose my issue further was to open each dataset individually and check its shape, and then cross-check this against what would be expected from the BOUT++ algorithm for all of them. |
Good idea - I'm just opening *.nc, so I'm looking at the aggregated shape. |
It looks like @davedavemckay's issue is due to the time dimension. If the restart files are really 4D, that sounds like a real bug. For @mikekryjak issue, I think it would be best if BOUT++ would throw better error messages. |
@mikekryjak do you mind checking whether the current next version of BOUT++ still has this unhelpful error message? Also, why do you provide nxpe? Generally, the choice of BOUT++ should be good for field-aligned grids ... |
@dschwoerer sorry I haven't got to this yet, I'm working against a deadline on a non-BOUT++ related paper at the moment. I will get to it. |
Performing a
redistribute
without providing annxpe
fails in Hermes-3 with the following message, which took me quite a bit of time to work back from:Since not providing a
nxpe
results in an automatic choice as the below comment, I think the failure is because the algorithm generatednxpe
was not the same as what I have in the input file.boutdata/boutdata/restart.py
Lines 559 to 563 in 908a4c2
My suggestion for a fix is to print a message whenever
nxpe
is not provided:Alternatively we could parse the input file and check whether
nxpe
is set there. If it is and it is not provided toredistribute
, we could raise anException
. Or we could simply read thenxpe
from the input file and pass it toredistribute
.Let me know what you think.
The text was updated successfully, but these errors were encountered: