summaryrefslogtreecommitdiff
path: root/src/tests
diff options
context:
space:
mode:
authorDaniel Spangberg <daniels@kemi.uu.se>2013-05-25 10:17:20 (GMT)
committerDaniel Spangberg <daniels@kemi.uu.se>2013-05-25 10:17:20 (GMT)
commit583a3deb5bd37d5e81e17761b32831a190192281 (patch)
tree26017dee6c3ed38b1af61d37c1da0c49b39fcdfc /src/tests
parent4f846bcb0d2027955d5bab4151dcfedf86347cd8 (diff)
Added debugging code to locate where velocities get trashed.
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/md_openmp_util.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/tests/md_openmp_util.c b/src/tests/md_openmp_util.c
index 99ab60e..41ccff5 100644
--- a/src/tests/md_openmp_util.c
+++ b/src/tests/md_openmp_util.c
@@ -269,6 +269,21 @@ int main ( int argc, char *argv[] )
printf("Error adding data. %s: %d\n", __FILE__, __LINE__);
exit(1);
}
+#if 1
+ {
+ int j,i;
+ for ( j = 0; j < np; j++ )
+ {
+ printf("vel in md for %d %d:",step,j);
+ for ( i = 0; i < nd; i++ )
+ {
+ printf (" %g",vel[i+j*nd]);
+ }
+ printf("\n");
+ }
+ }
+#endif
+
if(tng_util_vel_write(traj, step, vel) != TNG_SUCCESS)
{
printf("Error adding data. %s: %d\n", __FILE__, __LINE__);
@@ -742,5 +757,6 @@ void update ( int np, int nd, float pos[], float vel[], float f[],
}
}
+
return;
}
contact: Jan Huwald // Impressum