git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@12410 f3b2605a-c512-4ea7-a41b-209d697bcdaa

This commit is contained in:
sjplimp 2014-09-05 15:27:05 +00:00
parent 31509b7528
commit 4a95e69111
2 changed files with 5 additions and 3 deletions

View File

@ -223,7 +223,7 @@ class Atom : protected Pointers {
int add_custom(char *, int);
void remove_custom(int, int);
virtual void sync_modify(unsigned int, unsigned int) {}
virtual void sync_modify(ExecutionSpace, unsigned int, unsigned int) {}
void *extract(char *);

View File

@ -16,6 +16,7 @@
#include "fix_addforce.h"
#include "atom.h"
#include "atom_masks.h"
#include "accelerator_kokkos.h"
#include "update.h"
#include "modify.h"
#include "domain.h"
@ -236,8 +237,9 @@ void FixAddForce::post_force(int vflag)
if (update->ntimestep % nevery) return;
atom->sync_modify((unsigned int) (F_MASK | MASK_MASK),
(unsigned int) F_MASK);
if (lmp->kokkos->kokkos_exists)
atom->sync_modify(Host, (unsigned int) (F_MASK | MASK_MASK),
(unsigned int) F_MASK);
// update region if necessary