levelcartesianindexmapper.hh
Go to the documentation of this file.
53// Adapter Design Pattern: In this case, LevelCartesianIndexMapper uses the Object Adapter variant, where it holds an instance
54// (here, a std::unique_ptr) of CartesianIndexMapper, the wrapped type. The goal is to provide a standardized interface, allowing
55// incompatible functionality (such as Cartesian indexing in the context of refinement that may not be supported - yet -for all
66 explicit LevelCartesianIndexMapper(const Dune::CartesianIndexMapper<Grid>& cartesian_index_mapper)
67 : cartesianIndexMapper_{std::make_unique<Dune::CartesianIndexMapper<Grid>>(cartesian_index_mapper)}
94 void cartesianCoordinate(const int compressedElementIndex, std::array<int,dimension>& coords, int level) const
Interface class to access the logical Cartesian grid as used in industry standard simulator decks. Definition: common/CartesianIndexMapper.hpp:16 const std::array< int, 3 > & cartesianDimensions(int level) const Definition: levelcartesianindexmapper.hh:70 void cartesianCoordinate(const int compressedElementIndex, std::array< int, dimension > &coords, int level) const Definition: levelcartesianindexmapper.hh:94 LevelCartesianIndexMapper(const Dune::CartesianIndexMapper< Grid > &cartesian_index_mapper) Definition: levelcartesianindexmapper.hh:66 int cartesianSize(int level) const Definition: levelcartesianindexmapper.hh:76 int cartesianIndex(const int compressedElementIndex, const int level) const Definition: levelcartesianindexmapper.hh:88 int compressedSize(int level) const Definition: levelcartesianindexmapper.hh:82 Definition: common/LevelCartesianIndexMapper.hpp:45 static constexpr int dimension Definition: common/LevelCartesianIndexMapper.hpp:48 The namespace Dune is the main namespace for all Dune code. Definition: common/CartesianIndexMapper.hpp:10 STL namespace. |