Fix issues with Kokkos minimize

This commit is contained in:
Stan Moore
2023-05-03 10:37:41 -06:00
parent 8054923941
commit b560559b0a
6 changed files with 6 additions and 37 deletions

View File

@ -103,6 +103,11 @@ FixAddForce::FixAddForce(LAMMPS *lmp, int narg, char **arg) :
maxatom = 1;
memory->create(sforce, maxatom, 4, "addforce:sforce");
// KOKKOS package
datamask_read = X_MASK | F_MASK | IMAGE_MASK;
datamask_modify = F_MASK;
}
/* ---------------------------------------------------------------------- */
@ -121,8 +126,6 @@ FixAddForce::~FixAddForce()
int FixAddForce::setmask()
{
datamask_read = datamask_modify = 0;
int mask = 0;
mask |= POST_FORCE;
mask |= POST_FORCE_RESPA;
@ -238,9 +241,6 @@ void FixAddForce::post_force(int vflag)
v_init(vflag);
if (lmp->kokkos)
atom->sync_modify(Host, (unsigned int) (F_MASK | MASK_MASK), (unsigned int) F_MASK);
// update region if necessary
if (region) region->prematch();