-
Notifications
You must be signed in to change notification settings - Fork 50
Grid Global Grid
Sam Reeve edited this page Sep 12, 2024
·
2 revisions
The global grid defines the indexing across the global mesh in order to later set up domain decomposition.
The figure below highlights that the global grid defines indexing information (red) and associated partitioning (grey) across the entire system:
auto global_mesh = Cabana::Grid::createUniformGlobalMesh(
global_low_corner, global_high_corner, global_num_cell );
std::array<bool, 2> is_dim_periodic = { true, true };
Cabana::Grid::DimBlockPartitioner<2> partitioner;
auto global_grid = Cabana::Grid::createGlobalGrid( MPI_COMM_WORLD, global_mesh,
is_dim_periodic, partitioner );
This is part of the Programming Guide series
Cabana - A Co-Designed Library for Exascale Particle Simulations