From 17e5655c034b000245d3dc2db9e516d2ffe02acf Mon Sep 17 00:00:00 2001
From: Thomas Fischer <thomas.fischer@ufz.de>
Date: Wed, 21 Jun 2017 15:02:43 +0200
Subject: [PATCH] [A/U/MP] Fix warning in NodeWiseMeshPartitioner.
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Fix warning: unused parameter ‘is_mixed_high_order_linear_elems’
---
 .../PartitionMesh/NodeWiseMeshPartitioner.cpp                | 5 ++---
 .../ModelPreparation/PartitionMesh/NodeWiseMeshPartitioner.h | 3 +--
 2 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/Applications/Utils/ModelPreparation/PartitionMesh/NodeWiseMeshPartitioner.cpp b/Applications/Utils/ModelPreparation/PartitionMesh/NodeWiseMeshPartitioner.cpp
index 1aaa26808a8..2bcaa08aeed 100644
--- a/Applications/Utils/ModelPreparation/PartitionMesh/NodeWiseMeshPartitioner.cpp
+++ b/Applications/Utils/ModelPreparation/PartitionMesh/NodeWiseMeshPartitioner.cpp
@@ -103,8 +103,7 @@ void NodeWiseMeshPartitioner::findNonGhostNodesInPartition(
         partition.number_of_non_ghost_base_nodes + extra_nodes.size();
 }
 
-void NodeWiseMeshPartitioner::findElementsInPartition(
-    std::size_t const part_id, const bool is_mixed_high_order_linear_elems)
+void NodeWiseMeshPartitioner::findElementsInPartition(std::size_t const part_id)
 {
     auto& partition = _partitions[part_id];
     std::vector<MeshLib::Element*> const& elements = _mesh->getElements();
@@ -193,7 +192,7 @@ void NodeWiseMeshPartitioner::processPartition(std::size_t const part_id,
     findNonGhostNodesInPartition(part_id, is_mixed_high_order_linear_elems,
                                  extra_nodes);
 
-    findElementsInPartition(part_id, is_mixed_high_order_linear_elems);
+    findElementsInPartition(part_id);
     findGhostNodesInPartition(part_id, is_mixed_high_order_linear_elems,
                               extra_nodes);
     auto& partition = _partitions[part_id];
diff --git a/Applications/Utils/ModelPreparation/PartitionMesh/NodeWiseMeshPartitioner.h b/Applications/Utils/ModelPreparation/PartitionMesh/NodeWiseMeshPartitioner.h
index 5b5f8fbe0ba..23023d5bf5b 100644
--- a/Applications/Utils/ModelPreparation/PartitionMesh/NodeWiseMeshPartitioner.h
+++ b/Applications/Utils/ModelPreparation/PartitionMesh/NodeWiseMeshPartitioner.h
@@ -146,8 +146,7 @@ private:
     /// fills vector partition.regular_elements
     /// 2 find ghost elements belonging to the partition part_id
     /// fills vector partition.ghost_elements
-    void findElementsInPartition(std::size_t const part_id,
-                                 const bool is_mixed_high_order_linear_elems);
+    void findElementsInPartition(std::size_t const part_id);
 
     /// Prerequisite: the ghost elements has to be found (using
     /// findElementsInPartition).
-- 
GitLab