From ed62070a54ead73f851329a507d6613653626279 Mon Sep 17 00:00:00 2001 From: Tolu Okusanya Date: Thu, 19 Dec 2024 14:59:32 -0700 Subject: [PATCH] Minor DTIO update to return correct values for stateCount --- packages/seacas/libraries/ioss/src/Ioss_Region.C | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/seacas/libraries/ioss/src/Ioss_Region.C b/packages/seacas/libraries/ioss/src/Ioss_Region.C index c6327ecf98..645259d93c 100644 --- a/packages/seacas/libraries/ioss/src/Ioss_Region.C +++ b/packages/seacas/libraries/ioss/src/Ioss_Region.C @@ -909,6 +909,11 @@ namespace Ioss { } } + if(get_state() == STATE_TRANSIENT) { + // Makes sure we return proper stateCount in case of dynamic topology changes + update_dynamic_topology(); + } + if (get_database()->is_input() || get_database()->usage() == WRITE_RESULTS || get_database()->usage() == WRITE_RESTART) { stateTimes.push_back(time);