Skip to content

Commit

Permalink
SLICE: Fix order of file close and mpi_finalize
Browse files Browse the repository at this point in the history
  • Loading branch information
gdsjaar authored and tokusanya committed Jul 16, 2024
1 parent ea75dd9 commit 94a3d95
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions packages/seacas/applications/slice/Slice.C
Original file line number Diff line number Diff line change
Expand Up @@ -387,12 +387,11 @@ int main(int argc, char *argv[])
dbi->set_surface_split_type(Ioss::SPLIT_BY_DONT_SPLIT);
dbi->set_field_separator(0);

// NOTE: 'region' owns 'db' pointer at this time...
Ioss::Region region(dbi, "region_1");

region.output_summary(std::cerr, true);

try {
// NOTE: 'region' owns 'db' pointer at this time...
Ioss::Region region(dbi, "region_1");
region.output_summary(std::cerr, true);

if (dbi->int_byte_size_api() == 4) {
progress("4-byte slice");
slice(region, nem_file, interFace, 1);
Expand Down

0 comments on commit 94a3d95

Please sign in to comment.