Skip to content

Commit

Permalink
Merge Pull Request #13438 from gsjaardema/Trilinos/SEACAS-fix-shadow-…
Browse files Browse the repository at this point in the history
…variable-2

Automatically Merged using Trilinos Pull Request AutoTester
PR Title: b'IOSS: Fix shadow variable in region'
PR Author: gsjaardema
  • Loading branch information
trilinos-autotester committed Sep 10, 2024
2 parents 10d9685 + 2ae26f6 commit dbf8aaa
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions packages/seacas/libraries/ioss/src/Ioss_Region.C
Original file line number Diff line number Diff line change
Expand Up @@ -3040,17 +3040,17 @@ namespace Ioss {

void Region::update_dynamic_topology()
{
auto topologyObserver = get_mesh_modification_observer();
auto topology_observer = get_mesh_modification_observer();

bool has_output_observer = topologyObserver && !get_database()->is_input();
if (has_output_observer && topologyObserver->is_topology_modified()) {
if(topologyObserver->get_control_option() != FileControlOption::CONTROL_NONE) {
bool has_output_observer = topology_observer && !get_database()->is_input();
if (has_output_observer && topology_observer->is_topology_modified()) {
if(topology_observer->get_control_option() != FileControlOption::CONTROL_NONE) {
int steps = get_property("state_count").get_int();
start_new_output_database_entry(steps);

topologyObserver->define_model();
topologyObserver->write_model();
topologyObserver->define_transient();
topology_observer->define_model();
topology_observer->write_model();
topology_observer->define_transient();
}
topologyObserver->reset_topology_modification();
}
Expand Down

0 comments on commit dbf8aaa

Please sign in to comment.