|
core
Shared MPI block decomposition + asynchronous ghost-layer exchange (header-only C++20)
|
World-space placement of a block-local octree: fine coordinate (0,..,0) sits at origin, and one level-0 fine cell is h0 wide in every axis.
More...
#include <leaf_field.hpp>
Public Member Functions | |
| Real | leafSize (unsigned level) const |
World width of a leaf at level (covers 2^level fine cells). | |
| template<class Coord > | |
| Vec< Dim > | lowerCorner (const std::array< Coord, Dim > &lo) const |
| World coordinate of a leaf's lower corner, given its integer lower bound (fine units). | |
| template<class Coord > | |
| Vec< Dim > | center (const std::array< std::array< Coord, Dim >, 2 > &b) const |
| World coordinate of a leaf centre, from its integer bounds [lo,hi] (inclusive, fine units). | |
Public Attributes | |
| Vec< Dim > | origin {} |
| Real | h0 = 1.0 |
World-space placement of a block-local octree: fine coordinate (0,..,0) sits at origin, and one level-0 fine cell is h0 wide in every axis.
Definition at line 28 of file leaf_field.hpp.
|
inline |
World width of a leaf at level (covers 2^level fine cells).
Definition at line 33 of file leaf_field.hpp.
References peclet::core::amr::AmrGeometry< Dim >::h0.
|
inline |
World coordinate of a leaf's lower corner, given its integer lower bound (fine units).
Definition at line 37 of file leaf_field.hpp.
References peclet::core::amr::AmrGeometry< Dim >::h0, and peclet::core::amr::AmrGeometry< Dim >::origin.
|
inline |
World coordinate of a leaf centre, from its integer bounds [lo,hi] (inclusive, fine units).
Definition at line 46 of file leaf_field.hpp.
References peclet::core::amr::AmrGeometry< Dim >::h0, and peclet::core::amr::AmrGeometry< Dim >::origin.
| Vec<Dim> peclet::core::amr::AmrGeometry< Dim >::origin {} |
Definition at line 29 of file leaf_field.hpp.
Referenced by peclet::core::amr::AmrGeometry< Dim >::center(), peclet::core::amr::DistributedOctree< Dim, Bits >::localGeometry(), and peclet::core::amr::AmrGeometry< Dim >::lowerCorner().
| Real peclet::core::amr::AmrGeometry< Dim >::h0 = 1.0 |
Definition at line 30 of file leaf_field.hpp.
Referenced by peclet::core::amr::AmrGeometry< Dim >::center(), peclet::core::amr::AmrGeometry< Dim >::leafSize(), and peclet::core::amr::AmrGeometry< Dim >::lowerCorner().