Skip to content

Commit

Permalink
IOSS: clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
gdsjaar committed Jul 31, 2024
1 parent a749cc0 commit d4b7a7e
Show file tree
Hide file tree
Showing 10 changed files with 515 additions and 531 deletions.
4 changes: 2 additions & 2 deletions packages/seacas/libraries/ioss/src/Ioss_ChainGenerator.C
Original file line number Diff line number Diff line change
Expand Up @@ -195,8 +195,8 @@ namespace Ioss {
{
region.get_database()->progress(__func__);

debug = debug_level;
size_t numel = region.get_property("element_count").get_int();
debug = debug_level;
size_t numel = region.get_property("element_count").get_int();

// Determine which element block(s) are adjacent to the faceset specifying "lines"
// The `adjacent_blocks` contains the names of all element blocks that are adjacent to the
Expand Down
4 changes: 2 additions & 2 deletions packages/seacas/libraries/ioss/src/Ioss_Compare.C
Original file line number Diff line number Diff line change
Expand Up @@ -960,8 +960,8 @@ namespace {
continue;
}
if (property == "base_filename") {
// IGNORE the base_filename. This is generally the base portion of the filename; we don't care whether
// the filenames match.
// IGNORE the base_filename. This is generally the base portion of the filename; we don't
// care whether the filenames match.
continue;
}

Expand Down
5 changes: 4 additions & 1 deletion packages/seacas/libraries/ioss/src/Ioss_DatabaseIO.h
Original file line number Diff line number Diff line change
Expand Up @@ -781,7 +781,10 @@ namespace Ioss {
virtual bool open_root_group_nl() { return false; }
virtual bool open_group_nl(const std::string & /* group_name */) { return false; }
virtual bool create_subgroup_nl(const std::string & /* group_name */) { return false; }
virtual Ioss::NameList groups_describe_nl(bool /* return_full_names */) { return Ioss::NameList(); }
virtual Ioss::NameList groups_describe_nl(bool /* return_full_names */)
{
return Ioss::NameList();
}

virtual bool begin_nl(Ioss::State state) = 0;
virtual bool end_nl(Ioss::State state) = 0;
Expand Down
4 changes: 2 additions & 2 deletions packages/seacas/libraries/ioss/src/Ioss_Decomposition.C
Original file line number Diff line number Diff line change
Expand Up @@ -427,9 +427,9 @@ namespace Ioss {
m_method, fmt::group_digits(m_globalElementCount), m_processorCount);

if (!m_decompExtra.empty()) {
fmt::print(Ioss::OUTPUT(), "\tDecomposition extra data: '{}'.\n", m_decompExtra);
fmt::print(Ioss::OUTPUT(), "\tDecomposition extra data: '{}'.\n", m_decompExtra);
}

if ((size_t)m_processorCount > m_globalElementCount) {
fmt::print(Ioss::WarnOut(),
"Decomposing {} elements across {} mpi ranks will "
Expand Down
28 changes: 14 additions & 14 deletions packages/seacas/libraries/ioss/src/Ioss_DecompositionUtils.C
Original file line number Diff line number Diff line change
Expand Up @@ -337,9 +337,9 @@ namespace Ioss {
}

template <typename INT>
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)
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)
{

Ioss::chain_t<INT> element_chains =
Expand All @@ -362,15 +362,15 @@ namespace Ioss {
}

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);
const std::string &method,
const std::string &surface_list,
std::vector<int> &element_to_proc,
int dummy);
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,
int64_t dummy);
const std::string &method,
const std::string &surface_list,
std::vector<int> &element_to_proc,
int64_t dummy);

template <typename INT>
std::vector<float> DecompUtils::line_decomp_weights(const Ioss::chain_t<INT> &element_chains,
Expand Down Expand Up @@ -464,7 +464,7 @@ namespace Ioss {
std::vector<int> &elem_to_proc, int proc_count);

void DecompUtils::output_decomposition_statistics(const std::vector<int> &elem_to_proc,
int proc_count)
int proc_count)
{
// Output histogram of elements / rank...
std::vector<size_t> elem_per_rank(proc_count);
Expand All @@ -473,8 +473,8 @@ namespace Ioss {
}

size_t number_elements = elem_to_proc.size();
size_t proc_width = Ioss::Utils::number_width(proc_count, false);
size_t work_width = Ioss::Utils::number_width(number_elements, true);
size_t proc_width = Ioss::Utils::number_width(proc_count, false);
size_t work_width = Ioss::Utils::number_width(number_elements, true);

auto min_work = *std::min_element(elem_per_rank.begin(), elem_per_rank.end());
auto max_work = *std::max_element(elem_per_rank.begin(), elem_per_rank.end());
Expand Down
Loading

0 comments on commit d4b7a7e

Please sign in to comment.