Description Usage Arguments Value Examples
Find the neighbours around i, l in each direction It takes into account the ring structure of the space and the fact that the states has three components (h,u and r)
1 | sweq_neighbours(i, l, ndim)
|
i |
the reference position |
l |
the number of neighbours in each direction |
a list with x.ind the indices of the neighbours and center the position i for h, u and r (in the vector state) local.center are the indices of the centers in the local space (x.local) to apply the update
1 | sweq_neighbours(5, 2, 10)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.