Debian Codegraph @

src/atlas/grid/CubedSphereGrid2.cc

raw
1 #include "atlas/grid/CubedSphereGrid2.h"
2 #include "atlas/grid/detail/grid/CubedSphere2.h"
3
4 namespace atlas {
5
6 inline const CubedSphereGrid2::grid_t* cubedsphere_grid2(const Grid::Implementation* grid) {
7 return dynamic_cast<const CubedSphereGrid2::grid_t*>(grid);
8 }
9
10 CubedSphereGrid2::CubedSphereGrid2(idx_t resolution):
11 Grid(new grid::detail::grid::CubedSphere2(resolution)), grid_(cubedsphere_grid2(get())) {}
12
13 CubedSphereGrid2::CubedSphereGrid2(const Grid& grid):
14 Grid(grid), grid_(cubedsphere_grid2(get())) {}
15
16 CubedSphereGrid2::CubedSphereGrid2(idx_t resolution, Projection projection):
17 Grid(new grid::detail::grid::CubedSphere2(resolution, projection)), grid_(cubedsphere_grid2(get())) {}
18
19 } // namespace atlas