diff options
author | Daniel Spangberg <daniels@kemi.uu.se> | 2013-05-25 10:17:20 (GMT) |
---|---|---|
committer | Daniel Spangberg <daniels@kemi.uu.se> | 2013-05-25 10:17:20 (GMT) |
commit | 583a3deb5bd37d5e81e17761b32831a190192281 (patch) | |
tree | 26017dee6c3ed38b1af61d37c1da0c49b39fcdfc /src/lib/tng_io.c | |
parent | 4f846bcb0d2027955d5bab4151dcfedf86347cd8 (diff) |
Added debugging code to locate where velocities get trashed.
Diffstat (limited to 'src/lib/tng_io.c')
-rw-r--r-- | src/lib/tng_io.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/lib/tng_io.c b/src/lib/tng_io.c index e6b4d8c..6c41b67 100644 --- a/src/lib/tng_io.c +++ b/src/lib/tng_io.c @@ -3734,6 +3734,19 @@ static tng_function_status tng_compress(tng_trajectory_t tng_data, if(type == TNG_FLOAT_DATA) { +#if 1 + { + int iframe,i,j; + for (iframe=0; iframe<n_frames; iframe++) + for (i=0; i<n_particles; i++) + { + printf("vel tng_io: %d %d: ",iframe,i); + for (j=0; j<3; j++) + printf(" %g",((float*)start_pos)[iframe*n_particles*3+i*3+j]); + printf("\n"); + } + } +#endif dest = tng_compress_vel_float_find_algo(start_pos, n_particles, n_frames, 0.01, 0, |