PTsolvers / Chmy.jl

Finite differences and staggered grids on CPUs and GPUs
https://ptsolvers.github.io/Chmy.jl/
MIT License
16 stars 2 forks source link

Periodic boundary conditions #42

Open boriskaus opened 2 weeks ago

boriskaus commented 2 weeks ago

It would be great to be able to specify periodic boundary conditions

ranocha commented 2 weeks ago

I can only second that! I wanted to set up a simple prototype for a colleague who needs periodic BCs. I followed the tutorial and was stuck when trying to switch the BCs.

utkinis commented 2 weeks ago

Should be relatively simple to add, as there is already some groundwork in place. Periodicity is the property of the grid (not documented though since unfinished), and selecting which fields should be copied over will be specified through the exchange keyword on kernel launch or exchange! function, which now are only used for MPI exchange.