Skip to content
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

Unbeaching kernel having issues when using 2D simulations instead of 3D #61

Open
martoconnh opened this issue Oct 1, 2024 · 1 comment

Comments

@martoconnh
Copy link

It was caused due to the fact that the unbeaching kernel activates by default when the windage kernel is used. The problem seems to be in kernels.py, on line 552:

(vel_u, vel_v, vel_w) = fieldset.UVW[time, particle.depth + particle_ddepth, particle.lat + particle_dlat, particle.lon + particle_dlon] # noqa

If the fieldset is not defined in 3D, it does not have the attribute "UVW", it has "UV" instead, causing the simulation to crash. Hope this helps!

@michaeldenes
Copy link
Member

Thanks for raising this in our discussion @martoconnh. This is something I'll pickup soon to fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants