-
Notifications
You must be signed in to change notification settings - Fork 123
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
Simulation gets stuck on first timestep since I installed Parcels v3.0 #1461
Comments
Hi @martoconnh, It's quite difficult to diagnose a problem without all the information. Would you be able to share a minimal example of code that reproduces this issue and we can try and help from there? Cheers, |
Sure! Here it is my code. It simulates only 2 particles through 5 days. I still get the same problem even with this one.
Thanks! Martinho |
Hmm, it's strange that this code hangs. And what if you make these two changes to further simplify the code:
Does either of these make a difference? |
Hi ! I have just tried, but it does not make any difference. Maybe there is something else that changed from v2.4.2 to v3.0.0 that I'm not using propperly?? |
OK, good to know it's not either of these two options at #1461 (comment) Can you then try to add, immediately after you created the fieldset fieldset.computeTimeChunk(0,1) If your script then hangs on that command, it clearly is related to the loading in of the fieldset data from the NectCDF files. But that would be strange, because changes to the code for the fieldset creation were minimal going from 2.4.2 to 3.0.0. Still, good to check it before we dig deeper. |
Hi! Just tried that, but it does not hang on that command. The output is 3600 (don't know if that's useful somehow) |
OK, final test: what if you remove the |
Oh, that did actually work. So maybe I should store the simulation data in some other way?? |
Oh okay, just realized I should add this to the output_file line: I have tried this and now everything is working just fine. Maybe this has changed from v2.4.2 to v3.0? I looked it up in https://docs.oceanparcels.org/en/latest/examples/parcels_tutorial.html but i don't recall this extra argument in the output_file was necessary in the former version (maybe I'm wrong). Anyway, thank you so much for your help (and patience) !! Cheers, Martinho Rial |
Ah, good to know that adding |
Hi !
So I have just installed the latest parcels version, v3.0. Before that, I had been getting this warning with Parcels v2.4.2 :
<__array_function__ internals>:200: RuntimeWarning: invalid value encountered in cast
I know this has been fixed in the v3.0 (already asked in a discussion) , but now I am having a new issue. Even though I got that warning in v2.4.2, my simulation worked, but with this new version, my simulation gets stuck on the first time step. No errors nor warnings, the only thing that I am getting on screen is the following:
I don't know if this is a common issue, maybe I should change something in my code which is different from v2.4.2 to v3.0 ?
The text was updated successfully, but these errors were encountered: