Skip to content

Commit

Permalink
CONJOIN: Enable using single input file with no change sets
Browse files Browse the repository at this point in the history
  • Loading branch information
gdsjaar committed Jan 22, 2025
1 parent 9e7ad89 commit f339070
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions packages/seacas/applications/conjoin/CJ_ExodusFile.C
Original file line number Diff line number Diff line change
Expand Up @@ -129,13 +129,7 @@ bool Excn::ExodusFile::initialize(const SystemInterface &si)
}

int num_change_sets = ex_inquire_int(exoid, EX_INQ_NUM_CHILD_GROUPS);
if (num_change_sets <= 1) {
fmt::print(stderr,
"WARNING: File '{}' does not contain change sets and only a single file was "
"specified.\n\tNothing to be done. Exiting\n",
name);
return false;
}
if (num_change_sets > 1) {
usingChangeSets_ = true;

if (io_wrd_size < static_cast<int>(sizeof(float))) {
Expand Down Expand Up @@ -178,7 +172,8 @@ bool Excn::ExodusFile::initialize(const SystemInterface &si)
fmt::print("Part {}: '{}'\n", i, filenames_[i - 1]);
}
}
else {
}
if (!usingChangeSets_) {
// create exo names
filenames_.resize(si.inputFiles_.size());
fileids_.resize(si.inputFiles_.size(), -1);
Expand Down

0 comments on commit f339070

Please sign in to comment.