Skip to content

OutOfBounds error despite periodic boundaries #1333

Answered by erikvansebille
MiriamSterl asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks for the question, @MiriamSterl. This could be because you are using AdvectionRK4 (see code below), which requires interpolation of the field at intermediate time steps
https://github.com/OceanParcels/parcels/blob/54ede99e63f97e14faca12de23b02d713ac0762d/parcels/application_kernels/advection.py#L10-L22
One solution would be to create your own Advection Kernel, based on the kernel above, but where checks are done when e.g., lat1, lat2 or lat3 are outside of the domain. Makes sense?

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@MiriamSterl
Comment options

MiriamSterl Mar 8, 2023
Collaborator Author

Answer selected by MiriamSterl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants