Skip to content

Commit

Permalink
add missing sync to host (#1195)
Browse files Browse the repository at this point in the history
  • Loading branch information
ashesh2512 authored Jun 30, 2023
1 parent 923bc26 commit 23fad35
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Realm.C
Original file line number Diff line number Diff line change
Expand Up @@ -2642,6 +2642,8 @@ Realm::init_current_coordinates()
VectorFieldType* displacement = meta_data().get_field<VectorFieldType>(
stk::topology::NODE_RANK, "mesh_displacement");

modelCoords->sync_to_host();

stk::mesh::Selector s_all_nodes =
(meta_data().locally_owned_part() | meta_data().globally_shared_part()) &
stk::mesh::selectField(*currentCoords);
Expand Down

0 comments on commit 23fad35

Please sign in to comment.