diff --git a/ntrfc/utils/filehandling/mesh.py b/ntrfc/utils/filehandling/mesh.py index 276300c82f788ee9581257b62ce881a7af076968..63e5ec134685d87b82a036b6cdb9c61d9afc0630 100644 --- a/ntrfc/utils/filehandling/mesh.py +++ b/ntrfc/utils/filehandling/mesh.py @@ -16,7 +16,12 @@ def load_mesh(path_to_mesh): mesh = pv.UnstructuredGrid(cgns) elif str(type(cgns)).find('vtkMultiBlockDataSet') != -1: multiBlockMesh = pv.MultiBlock(cgns) - mesh = multiBlockMesh.combine() + mesh = pv.UnstructuredGrid() + for domainId in range(multiBlockMesh.GetNumberOfBlocks()): + domain = multiBlockMesh.GetBlock(domainId) + for blockId in range(domain.GetNumberOfBlocks()): + block = domain.GetBlock(blockId) + mesh = mesh.merge(block) return mesh