From 793f7600c2d083d629c84e8f40927445beef3961 Mon Sep 17 00:00:00 2001 From: psakievich Date: Wed, 6 Mar 2024 08:48:02 -0700 Subject: [PATCH] Clear sync state of fields for restart Sync issues are arising for fields that have been messed with prior to the `populate_restart` call. For restart, we are just reading from file so sync state should be clear when reading. --- src/Realm.C | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Realm.C b/src/Realm.C index f96f62fbd..fd5f32b73 100644 --- a/src/Realm.C +++ b/src/Realm.C @@ -3423,7 +3423,7 @@ Realm::populate_restart(double& timeStepNm1, int& timeStepCount) auto* field = stk::mesh::get_field_by_name(fname, meta_data()); if (field == nullptr) continue; - + fld->clear_sync_state(); const unsigned numStates = field->number_of_states(); for (unsigned i = 0; i < numStates; ++i) { auto* fld = field->field_state(static_cast(i));