Skip to content

Commit

Permalink
Merge pull request #315 from jspanchu/fix_ignore_realn_fields_registry
Browse files Browse the repository at this point in the history
Avoid Real[N] in registry if ignoring such fields
  • Loading branch information
gsjaardema committed Jun 16, 2022
2 parents 9a83c74 + 933c6d8 commit 77f877b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/seacas/libraries/ioss/src/Ioss_VariableType.C
Expand Up @@ -186,6 +186,10 @@ namespace Ioss {
bool match = false;
for (const auto &vtype : registry()) {
auto *tst_ivt = vtype.second;
if (ignore_realn_fields && Ioss::Utils::substr_equal("Real", tst_ivt->name()))
{
continue;
}
if (tst_ivt->suffix_count() == static_cast<int>(size)) {
if (tst_ivt->match(suffices)) {
ivt = tst_ivt;
Expand Down

0 comments on commit 77f877b

Please sign in to comment.