Skip to content

Commit

Permalink
Clear sync state of fields for restart
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
psakievich authored Mar 6, 2024
1 parent 3f6fe1d commit 793f760
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Realm.C
Original file line number Diff line number Diff line change
Expand Up @@ -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<stk::mesh::FieldState>(i));
Expand Down

0 comments on commit 793f760

Please sign in to comment.