DOLFIN-X
DOLFIN-X C++ interface
cells.h
1 // Copyright (C) 2019 Jorgen S. Dokken
2 //
3 // This file is part of DOLFINX (https://www.fenicsproject.org)
4 //
5 // SPDX-License-Identifier: LGPL-3.0-or-later
6 
7 #pragma once
8 
9 #include <Eigen/Dense>
10 #include <cstdint>
11 #include <dolfinx/mesh/cell_types.h>
12 #include <vector>
13 
14 namespace dolfinx::io::cells
15 {
20 
26 std::vector<std::uint8_t> vtk_to_dolfin(mesh::CellType type, int num_nodes);
27 
34 std::vector<std::uint8_t> dolfin_to_vtk(mesh::CellType type, int num_nodes);
35 
43 Eigen::Array<std::int64_t, Eigen::Dynamic, Eigen::Dynamic, Eigen::RowMajor>
44 permute_ordering(
45  const Eigen::Ref<const Eigen::Array<
46  std::int64_t, Eigen::Dynamic, Eigen::Dynamic, Eigen::RowMajor>>& cells,
47  const std::vector<std::uint8_t>& permutation);
48 
49 } // namespace dolfinx::io::cells
dolfinx::mesh::CellType
CellType
Cell type identifier.
Definition: cell_types.h:22