File Layout.hpp

Parent directory (core/include)

Indexing utilities and layout strategies for structured 3‑D grids.

Definition (core/include/Layout.hpp)

Detailed Description

Provides layout::Indexer3D which maps ( i, j, k ) to linear addresses inside ghost‑padded arrays using SoA storage. The indexer is trivially inlinable and shared between C++ and Fortran kernels to guarantee identical addressing.

// 0‑based, ghosts included
inline std::size_t idx(int i,int j,int k) const noexcept {
return (std::size_t(k)*Ny_tot + j)*Nx_tot + i;
}

Alternative strategies (e.g., AoSoA) can be provided behind the same API.

Includes

  • cstddef

Included By

Namespaces

Classes