Fix missing summation for energy
This commit is contained in:
parent
7f04ae793a
commit
a638c4f388
2 changed files with 114 additions and 192 deletions
|
@ -29,7 +29,7 @@ __global__ void CAC::calc_forces_and_energies(real *xs, real *forces,
|
|||
forces[3 * i] += sol.force.x;
|
||||
forces[3 * i + 1] += sol.force.y;
|
||||
forces[3 * i + 2] += sol.force.z;
|
||||
energies[i] = sol.energy;
|
||||
energies[i] += sol.energy;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue