Skip to content

Commit

Permalink
IOSS: Eliminate unused variable warning
Browse files Browse the repository at this point in the history
  • Loading branch information
gdsjaar committed Jul 17, 2024
1 parent 3e6500f commit 56d8daa
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 10 deletions.
8 changes: 3 additions & 5 deletions packages/seacas/libraries/ioss/src/Ioss_DecompositionUtils.C
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ namespace Ioss {
}

template <typename INT>
int DecompUtils::line_decompose(Region &region, size_t num_ranks, const std::string &method,
void DecompUtils::line_decompose(Region &region, size_t num_ranks, const std::string &method,
const std::string &surface_list,
std::vector<int> &element_to_proc, INT dummy)
{
Expand All @@ -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 &region, size_t num_ranks,
template IOSS_EXPORT void DecompUtils::line_decompose(Region &region, size_t num_ranks,
const std::string &method,
const std::string &surface_list,
std::vector<int> &element_to_proc,
int dummy);
template IOSS_EXPORT int DecompUtils::line_decompose(Region &region, size_t num_ranks,
template IOSS_EXPORT void DecompUtils::line_decompose(Region &region, size_t num_ranks,
const std::string &method,
const std::string &surface_list,
std::vector<int> &element_to_proc,
Expand Down
8 changes: 4 additions & 4 deletions packages/seacas/libraries/ioss/src/Ioss_DecompositionUtils.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,16 @@ namespace Ioss {
std::vector<int> &element_to_proc, int proc_count);

static void output_decomposition_statistics(const std::vector<int> &element_to_proc,
int proc_count);
int proc_count);

template <typename INT>
static std::vector<float> line_decomp_weights(const Ioss::chain_t<INT> &element_chains,
size_t element_count);

template <typename INT>
static int line_decompose(Region &region, size_t num_ranks, const std::string &method,
const std::string &surface_list, std::vector<int> &element_to_proc,
INT dummy);
static void line_decompose(Region &region, size_t num_ranks, const std::string &method,
const std::string &surface_list, std::vector<int> &element_to_proc,
INT dummy);

template <typename INT>
static void decompose_zoltan(const Ioss::Region &region, int ranks, const std::string &method,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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));

Expand Down

0 comments on commit 56d8daa

Please sign in to comment.