Skip to content

Commit

Permalink
FIX BUG: init f12 for sw each step
Browse files Browse the repository at this point in the history
  • Loading branch information
BBBuZHIDAO committed Nov 19, 2024
1 parent 91a5eda commit d90bed4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/force/ilp_tmd_sw.cu
Original file line number Diff line number Diff line change
Expand Up @@ -1447,6 +1447,10 @@ void ILP_TMD_SW::compute_ilp(
ilp_data.f12y.fill(0);
ilp_data.f12z.fill(0);

sw2_data.f12x.fill(0);
sw2_data.f12y.fill(0);
sw2_data.f12z.fill(0);

double *g_fx = force_per_atom.data();
double *g_fy = force_per_atom.data() + number_of_atoms;
double *g_fz = force_per_atom.data() + number_of_atoms * 2;
Expand Down

0 comments on commit d90bed4

Please sign in to comment.