CliMA / OrthogonalSphericalShellGrids.jl

🌐 Orthogonal quadrilateral grids of thin spherical shells for ocean simulations with Oceananigans
https://clima.github.io/OrthogonalSphericalShellGrids.jl/stable/
MIT License
6 stars 1 forks source link

(0.2.0) Pencil decomposition for the TripolarGrid #32

Open simone-silvestri opened 1 month ago

simone-silvestri commented 1 month ago

This PR introduces pencil decomposition (in x and y) for the tripolar grid, contingent on having a even number of processors in the x-direction. Also fixes some bugs in the previously untested y-slab partitioning and adds tests for the distributed tripolar grid.

Tests have been added and everything seems to work nicely. However, this PR depends on PR https://github.com/CliMA/Oceananigans.jl/pull/3714, so I will work on the Oceananigans PR, then we can look at this one.

simone-silvestri commented 1 month ago

Apparently, using MPI in GitHub actions is trivial, we just need to launch the example with mpiexec(cmd -> ...)