1 /* ---------------------------------------------------------------------- 2 LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator 3 4 Original Version: 5 http://lammps.sandia.gov, Sandia National Laboratories 6 Steve Plimpton, sjplimp@sandia.gov 7 8 See the README file in the top-level LAMMPS directory. 9 10 ----------------------------------------------------------------------- 11 12 USER-CUDA Package and associated modifications: 13 https://sourceforge.net/projects/lammpscuda/ 14 15 Christian Trott, christian.trott@tu-ilmenau.de 16 Lars Winterfeld, lars.winterfeld@tu-ilmenau.de 17 Theoretical Physics II, University of Technology Ilmenau, Germany 18 19 See the README file in the USER-CUDA directory. 20 21 This software is distributed under the GNU General Public License. 22 ------------------------------------------------------------------------- */ 23 24 25 Cuda_FixTempBerendsenCuda_EndOfStep_Kernel(int groupbit,V_FLOAT factor)26__global__ void Cuda_FixTempBerendsenCuda_EndOfStep_Kernel(int groupbit, V_FLOAT factor) 27 { 28 int i = (blockIdx.x * gridDim.y + blockIdx.y) * blockDim.x + threadIdx.x; 29 30 if(i < _nlocal) 31 if(_mask[i] & groupbit) { 32 _v[i] *= factor; 33 _v[i + _nmax] *= factor; 34 _v[i + 2 * _nmax] *= factor; 35 } 36 } 37 38