Commit a48f0a2e authored by Jakub Klinkovský's avatar Jakub Klinkovský
Browse files

meshes: tnl-decompose-mesh now works for polyhedral meshes

parent 961bf3ba
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -603,7 +603,7 @@ When the mesh is decomposed and the program is executed via MPI \cite{mpi:3.1},

The TNL library provides the tool \ic{tnl-decompose-mesh} which performs the partitioning using the METIS library \cite{karypis:1998fast}.
Similarly to the \ic{decomposePar} tool from the OpenFOAM framework \cite{openfoam:8.0}, \ic{tnl-decompose-mesh} is run sequentially as a separate process before the main computation.
It reads an input mesh representation from a file in the VTK, VTU or Netgen \todo{\ic{tnl-decompose-mesh} does not work for polyhedral meshes yet (there is an issue on Gitlab), otherwise it should work for FPMA too} format, and writes the decomposed mesh into the parallel format PVTU which comprises several files per each subdomain.
It reads an input mesh representation from a file in the VTK, VTU, Netgen, or FPMA format, and writes the decomposed mesh into the parallel format PVTU which comprises several files per each subdomain.

In addition to mesh partitioning, \ic{tnl-decompose-mesh} takes care of several features that are needed for our distributed mesh data structure.
Firstly, it assigns global indices for vertices and cells such that the \emph{owner} of each entity can be easily identified even for common entities on the interfaces between subdomains.