From 5db1e4fe8dd64fbc12d117ba87b84330ddc562a1 Mon Sep 17 00:00:00 2001 From: Stan Moore Date: Thu, 7 May 2020 13:18:45 -0600 Subject: [PATCH] Initialize variables since Kokkos doesn't call setup_fields --- src/atom_vec.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/atom_vec.cpp b/src/atom_vec.cpp index 194cf246ce..6baeaeacc3 100644 --- a/src/atom_vec.cpp +++ b/src/atom_vec.cpp @@ -55,6 +55,9 @@ AtomVec::AtomVec(LAMMPS *lmp) : Pointers(lmp) threads = NULL; nthreads = comm->nthreads; + ngrow = ncopy = ncomm = ncomm_vel = nreverse = nborder = nborder_vel = 0; + nexchange = nrestart = ncreate = ndata_atom = ndata_vel = 0; + // peratom variables auto-included in corresponding child style fields string // these fields cannot be specified in the fields string