pcms mdspan are currently defined with Kokkos::layout_right regardless of memory space. While this ensures layout consistency, it causes extra complexity and potential pitfalls when copying or creating Rank2View from a default Kokkos View. For now, a helper function is used to handle layout mismatches.
This design may be worth revisiting. One option is to enforce a uniform layout across all Kokkos Views in future development and input/output.
pcms
mdspanare currently defined withKokkos::layout_rightregardless of memory space. While this ensures layout consistency, it causes extra complexity and potential pitfalls when copying or creatingRank2Viewfrom a default Kokkos View. For now, a helper function is used to handle layout mismatches.This design may be worth revisiting. One option is to enforce a uniform layout across all Kokkos Views in future development and input/output.