must not allocate eatom and vatom when called from KOKKOS version (which sets copymode to 1)
This commit is contained in:
@ -128,7 +128,8 @@ void PairPACE::compute(int eflag, int vflag)
|
||||
double fij[3];
|
||||
int *ilist, *jlist, *numneigh, **firstneigh;
|
||||
|
||||
ev_init(eflag, vflag);
|
||||
if (copymode) ev_init(eflag, vflag, 0);
|
||||
else ev_init(eflag, vflag, 1);
|
||||
|
||||
double **x = atom->x;
|
||||
double **f = atom->f;
|
||||
|
||||
@ -131,7 +131,9 @@ void PairPACEExtrapolation::compute(int eflag, int vflag)
|
||||
double delx, dely, delz, evdwl;
|
||||
double fij[3];
|
||||
int *ilist, *jlist, *numneigh, **firstneigh;
|
||||
ev_init(eflag, vflag);
|
||||
|
||||
if (copymode) ev_init(eflag, vflag, 0);
|
||||
else ev_init(eflag, vflag, 1);
|
||||
|
||||
// downwards modified by YL
|
||||
|
||||
|
||||
Reference in New Issue
Block a user