42namespace adios2_writer
45template <std::
floating_po
int T>
46using U = std::vector<std::variant<
47 std::shared_ptr<const fem::Function<float, T>>,
48 std::shared_ptr<const fem::Function<double, T>>,
49 std::shared_ptr<const fem::Function<std::complex<float>, T>>,
50 std::shared_ptr<const fem::Function<std::complex<double>, T>>>>;
63 ADIOS2Writer(MPI_Comm comm,
const std::filesystem::path& filename,
64 std::string tag, std::string engine);
86 std::unique_ptr<adios2::ADIOS> _adios;
87 std::unique_ptr<adios2::IO> _io;
88 std::unique_ptr<adios2::Engine> _engine;
102 const T& value, std::string var_name =
"",
103 std::string separator =
"/")
105 if (adios2::Attribute<T> attr = io.InquireAttribute<T>(name); attr)
108 return io.DefineAttribute<T>(name, value, var_name, separator);
115 const adios2::Dims& shape = adios2::Dims(),
116 const adios2::Dims& start = adios2::Dims(),
117 const adios2::Dims& count = adios2::Dims())
119 if (adios2::Variable v = io.InquireVariable<T>(name); v)
121 if (v.Count() != count and v.ShapeID() == adios2::ShapeID::LocalArray)
122 v.SetSelection({start, count});
126 return io.DefineVariable<T>(name, shape, start, count);
130template <std::
floating_po
int T>
131std::shared_ptr<const mesh::Mesh<T>>
136 auto mesh = std::visit([](
auto&& u) {
return u->function_space()->mesh(); },
146 if (mesh != u->function_space()->mesh())
148 throw std::runtime_error(
149 "ADIOS2Writer only supports functions sharing the same mesh");
167void initialize_mesh_attributes(adios2::IO& io,
mesh::CellType type);
173template <std::
floating_po
int T>
175 const typename adios2_writer::U<T>& u)
179 std::vector<std::array<std::string, 2>> u_data;
185 using U = std::decay_t<
decltype(u)>;
186 using X =
typename U::element_type;
187 if constexpr (std::is_floating_point_v<typename X::value_type>)
188 u_data.push_back({u->name,
"points"});
191 u_data.push_back({u->name + impl_adios2::field_ext[0],
"points"});
192 u_data.push_back({u->name + impl_adios2::field_ext[1],
"points"});
199 if (adios2::Attribute<std::string> assc
200 = io.InquireAttribute<std::string>(
"Fides_Variable_Associations");
203 std::vector<std::string> u_type;
204 std::transform(u_data.cbegin(), u_data.cend(), std::back_inserter(u_type),
205 [](
auto& f) { return f[1]; });
206 io.DefineAttribute<std::string>(
"Fides_Variable_Associations",
207 u_type.data(), u_type.size());
211 if (adios2::Attribute<std::string> fields
212 = io.InquireAttribute<std::string>(
"Fides_Variable_List");
215 std::vector<std::string> names;
216 std::transform(u_data.cbegin(), u_data.cend(), std::back_inserter(names),
217 [](
auto& f) { return f[0]; });
218 io.DefineAttribute<std::string>(
"Fides_Variable_List", names.data(),
225template <
typename T, std::
floating_po
int U>
228 auto V = u.function_space();
230 auto dofmap = V->dofmap();
232 auto mesh = V->mesh();
235 auto topology = mesh->topology();
240 assert(dofmap->element_dof_layout() == geometry.
cmap().create_dof_layout());
242 int tdim = topology->dim();
243 auto cell_map = topology->index_map(tdim);
245 std::int32_t num_cells = cell_map->size_local() + cell_map->num_ghosts();
247 auto vertex_map = topology->index_map(0);
249 std::uint32_t num_vertices
250 = vertex_map->size_local() + vertex_map->num_ghosts();
252 int rank = V->value_shape().size();
253 std::uint32_t num_components = std::pow(3, rank);
256 auto dofmap_x = geometry.
dofmap();
257 const int bs = dofmap->bs();
258 std::span<const T> u_data = u.x()->array();
259 std::vector<T> data(num_vertices * num_components, 0);
260 for (std::int32_t c = 0; c < num_cells; ++c)
262 auto dofs = dofmap->cell_dofs(c);
263 auto dofs_x = MDSPAN_IMPL_STANDARD_NAMESPACE::submdspan(
264 dofmap_x, c, MDSPAN_IMPL_STANDARD_NAMESPACE::full_extent);
265 assert(dofs.size() == dofs_x.size());
266 for (std::size_t i = 0; i < dofs.size(); ++i)
267 for (
int j = 0; j < bs; ++j)
268 data[num_components * dofs_x[i] + j] = u_data[bs * dofs[i] + j];
280template <
typename T, std::
floating_po
int U>
286 auto V = u.function_space();
288 auto dofmap = V->dofmap();
290 auto mesh = V->mesh();
292 const int gdim = mesh->geometry().dim();
295 int rank = V->value_shape().size();
296 bool need_padding = rank > 0 and gdim != 3 ? true :
false;
300 std::span<const T> data;
301 std::vector<T> _data;
302 auto eq_check = [](
auto x,
auto y) ->
bool
304 return x.extents() == y.extents()
305 and std::equal(x.data_handle(), x.data_handle() + x.size(),
309 if (!need_padding and eq_check(mesh->geometry().dofmap(), dofmap->map()))
310 data = u.x()->array();
313 _data = impl_fides::pack_function_data(u);
314 data = std::span<const T>(_data);
317 auto vertex_map = mesh->topology()->index_map(0);
319 std::uint32_t num_vertices
320 = vertex_map->size_local() + vertex_map->num_ghosts();
323 std::uint32_t num_components = std::pow(3, rank);
324 assert(data.size() % num_components == 0);
325 if constexpr (std::is_scalar_v<T>)
328 adios2::Variable local_output = impl_adios2::define_variable<T>(
329 io, u.name, {}, {}, {num_vertices, num_components});
332 engine.Put(local_output, data.data());
333 engine.PerformPuts();
338 using X =
typename T::value_type;
340 std::vector<X> data_real(data.size()), data_imag(data.size());
342 adios2::Variable local_output_r = impl_adios2::define_variable<X>(
343 io, u.name + impl_adios2::field_ext[0], {}, {},
344 {num_vertices, num_components});
345 std::transform(data.begin(), data.end(), data_real.begin(),
346 [](
auto x) -> X { return std::real(x); });
347 engine.Put(local_output_r, data_real.data());
349 adios2::Variable local_output_c = impl_adios2::define_variable<X>(
350 io, u.name + impl_adios2::field_ext[1], {}, {},
351 {num_vertices, num_components});
352 std::transform(data.begin(), data.end(), data_imag.begin(),
353 [](
auto x) -> X { return std::imag(x); });
354 engine.Put(local_output_c, data_imag.data());
355 engine.PerformPuts();
363template <std::
floating_po
int T>
368 auto topology = mesh.topology();
373 std::uint32_t num_vertices = x_map->size_local() + x_map->num_ghosts();
374 adios2::Variable local_geometry = impl_adios2::define_variable<T>(
375 io,
"points", {}, {}, {num_vertices, 3});
376 engine.Put(local_geometry, geometry.
x().data());
383 int tdim = topology->dim();
384 std::int32_t num_cells = topology->index_map(tdim)->size_local();
385 int num_nodes = geometry.
cmap().dim();
386 auto [cells, shape] = io::extract_vtk_connectivity(mesh.geometry().dofmap(),
387 topology->cell_type());
390 adios2::Variable local_topology = impl_adios2::define_variable<std::int64_t>(
391 io,
"connectivity", {}, {}, {std::size_t(num_cells * num_nodes)});
392 engine.Put(local_topology, cells.data());
393 engine.PerformPuts();
399enum class FidesMeshPolicy
409template <std::
floating_po
int T>
410class FidesWriter :
public ADIOS2Writer
421 FidesWriter(MPI_Comm comm,
const std::filesystem::path& filename,
422 std::shared_ptr<
const mesh::Mesh<T>> mesh,
423 std::string engine =
"BPFile")
424 : ADIOS2Writer(comm, filename,
"Fides mesh writer", engine),
425 _mesh_reuse_policy(FidesMeshPolicy::update), _mesh(mesh)
429 auto topology = mesh->topology();
431 mesh::CellType type = topology->cell_type();
432 if (mesh->geometry().cmap().dim() != mesh::cell_num_entities(type, 0))
433 throw std::runtime_error(
"Fides only supports lowest-order meshes.");
434 impl_fides::initialize_mesh_attributes(*_io, type);
450 FidesWriter(MPI_Comm comm,
const std::filesystem::path& filename,
451 const typename adios2_writer::U<T>& u, std::string engine,
452 const FidesMeshPolicy mesh_policy = FidesMeshPolicy::update)
453 : ADIOS2Writer(comm, filename,
"Fides function writer", engine),
454 _mesh_reuse_policy(mesh_policy),
458 throw std::runtime_error(
"FidesWriter fem::Function list is empty");
461 auto V0 = std::visit([](
auto& u) {
return u->function_space().get(); },
464 auto mesh = V0->mesh().get();
468 auto element0 = V0->element().get();
472 if (element0->is_mixed())
474 throw std::runtime_error(
475 "Mixed functions are not supported by FidesWriter");
480 if (!element0->interpolation_ident())
482 throw std::runtime_error(
"Only Lagrange functions are supported. "
483 "Interpolate Functions before output.");
487 if (element0->space_dimension() / element0->block_size() == 1)
489 throw std::runtime_error(
490 "Piecewise constants are not (yet) supported by FidesWriter");
494 mesh::CellType cell_type = mesh->topology()->cell_type();
495 int num_vertices_per_cell = mesh::cell_num_entities(cell_type, 0);
499 [V0, num_vertices_per_cell, element0](
auto&& u)
501 auto element = u->function_space()->element();
503 if (*element != *element0)
505 throw std::runtime_error(
"All functions in FidesWriter must have "
506 "the same element type");
509 = u->function_space()->dofmap()->element_dof_layout();
510 int num_vertex_dofs = dof_layout.num_entity_dofs(0);
511 int num_dofs = element->space_dimension() / element->block_size();
512 if (num_dofs != num_vertices_per_cell or num_vertex_dofs != 1)
514 throw std::runtime_error(
"Only first order Lagrange spaces are "
515 "supported by FidesWriter");
519 auto dmap0 = V0->dofmap()->map();
520 auto dmap = u->function_space()->dofmap()->map();
521 if (dmap0.size() != dmap.size()
522 or !std::equal(dmap0.data_handle(),
523 dmap0.data_handle() + dmap0.size(),
526 throw std::runtime_error(
527 "All functions must have the same dofmap for FideWriter.");
534 auto topology = mesh->topology();
536 mesh::CellType type = topology->cell_type();
537 if (mesh->geometry().cmap().dim() != mesh::cell_num_entities(type, 0))
538 throw std::runtime_error(
"Fides only supports lowest-order meshes.");
539 impl_fides::initialize_mesh_attributes(*_io, type);
540 impl_fides::initialize_function_attributes<T>(*_io, u);
553 FidesWriter(MPI_Comm comm,
const std::filesystem::path& filename,
554 const typename adios2_writer::U<T>& u,
555 const FidesMeshPolicy mesh_policy = FidesMeshPolicy::update)
556 : FidesWriter(comm, filename, u,
"BPFile", mesh_policy)
561 FidesWriter(
const FidesWriter&) =
delete;
564 FidesWriter(FidesWriter&& file) =
default;
567 ~FidesWriter() =
default;
570 FidesWriter& operator=(FidesWriter&&) =
default;
573 FidesWriter& operator=(
const FidesWriter&) =
delete;
581 _engine->BeginStep();
582 adios2::Variable var_step
583 = impl_adios2::define_variable<double>(*_io,
"step");
584 _engine->template Put<double>(var_step, t);
585 if (
auto v = _io->template InquireVariable<std::int64_t>(
"connectivity");
586 !v or _mesh_reuse_policy == FidesMeshPolicy::update)
588 impl_fides::write_mesh(*_io, *_engine, *_mesh);
593 std::visit([
this](
auto&& u)
594 { impl_fides::write_data(*_io, *_engine, *u); }, v);
603 FidesMeshPolicy _mesh_reuse_policy;
605 std::shared_ptr<const mesh::Mesh<T>> _mesh;
606 adios2_writer::U<T> _u;
615 const std::vector<std::string>& cell_data);
618template <std::
floating_po
int T>
619std::vector<std::string>
622 std::vector<std::string> names;
628 using U = std::decay_t<
decltype(u)>;
629 using X =
typename U::element_type;
630 if constexpr (std::is_floating_point_v<typename X::value_type>)
631 names.push_back(u->name);
634 names.push_back(u->name + impl_adios2::field_ext[0]);
635 names.push_back(u->name + impl_adios2::field_ext[1]);
653template <
typename T, std::
floating_po
int X>
659 std::span<const T> u_vector = u.x()->array();
660 int rank = u.function_space()->value_shape().size();
661 std::uint32_t num_comp = std::pow(3, rank);
662 std::shared_ptr<const fem::DofMap> dofmap = u.function_space()->dofmap();
664 std::shared_ptr<const common::IndexMap> index_map = dofmap->index_map;
666 int index_map_bs = dofmap->index_map_bs();
667 int dofmap_bs = dofmap->bs();
668 std::uint32_t num_dofs = index_map_bs
669 * (index_map->size_local() + index_map->num_ghosts())
671 if constexpr (std::is_scalar_v<T>)
674 std::vector<T> data(num_dofs * num_comp, 0);
675 for (std::size_t i = 0; i < num_dofs; ++i)
676 for (
int j = 0; j < index_map_bs; ++j)
677 data[i * num_comp + j] = u_vector[i * index_map_bs + j];
679 adios2::Variable output = impl_adios2::define_variable<T>(
680 io, u.name, {}, {}, {num_dofs, num_comp});
681 engine.Put(output, data.data(), adios2::Mode::Sync);
686 using U =
typename T::value_type;
688 std::vector<U> data(num_dofs * num_comp, 0);
689 for (std::size_t i = 0; i < num_dofs; ++i)
690 for (
int j = 0; j < index_map_bs; ++j)
691 data[i * num_comp + j] = std::real(u_vector[i * index_map_bs + j]);
693 adios2::Variable output_real = impl_adios2::define_variable<U>(
694 io, u.name + impl_adios2::field_ext[0], {}, {}, {num_dofs, num_comp});
695 engine.Put(output_real, data.data(), adios2::Mode::Sync);
697 std::fill(data.begin(), data.end(), 0);
698 for (std::size_t i = 0; i < num_dofs; ++i)
699 for (
int j = 0; j < index_map_bs; ++j)
700 data[i * num_comp + j] = std::imag(u_vector[i * index_map_bs + j]);
701 adios2::Variable output_imag = impl_adios2::define_variable<U>(
702 io, u.name + impl_adios2::field_ext[1], {}, {}, {num_dofs, num_comp});
703 engine.Put(output_imag, data.data(), adios2::Mode::Sync);
711template <std::
floating_po
int T>
716 auto topology = mesh.topology();
720 std::shared_ptr<const common::IndexMap> x_map = geometry.
index_map();
721 std::uint32_t num_vertices = x_map->size_local() + x_map->num_ghosts();
722 adios2::Variable local_geometry = impl_adios2::define_variable<T>(
723 io,
"geometry", {}, {}, {num_vertices, 3});
724 engine.Put(local_geometry, geometry.
x().data());
728 adios2::Variable vertices = impl_adios2::define_variable<std::uint32_t>(
729 io,
"NumberOfNodes", {adios2::LocalValueDim});
730 engine.Put<std::uint32_t>(vertices, num_vertices);
732 auto [vtkcells, shape]
733 = io::extract_vtk_connectivity(geometry.
dofmap(), topology->cell_type());
736 int tdim = topology->dim();
737 adios2::Variable cell_var = impl_adios2::define_variable<std::uint32_t>(
738 io,
"NumberOfCells", {adios2::LocalValueDim});
739 engine.Put<std::uint32_t>(cell_var, shape[0]);
740 adios2::Variable celltype_var
741 = impl_adios2::define_variable<std::uint32_t>(io,
"types");
742 engine.Put<std::uint32_t>(
743 celltype_var, cells::get_vtk_cell_type(topology->cell_type(), tdim));
748 std::vector<std::int64_t> cells(shape[0] * (shape[1] + 1), shape[1]);
749 for (std::size_t c = 0; c < shape[0]; ++c)
751 std::span vtkcell(vtkcells.data() + c * shape[1], shape[1]);
752 std::span cell(cells.data() + c * (shape[1] + 1), shape[1] + 1);
753 std::copy(vtkcell.begin(), vtkcell.end(), std::next(cell.begin()));
757 adios2::Variable local_topology = impl_adios2::define_variable<std::int64_t>(
758 io,
"connectivity", {}, {}, {shape[0], shape[1] + 1});
759 engine.Put(local_topology, cells.data());
762 adios2::Variable orig_id = impl_adios2::define_variable<std::int64_t>(
763 io,
"vtkOriginalPointIds", {}, {}, {num_vertices});
766 std::vector<std::uint8_t> x_ghost(num_vertices, 0);
767 std::fill(std::next(x_ghost.begin(), x_map->size_local()), x_ghost.end(), 1);
768 adios2::Variable ghost = impl_adios2::define_variable<std::uint8_t>(
769 io,
"vtkGhostType", {}, {}, {x_ghost.size()});
770 engine.Put(ghost, x_ghost.data());
771 engine.PerformPuts();
781template <std::
floating_po
int T>
782std::pair<std::vector<std::int64_t>, std::vector<std::uint8_t>>
786 auto mesh = V.mesh();
788 auto topology = mesh->topology();
790 int tdim = topology->dim();
793 auto [x, xshape, x_id, x_ghost, vtk, vtkshape] = io::vtk_mesh_from_space(V);
795 std::uint32_t num_dofs = xshape[0];
802 std::vector<std::int64_t> cells(vtkshape[0] * (vtkshape[1] + 1), vtkshape[1]);
805 for (std::size_t c = 0; c < vtkshape[0]; ++c)
807 std::span vtkcell(vtk.data() + c * vtkshape[1], vtkshape[1]);
808 std::span cell(cells.data() + c * (vtkshape[1] + 1), vtkshape[1] + 1);
809 std::copy(vtkcell.begin(), vtkcell.end(), std::next(cell.begin()));
814 adios2::Variable local_geometry
815 = impl_adios2::define_variable<T>(io,
"geometry", {}, {}, {num_dofs, 3});
816 adios2::Variable local_topology = impl_adios2::define_variable<std::int64_t>(
817 io,
"connectivity", {}, {}, {vtkshape[0], vtkshape[1] + 1});
818 adios2::Variable cell_type
819 = impl_adios2::define_variable<std::uint32_t>(io,
"types");
820 adios2::Variable vertices = impl_adios2::define_variable<std::uint32_t>(
821 io,
"NumberOfNodes", {adios2::LocalValueDim});
822 adios2::Variable elements = impl_adios2::define_variable<std::uint32_t>(
823 io,
"NumberOfEntities", {adios2::LocalValueDim});
826 engine.Put<std::uint32_t>(vertices, num_dofs);
827 engine.Put<std::uint32_t>(elements, vtkshape[0]);
828 engine.Put<std::uint32_t>(
829 cell_type, cells::get_vtk_cell_type(topology->cell_type(), tdim));
830 engine.Put(local_geometry, x.data());
831 engine.Put(local_topology, cells.data());
834 adios2::Variable orig_id = impl_adios2::define_variable<std::int64_t>(
835 io,
"vtkOriginalPointIds", {}, {}, {x_id.size()});
836 engine.Put(orig_id, x_id.data());
837 adios2::Variable ghost = impl_adios2::define_variable<std::uint8_t>(
838 io,
"vtkGhostType", {}, {}, {x_ghost.size()});
839 engine.Put(ghost, x_ghost.data());
841 engine.PerformPuts();
842 return {std::move(x_id), std::move(x_ghost)};
847enum class VTXMeshPolicy
859template <std::
floating_po
int T>
860class VTXWriter :
public ADIOS2Writer
874 VTXWriter(MPI_Comm comm,
const std::filesystem::path& filename,
875 std::shared_ptr<
const mesh::Mesh<T>> mesh,
876 std::string engine =
"BPFile")
877 : ADIOS2Writer(comm, filename,
"VTX mesh writer", engine), _mesh(mesh),
878 _mesh_reuse_policy(VTXMeshPolicy::update), _is_piecewise_constant(false)
881 std::string vtk_scheme = impl_vtx::create_vtk_schema({}, {}).str();
882 impl_adios2::define_attribute<std::string>(*_io,
"vtk.xml", vtk_scheme);
900 VTXWriter(MPI_Comm comm,
const std::filesystem::path& filename,
901 const typename adios2_writer::U<T>& u, std::string engine,
902 VTXMeshPolicy mesh_policy = VTXMeshPolicy::update)
903 : ADIOS2Writer(comm, filename,
"VTX function writer", engine),
905 _mesh_reuse_policy(mesh_policy), _u(u), _is_piecewise_constant(false)
908 throw std::runtime_error(
"VTXWriter fem::Function list is empty.");
911 auto V0 = std::visit([](
auto& u) {
return u->function_space().get(); },
914 auto element0 = V0->element().get();
918 if (element0->is_mixed())
920 throw std::runtime_error(
921 "Mixed functions are not supported by VTXWriter.");
927 if (!element0->interpolation_ident())
929 throw std::runtime_error(
930 "Only (discontinuous) Lagrange functions are "
931 "supported. Interpolate Functions before output.");
935 if (element0->space_dimension() / element0->block_size() == 1)
936 _is_piecewise_constant =
true;
944 auto element = u->function_space()->element();
946 if (*element != *V0->element().get())
948 throw std::runtime_error(
"All functions in VTXWriter must have "
949 "the same element type.");
952 auto dmap0 = V0->dofmap()->map();
953 auto dmap = u->function_space()->dofmap()->map();
954 if (dmap0.size() != dmap.size()
955 or !std::equal(dmap0.data_handle(),
956 dmap0.data_handle() + dmap0.size(),
959 throw std::runtime_error(
960 "All functions must have the same dofmap for VTXWriter.");
968 std::vector<std::string> names = impl_vtx::extract_function_names<T>(u);
969 std::string vtk_scheme;
970 if (_is_piecewise_constant)
971 vtk_scheme = impl_vtx::create_vtk_schema({}, names).str();
973 vtk_scheme = impl_vtx::create_vtk_schema(names, {}).str();
975 impl_adios2::define_attribute<std::string>(*_io,
"vtk.xml", vtk_scheme);
992 VTXWriter(MPI_Comm comm,
const std::filesystem::path& filename,
993 const typename adios2_writer::U<T>& u,
994 VTXMeshPolicy mesh_policy = VTXMeshPolicy::update)
995 : VTXWriter(comm, filename, u,
"BPFile", mesh_policy)
1000 VTXWriter(
const VTXWriter&) =
delete;
1003 VTXWriter(VTXWriter&& file) =
default;
1006 ~VTXWriter() =
default;
1009 VTXWriter& operator=(VTXWriter&&) =
default;
1012 VTXWriter& operator=(
const VTXWriter&) =
delete;
1016 void write(
double t)
1019 adios2::Variable var_step
1020 = impl_adios2::define_variable<double>(*_io,
"step");
1023 _engine->BeginStep();
1024 _engine->template Put<double>(var_step, t);
1027 if (_is_piecewise_constant or _u.empty())
1029 impl_vtx::vtx_write_mesh(*_io, *_engine, *_mesh);
1030 if (_is_piecewise_constant)
1034 std::visit([&](
auto& u)
1035 { impl_vtx::vtx_write_data(*_io, *_engine, *u); }, v);
1041 if (_mesh_reuse_policy == VTXMeshPolicy::update
1042 or !(_io->template InquireVariable<std::int64_t>(
"connectivity")))
1046 std::tie(_x_id, _x_ghost) = std::visit(
1049 return impl_vtx::vtx_write_mesh_from_space(*_io, *_engine,
1050 *u->function_space());
1057 adios2::Variable orig_id = impl_adios2::define_variable<std::int64_t>(
1058 *_io,
"vtkOriginalPointIds", {}, {}, {_x_id.size()});
1059 _engine->Put(orig_id, _x_id.data());
1060 adios2::Variable ghost = impl_adios2::define_variable<std::uint8_t>(
1061 *_io,
"vtkGhostType", {}, {}, {_x_ghost.size()});
1062 _engine->Put(ghost, _x_ghost.data());
1063 _engine->PerformPuts();
1069 std::visit([&](
auto& u)
1070 { impl_vtx::vtx_write_data(*_io, *_engine, *u); }, v);
1078 std::shared_ptr<const mesh::Mesh<T>> _mesh;
1079 adios2_writer::U<T> _u;
1083 VTXMeshPolicy _mesh_reuse_policy;
1084 std::vector<std::int64_t> _x_id;
1085 std::vector<std::uint8_t> _x_ghost;
1088 bool _is_piecewise_constant;
1092template <
typename U,
typename T>
1093VTXWriter(MPI_Comm comm, U filename, T mesh)
1094 -> VTXWriter<
typename std::remove_cvref<
1095 typename T::element_type>::type::geometry_type::value_type>;
1098template <
typename U,
typename T>
1099FidesWriter(MPI_Comm comm, U filename, T mesh)
1100 -> FidesWriter<
typename std::remove_cvref<
1101 typename T::element_type>::type::geometry_type::value_type>;