Skip to content

Commit

Permalink
Update io_shell.C from groups to change sets
Browse files Browse the repository at this point in the history
  • Loading branch information
gsjaardema authored Oct 14, 2024
1 parent e289e04 commit ddf0161
Showing 1 changed file with 3 additions and 23 deletions.
26 changes: 3 additions & 23 deletions packages/seacas/libraries/ioss/src/main/io_shell.C
Original file line number Diff line number Diff line change
Expand Up @@ -259,15 +259,7 @@ namespace {
}

if (!interFace.groupName.empty()) {
bool success = dbi->open_root_group();
if (!success) {
if (rank == 0) {
fmt::print(stderr, "ERROR: Unable to open root group in file '{}'\n", inpfile);
}
return;
}
success = dbi->open_internal_change_set(interFace.groupName);

bool success = dbi->open_internal_change_set(interFace.groupName);
if (!success) {
if (rank == 0) {
fmt::print(stderr, "ERROR: Unable to open group '{}' in file '{}'\n",
Expand Down Expand Up @@ -362,25 +354,13 @@ namespace {
if (interFace.inputFile.size() > 1) {
properties.add(Ioss::Property("APPEND_OUTPUT", Ioss::DB_APPEND_GROUP));

bool success = dbo->open_root_group();
if (!success) {
if (rank == 0) {
fmt::print(stderr, "ERROR: Unable to open root group in output file.\n");
}
return;
}
// Putting each file into its own output group...
// The name of the group will be the basename portion of the filename...
Ioss::FileInfo file(inpfile);
dbo->create_internal_change_set(file.tailname());

// Putting each file into its own output group...
// The name of the group will be the basename portion of the filename...
Ioss::FileInfo file(inpfile);
success = dbo->create_subgroup(file.tailname());
bool success = dbo->create_internal_change_set(file.tailname());
if (!success) {
if (rank == 0) {
fmt::print(stderr, "ERROR: Unable to create group {} in output file.\n",
fmt::print(stderr, "ERROR: Unable to create change set {} in output file.\n",
file.tailname());
}
return;
Expand Down

0 comments on commit ddf0161

Please sign in to comment.