Skip to content

Commit

Permalink
IOSS: Handle query timestep mode decomposition correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
gdsjaar committed Jan 16, 2024
1 parent c73043c commit 33ac356
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/seacas/libraries/ioss/src/exodus/Ioex_IOFactory.C
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ namespace Ioex {
// The "exodus" and "parallel_exodus" databases can both be accessed
// from this factory. The "parallel_exodus" is returned only if the following
// are true:
// 0. The db_usage is 'READ_MODEL' (not officially supported for READ_RESTART yet)
// 0. The db_usage is an input type.
// 1. Parallel run with >1 processor
// 2. There is a DECOMPOSITION_METHOD specified in 'properties'
// 3. The decomposition method is not "EXTERNAL"
Expand All @@ -69,13 +69,13 @@ namespace Ioex {

bool decompose = false;
if (proc_count > 1) {
if (db_usage == Ioss::READ_MODEL || db_usage == Ioss::READ_RESTART) {
if (is_input_event(db_usage)) {
std::string method = check_decomposition_property(properties, db_usage);
if (!method.empty() && method != "EXTERNAL") {
decompose = true;
}
}
else if (db_usage == Ioss::WRITE_RESULTS || db_usage == Ioss::WRITE_RESTART) {
else {
if (check_composition_property(properties, db_usage)) {
decompose = true;
}
Expand Down Expand Up @@ -123,7 +123,7 @@ namespace {
if (db_usage == Ioss::READ_MODEL) {
decomp_property = "MODEL_DECOMPOSITION_METHOD";
}
else if (db_usage == Ioss::READ_RESTART) {
else if (db_usage == Ioss::READ_RESTART || db_usage == Ioss::QUERY_TIMESTEPS_ONLY) {
decomp_property = "RESTART_DECOMPOSITION_METHOD";
}

Expand Down

0 comments on commit 33ac356

Please sign in to comment.