Simplify interface of loadDistributedMesh and distributeMesh
The loadDistributedMesh
and distributeMesh
functions were written specifically for the distributed grid, but they don't match the interface of the general distributed mesh.
- only the distributed mesh should be passed to
loadDistributedMesh
, the local mesh can be obtained withmesh.getLocalMesh()
(at least for the distributed mesh, distributed grid has an inverse relation with the local grid) -
distributeMesh
should not be used at all with a general distributed mesh (decomposition is done bytnl-decompose-mesh
, then it is loaded withPVTUReader
). Try to mergedistributeMesh
for grids with the overload ofloadDistributedMesh
for grids.