Prevent error when Kokkos debug mode turned on

This commit is contained in:
Stan Moore
2018-07-10 19:49:41 -06:00
parent 687a4427da
commit c83b5ec226

View File

@ -585,6 +585,9 @@ void VerletKokkos::force_clear()
{
if (external_force_clear) return;
atomKK->k_f.modified_host() = 0; // ignore host forces/torques since device views
atomKK->k_torque.modified_host() = 0; // will be cleared below
// clear force on all particles
// if either newton flag is set, also include ghosts
// when using threads always clear all forces.