Fix force tests
This commit is contained in:
parent
ac44ceaab1
commit
fe6d88306f
2 changed files with 62 additions and 69 deletions
|
@ -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];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue