git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@12410 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
@ -223,7 +223,7 @@ class Atom : protected Pointers {
|
|||||||
int add_custom(char *, int);
|
int add_custom(char *, int);
|
||||||
void remove_custom(int, 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 *);
|
void *extract(char *);
|
||||||
|
|
||||||
|
|||||||
@ -16,6 +16,7 @@
|
|||||||
#include "fix_addforce.h"
|
#include "fix_addforce.h"
|
||||||
#include "atom.h"
|
#include "atom.h"
|
||||||
#include "atom_masks.h"
|
#include "atom_masks.h"
|
||||||
|
#include "accelerator_kokkos.h"
|
||||||
#include "update.h"
|
#include "update.h"
|
||||||
#include "modify.h"
|
#include "modify.h"
|
||||||
#include "domain.h"
|
#include "domain.h"
|
||||||
@ -236,8 +237,9 @@ void FixAddForce::post_force(int vflag)
|
|||||||
|
|
||||||
if (update->ntimestep % nevery) return;
|
if (update->ntimestep % nevery) return;
|
||||||
|
|
||||||
atom->sync_modify((unsigned int) (F_MASK | MASK_MASK),
|
if (lmp->kokkos->kokkos_exists)
|
||||||
(unsigned int) F_MASK);
|
atom->sync_modify(Host, (unsigned int) (F_MASK | MASK_MASK),
|
||||||
|
(unsigned int) F_MASK);
|
||||||
|
|
||||||
// update region if necessary
|
// update region if necessary
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user