nextsimhub / nextsimdg

neXtSIM_DG : next generation sea-ice model with DG
https://nextsim-dg.readthedocs.io/en/latest/?badge=latest
Apache License 2.0
10 stars 13 forks source link

How to handle boundary conditions under MPI #627

Open TomMelt opened 3 months ago

TomMelt commented 3 months ago

Placeholder issue for discussion in Bergen

einola commented 2 months ago

Dynamics solves the problem on the whole domain, including the ghost cells. This involves "wasted computation", as the ghost cells are overwritten.

Open boundaries are handled by setting the values of the ghost cells outside the boundary to

Periodic boundaries are handled purely by copying values across between MPI ghost cells.

For the north-pole fold we need to flip the dg components. @winzerle will tell @TomMelt how to do this.