Skip to content

Commit

Permalink
EXODIFF: Clean up change-set handling
Browse files Browse the repository at this point in the history
  • Loading branch information
gdsjaar committed Nov 18, 2024
1 parent f5a0a6d commit 73de68d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions packages/seacas/applications/exodiff/create_file.C
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,11 @@ namespace {
}

if (do_all_flag) {
// See if the names in `names` are from a previous change set iteration...
if (!names.empty() && x_list.empty()) {
names.clear();
tols.clear();
}
auto length_name = var_names1.size();
for (size_t n = 0; n < length_name; ++n) {
const std::string &name = var_names1[n];
Expand Down
4 changes: 2 additions & 2 deletions packages/seacas/applications/exodiff/exodiff.C
Original file line number Diff line number Diff line change
Expand Up @@ -321,8 +321,8 @@ namespace {
}
}
for (int i = 0; i < cs_cnt; i++) {
cs1.push_back(i);
cs2.push_back(i);
cs1.push_back(i+1);
cs2.push_back(i+1);
}
return std::make_pair(cs1, cs2);
}
Expand Down

0 comments on commit 73de68d

Please sign in to comment.