Skip to content

Commit 0825543

Browse files
committed
CONJOIN: Use if initializers correctly
1 parent 4781c2e commit 0825543

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/seacas/applications/conjoin/CJ_ExodusFile.C

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ bool Excn::ExodusFile::initialize(const SystemInterface &si)
125125
return false;
126126
}
127127

128-
if (auto num_change_sets = ex_inquire_int(exoid, EX_INQ_NUM_CHILD_GROUPS) > 1) {
128+
if (auto num_change_sets = ex_inquire_int(exoid, EX_INQ_NUM_CHILD_GROUPS); num_change_sets > 1) {
129129
usingChangeSets_ = true;
130130

131131
if (io_wrd_size < static_cast<int>(sizeof(float))) {
@@ -212,7 +212,7 @@ bool Excn::ExodusFile::initialize(const SystemInterface &si)
212212
fmt::print(stderr, "ERROR: Cannot open file '{}'\n", filenames_[p]);
213213
return false;
214214
}
215-
if (auto num_change_sets = ex_inquire_int(fileids_[p], EX_INQ_NUM_CHILD_GROUPS) > 1) {
215+
if (auto num_change_sets = ex_inquire_int(fileids_[p], EX_INQ_NUM_CHILD_GROUPS); num_change_sets > 1) {
216216
fmt::print(stderr,
217217
"ERROR: Cannot (yet) handle multiple input files containing change "
218218
"sets.\n\tFile '{}' contains {} change sets.\n",

0 commit comments

Comments
 (0)