From 532adcb6ce3810e4c820b971a9c0f1fead6e769c Mon Sep 17 00:00:00 2001 From: Dmitri Naumov <github@naumov.de> Date: Mon, 13 Jul 2020 12:44:41 +0200 Subject: [PATCH] [App] Partmesh; Remove metis files only if created inside the partmesh tool. Keep them otherwise. --- .../Utils/ModelPreparation/PartitionMesh/PartitionMesh.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Applications/Utils/ModelPreparation/PartitionMesh/PartitionMesh.cpp b/Applications/Utils/ModelPreparation/PartitionMesh/PartitionMesh.cpp index 3dea53017a6..d87ea7ba256 100644 --- a/Applications/Utils/ModelPreparation/PartitionMesh/PartitionMesh.cpp +++ b/Applications/Utils/ModelPreparation/PartitionMesh/PartitionMesh.cpp @@ -174,7 +174,12 @@ int main(int argc, char* argv[]) readMetisData(input_file_name_wo_extension, num_partitions, mesh_partitioner.mesh().getNumberOfNodes())); - removeMetisPartitioningFiles(input_file_name_wo_extension, num_partitions); + // Remove metis partitioning files only if metis was run internally. + if (exe_metis_flag.getValue()) + { + removeMetisPartitioningFiles(input_file_name_wo_extension, + num_partitions); + } INFO("Partitioning the mesh in the node wise way ..."); bool const is_mixed_high_order_linear_elems = lh_elems_flag.getValue(); -- GitLab