From 56d8daa83edca8ba76e579cd092e9fb5589d6abe Mon Sep 17 00:00:00 2001 From: Greg Sjaardema Date: Wed, 17 Jul 2024 13:20:59 -0600 Subject: [PATCH] IOSS: Eliminate unused variable warning --- .../seacas/libraries/ioss/src/Ioss_DecompositionUtils.C | 8 +++----- .../seacas/libraries/ioss/src/Ioss_DecompositionUtils.h | 8 ++++---- .../libraries/ioss/src/exodus/Ioex_DecompositionData.C | 2 +- 3 files changed, 8 insertions(+), 10 deletions(-) diff --git a/packages/seacas/libraries/ioss/src/Ioss_DecompositionUtils.C b/packages/seacas/libraries/ioss/src/Ioss_DecompositionUtils.C index bec6473e01..e71168c72e 100644 --- a/packages/seacas/libraries/ioss/src/Ioss_DecompositionUtils.C +++ b/packages/seacas/libraries/ioss/src/Ioss_DecompositionUtils.C @@ -337,7 +337,7 @@ namespace Ioss { } template - int DecompUtils::line_decompose(Region ®ion, size_t num_ranks, const std::string &method, + void DecompUtils::line_decompose(Region ®ion, size_t num_ranks, const std::string &method, const std::string &surface_list, std::vector &element_to_proc, INT dummy) { @@ -359,16 +359,14 @@ namespace Ioss { // Make sure all elements on a chain are on the same processor rank... line_decomp_modify(element_chains, element_to_proc, num_ranks); - - return 1; } - template IOSS_EXPORT int DecompUtils::line_decompose(Region ®ion, size_t num_ranks, + template IOSS_EXPORT void DecompUtils::line_decompose(Region ®ion, size_t num_ranks, const std::string &method, const std::string &surface_list, std::vector &element_to_proc, int dummy); - template IOSS_EXPORT int DecompUtils::line_decompose(Region ®ion, size_t num_ranks, + template IOSS_EXPORT void DecompUtils::line_decompose(Region ®ion, size_t num_ranks, const std::string &method, const std::string &surface_list, std::vector &element_to_proc, diff --git a/packages/seacas/libraries/ioss/src/Ioss_DecompositionUtils.h b/packages/seacas/libraries/ioss/src/Ioss_DecompositionUtils.h index 30b1b35a2c..728f40f4ed 100644 --- a/packages/seacas/libraries/ioss/src/Ioss_DecompositionUtils.h +++ b/packages/seacas/libraries/ioss/src/Ioss_DecompositionUtils.h @@ -24,16 +24,16 @@ namespace Ioss { std::vector &element_to_proc, int proc_count); static void output_decomposition_statistics(const std::vector &element_to_proc, - int proc_count); + int proc_count); template static std::vector line_decomp_weights(const Ioss::chain_t &element_chains, size_t element_count); template - static int line_decompose(Region ®ion, size_t num_ranks, const std::string &method, - const std::string &surface_list, std::vector &element_to_proc, - INT dummy); + static void line_decompose(Region ®ion, size_t num_ranks, const std::string &method, + const std::string &surface_list, std::vector &element_to_proc, + INT dummy); template static void decompose_zoltan(const Ioss::Region ®ion, int ranks, const std::string &method, diff --git a/packages/seacas/libraries/ioss/src/exodus/Ioex_DecompositionData.C b/packages/seacas/libraries/ioss/src/exodus/Ioex_DecompositionData.C index ee5a8b68bd..5f2c54f2f0 100644 --- a/packages/seacas/libraries/ioss/src/exodus/Ioex_DecompositionData.C +++ b/packages/seacas/libraries/ioss/src/exodus/Ioex_DecompositionData.C @@ -291,7 +291,7 @@ namespace Ioex { "exodus", filename, Ioss::READ_RESTART, Ioss::ParallelUtils::comm_self(), properties); Ioss::Region region(dbi, "line_decomp_region"); - int status = Ioss::DecompUtils::line_decompose( + Ioss::DecompUtils::line_decompose( region, m_processorCount, m_decomposition.m_method, m_decomposition.m_decompExtra, element_to_proc_global, INT(0));