summaryrefslogtreecommitdiff
path: root/src/tests/tng_io_testing.c
diff options
context:
space:
mode:
authorMagnus Lundborg <lundborg.magnus@gmail.com>2013-05-22 13:00:50 (GMT)
committerMagnus Lundborg <lundborg.magnus@gmail.com>2013-05-22 13:00:50 (GMT)
commit0a4c5591fb33b862c867b1e31b3fd225e93fbf76 (patch)
treeaa1e4d3f481cf22379136edd24e66696003f8395 /src/tests/tng_io_testing.c
parent98900c813d6b037a3931c60836a1df0405e1d6c5 (diff)
New functions added (mainly utility functions).
New functions to simplify the work flow added. Not everything is fully tested yet. More commits to follow.
Diffstat (limited to 'src/tests/tng_io_testing.c')
-rw-r--r--src/tests/tng_io_testing.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/tests/tng_io_testing.c b/src/tests/tng_io_testing.c
index 133a1fb..6e8efb6 100644
--- a/src/tests/tng_io_testing.c
+++ b/src/tests/tng_io_testing.c
@@ -459,15 +459,15 @@ static tng_function_status tng_test_write_and_read_traj(tng_trajectory_t traj)
data[cnt++] = molpos[nr + 1] - 1;
data[cnt++] = molpos[nr + 2] - 1;
}
-// if(tng_frame_particle_data_write(traj, frame_nr + i,
-// TNG_TRAJ_POSITIONS, j * 300, 300,
-// data, TNG_SKIP_HASH) != TNG_SUCCESS)
-// {
-// printf("Error adding data. %s: %d\n", __FILE__, __LINE__);
-// free(molpos);
-// free(data);
-// return(TNG_CRITICAL);
-// }
+ if(tng_frame_particle_data_write(traj, frame_nr + i,
+ TNG_TRAJ_POSITIONS, j * 300, 300,
+ data, TNG_SKIP_HASH) != TNG_SUCCESS)
+ {
+ printf("Error adding data. %s: %d\n", __FILE__, __LINE__);
+ free(molpos);
+ free(data);
+ return(TNG_CRITICAL);
+ }
}
}
contact: Jan Huwald // Impressum