Open auroralin0408 opened 2 weeks ago
It could indeed be related to the periodic option, which has probably not been tested recently. This could explain why the error does not occur immediately, but only when the first particles arrive at the periodic boundary.
Does it work without setting x_periodic to True?
Depending on the version of ROMS/CROCO, the horizontal grid may have a different size along the periodic dimension. What are the sizes of your outputs?
For x_periodic=True, it only occur the mentioned RuntimeErrors (8 times).
The horizontal size (x,y) of u is (513,514), v is (514,513).
But do you also have issues when using x_periodic=False?
Sorry, I just found my last comment wrong, "For x_periodic=False, it only occur the mentioned RuntimeErrors (8 times)." Errors occur when particles reach the x-periodic boundary.
My setting is
dfile = -1 , start_file = 528 , end_file = 360
, and thesimul.hc=5
. But RuntimeError occurs aftertime=509
, three times, and I don't know the reason why constant reading will suddenly gets wrong:ValueError occurs after
time=491
. I checked the results and it seems to be related to the x-periodic(=True) boudary, but I don't know how to fix it:Looking forward to any advices, thanks!