7#include "ddc_aliases.hpp"
17void expose_mesh_to_pdi(std::string pdi_name, IdxRange<Mesh> idx_range)
19 using Dim =
typename Mesh::continuous_dimension_type;
20 using FieldMem = host_t<FieldMem<Coord<Dim>, IdxRange<Mesh>>>;
21 using Idx = Idx<Mesh>;
23 FieldMem mesh_coord(idx_range);
24 for (Idx
const idx : idx_range) {
25 mesh_coord(idx) = ddc::coordinate(idx);
27 ddc::expose_to_pdi(pdi_name, mesh_coord);