forked from lijiext/lammps
git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@12410 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
parent
31509b7528
commit
4a95e69111
|
@ -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 *);
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue