Skip to content

Commit

Permalink
IOSS: Only do some field comparisons if in io_shell compare mode
Browse files Browse the repository at this point in the history
  • Loading branch information
gdsjaar committed Feb 22, 2024
1 parent 53f03da commit f5baf14
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/seacas/libraries/ioss/src/Ioss_Field.C
Original file line number Diff line number Diff line change
Expand Up @@ -318,20 +318,20 @@ bool Ioss::Field::equal_(const Ioss::Field &rhs, bool quiet) const
is_same = false;
}

if (this->get_suffices_uppercase() != rhs.get_suffices_uppercase()) {
if (!quiet) {
if (!quiet) {
if (this->get_suffices_uppercase() != rhs.get_suffices_uppercase()) {
fmt::print(Ioss::OUTPUT(), "\tFIELD suffices_uppercase mismatch ({} v. {})\n",
this->get_suffices_uppercase(), rhs.get_suffices_uppercase());
is_same = false;
}
is_same = false;
}

if (this->zero_copy_enabled() != rhs.zero_copy_enabled()) {
if (!quiet) {
if (!quiet) {
if (this->zero_copy_enabled() != rhs.zero_copy_enabled()) {
fmt::print(Ioss::OUTPUT(), "\tFIELD zero_copy_enabled mismatch ({} v. {})\n",
this->zero_copy_enabled(), rhs.zero_copy_enabled());
is_same = false;
}
is_same = false;
}

return is_same;
Expand Down

0 comments on commit f5baf14

Please sign in to comment.