diff --git a/src/KOKKOS/fix_langevin_kokkos.cpp b/src/KOKKOS/fix_langevin_kokkos.cpp index 6ca8812f2e..c149ebda6a 100644 --- a/src/KOKKOS/fix_langevin_kokkos.cpp +++ b/src/KOKKOS/fix_langevin_kokkos.cpp @@ -153,6 +153,9 @@ void FixLangevinKokkos::setup(int vflag) auto rmass = atomKK->k_rmass.view(); auto mass = atomKK->k_mass.view(); auto type = atomKK->k_type.view(); + auto groupbit = this->groupbit; + auto gjfa = this->gjfa; + auto gjfsib = this->gjfsib; if (atom->rmass) { atomKK->sync(execution_space,V_MASK|F_MASK|MASK_MASK|RMASS_MASK); @@ -256,6 +259,7 @@ void FixLangevinKokkos::setup(int vflag) auto rmass = atomKK->k_rmass.view(); auto mass = atomKK->k_mass.view(); auto type = atomKK->k_type.view(); + auto groupbit = this->groupbit; k_lv.template sync(); auto l_lv = d_lv;