Interpolation error #1238
-
What can cause an InterpolationError during particle advection (with pset.execute)? I am using JITParticles and the source code says that JIT does not yet provide the context that creates such an exception, so I would be interested what possible causes could be, and how to troubleshoot this. I am using a doubly periodic domain, where the x and y coordinates run from -L/2 to +L/2, so they are not lat/lon coordinates. The InterpolationErrors always occur when a particle reaches one of the lateral boundaries. However, the velocity fields I used for creating the FieldSet are doubly periodic (checked), and I set |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
This tutorial notebook should help. The |
Beta Was this translation helpful? Give feedback.
This tutorial notebook should help. The
.add_periodic_halo()
function only copies a small portion of the fieldset to the other sides of the domain (documentation), you will need to implement the periodicity directly through the use of custom kernels.