Cabana 0.8.0-dev
 
Loading...
Searching...
No Matches
Cabana_Grid_SparseLocalGrid.hpp File Reference

Sparse Local grid and related implementations. More...

#include <Cabana_Grid_GlobalGrid.hpp>
#include <Cabana_Grid_IndexSpace.hpp>
#include <Cabana_Grid_SparseIndexSpace.hpp>
#include <Cabana_Grid_Types.hpp>
#include <array>
#include <vector>
#include <Cabana_Grid_SparseLocalGrid_impl.hpp>
Include dependency graph for Cabana_Grid_SparseLocalGrid.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Cabana::Grid::Experimental::LocalGrid< SparseMesh< Scalar, NumSpaceDim > >
 Local logical grid specialized for sparse grid. More...
 

Namespaces

namespace  Cabana
 Core: particle data structures and algorithms.
 

Functions

template<class MeshType>
std::shared_ptr< LocalGrid< MeshType > > Cabana::Grid::Experimental::createSparseLocalGrid (const std::shared_ptr< GlobalGrid< MeshType > > &global_grid, const int halo_cell_width, const int cell_num_per_tile_dim)
 Create a local grid.
 

Detailed Description

Sparse Local grid and related implementations.

Function Documentation

◆ createSparseLocalGrid()

template<class MeshType>
std::shared_ptr< LocalGrid< MeshType > > Cabana::Grid::Experimental::createSparseLocalGrid ( const std::shared_ptr< GlobalGrid< MeshType > > & global_grid,
const int halo_cell_width,
const int cell_num_per_tile_dim )

Create a local grid.

Parameters
global_gridThe global grid from which the local grid will be constructed.
halo_cell_widthThe number of halo cells surrounding the locally owned cells.
cell_num_per_tile_dimThe number of local cells in each tile in each dimension.
Returns
Shared pointer to a LocalGrid.