Fix force tests

This commit is contained in:
Alex Selimov 2025-09-12 06:16:37 -04:00
parent ac44ceaab1
commit fe6d88306f
Signed by: aselimov
GPG key ID: 3DDB9C3E023F1F31
2 changed files with 62 additions and 69 deletions

View file

@ -21,13 +21,7 @@ __global__ void calc_forces_and_energies(real *xs, real *forces, real *energies,
PotentialType potential) {
int i = blockIdx.x * blockDim.x + threadIdx.x;
if (i == 0) {
printf("n_particles: %d\n", n_particles);
printf("box_len: %f %f %f\n", box_len[0], box_len[1], box_len[2]);
}
if (i < n_particles) {
printf("Thread %d, Block %d\n", threadIdx.x, blockIdx.x);
real xi = xs[3 * i];
real yi = xs[3 * i + 1];
real zi = xs[3 * i + 2];