# Circular array in Julia

**URL:** <https://discourse.julialang.org/t/circular-array-in-julia/25588>\
**Category:** Geo\
**Created:** [June 24, 2019, 12:51am UTC](https://discourse.julialang.org/t/circular-array-in-julia/25588 "2019-06-24T00:51:59Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![longemen3000](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/longemen3000/32/7298_2.png) [@longemen3000](https://discourse.julialang.org/u/longemen3000)\
**Post date:** [June 24, 2019, 2:34am UTC](https://discourse.julialang.org/t/circular-array-in-julia/25588/3 "2019-06-24T02:34:15Z")

</div>

> [@udistr](#):
>
> would like to define a more complex grid topology so simple solution like adding the reminder operator:

Also, related post from discourse can help:

> [@Arrays with periodic boundaries](https://discourse.julialang.org/t/arrays-with-periodic-boundaries/4015/4):
>
> If you’re working with e.g. finite-difference approximations and similar lattice-based computations, often it is more flexible to use e.g. “ghost elements” (also called “ghost points”, “ghost cells”, “overlap regions”, “ghost zones”, …): you have an extra array element at each edge of the array that you update with whatever boundary condition you want as needed (e.g. at each time step). The motivation here is: For typical lattice-based simulations, you only need to access elements adjacent …

---

_[View the full topic](https://discourse.julialang.org/t/circular-array-in-julia/25588)._
