Skip to content

Grid Global Grid

Sam Reeve edited this page Sep 15, 2023 · 1 revision

Overview

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: Global grid

Implementation

Cabana_Grid_GlobalGrid.hpp

Examples

Usage

    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

Clone this wiki locally