Fix a long standing bug in the cuda kernels. Locking of the C-block is not enough, a threadfence or an atomic update is needed to make this updated C available (via global memory) to all other CUDA blocks that are working on the kernel. Here we go with an atomic update. (Ole)


git-svn-id: svn://svn.code.sf.net/p/cp2k/code/trunk@12689 bac0169d-1eea-4375-b5f6-f89d2ced9994
fix indentation (using indent). (Ole)


git-svn-id: svn://svn.code.sf.net/p/cp2k/code/trunk@12690 bac0169d-1eea-4375-b5f6-f89d2ced9994