Use mdspan instead of Field for portability of codegen beyond Walberla
@bauer pointed out that C++23 wil have std::mdspan
, a non-owning multidimensional array view. A reference implementation that works with C++11 and higher is already available: https://github.com/kokkos/mdspan.
This could be used at the interface between Walberla and pystencils‘ generated code and would allow pystencils_walberla to be used with other (non-Walberla) software. Right now, that interface uses walberla::field::Field
.
Edited by Michael Kuron