Skip to content

Commit

Permalink
Debug problem converges
Browse files Browse the repository at this point in the history
  • Loading branch information
psakievich committed Sep 8, 2023
1 parent 2cf7820 commit b00743a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Realm.C
Original file line number Diff line number Diff line change
Expand Up @@ -2562,7 +2562,7 @@ Realm::set_current_coordinates(stk::mesh::Part* targetPart)
VectorFieldType* displacement = meta_data().get_field<VectorFieldType>(
stk::topology::NODE_RANK, "mesh_displacement");

currentCoords->clear_sync_state();
currentCoords->sync_to_host();
displacement->sync_to_host();
modelCoords->sync_to_host();

Expand All @@ -2584,6 +2584,7 @@ Realm::set_current_coordinates(stk::mesh::Part* targetPart)
}
}
currentCoords->modify_on_host();
currentCoords->sync_to_device();
}

//--------------------------------------------------------------------------
Expand Down

0 comments on commit b00743a

Please sign in to comment.