Skip to content

Commit

Permalink
bugfix for pair style dpd/gpu from Trung
Browse files Browse the repository at this point in the history
  • Loading branch information
akohlmey committed Aug 9, 2023
1 parent b9afbf4 commit 2f415c8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/gpu/lal_dpd.cu
Expand Up @@ -301,9 +301,10 @@ __kernel void k_dpd_fast(const __global numtyp4 *restrict x_,
__local numtyp4 coeff[MAX_SHARED_TYPES*MAX_SHARED_TYPES];
__local numtyp sp_lj[4];
__local numtyp sp_sqrt[4];
if (tid<4)
if (tid<4) {
sp_lj[tid]=sp_lj_in[tid];
sp_sqrt[tid]=sp_sqrt_in[tid];
}
if (tid<MAX_SHARED_TYPES*MAX_SHARED_TYPES) {
coeff[tid]=coeff_in[tid];
}
Expand Down

0 comments on commit 2f415c8

Please sign in to comment.