From b00743acb6898409dae3f8a6dc9c5eaf366a1705 Mon Sep 17 00:00:00 2001 From: Philip Sakievich Date: Fri, 8 Sep 2023 15:28:30 -0600 Subject: [PATCH] Debug problem converges --- src/Realm.C | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Realm.C b/src/Realm.C index 24e867060..cf2f2ae77 100644 --- a/src/Realm.C +++ b/src/Realm.C @@ -2562,7 +2562,7 @@ Realm::set_current_coordinates(stk::mesh::Part* targetPart) VectorFieldType* displacement = meta_data().get_field( stk::topology::NODE_RANK, "mesh_displacement"); - currentCoords->clear_sync_state(); + currentCoords->sync_to_host(); displacement->sync_to_host(); modelCoords->sync_to_host(); @@ -2584,6 +2584,7 @@ Realm::set_current_coordinates(stk::mesh::Part* targetPart) } } currentCoords->modify_on_host(); + currentCoords->sync_to_device(); } //--------------------------------------------------------------------------