summaryrefslogtreecommitdiff
path: root/src/tests/tng_io_testing.c
diff options
context:
space:
mode:
authorMagnus Lundborg <lundborg.magnus@gmail.com>2013-02-08 16:15:54 (GMT)
committerMagnus Lundborg <lundborg.magnus@gmail.com>2013-02-08 16:15:54 (GMT)
commite753a0776bd1496d05e8d191a957e0b2eeb7f019 (patch)
tree8ebd1ee6e3a86904f62e910f8f1802639ee047f1 /src/tests/tng_io_testing.c
parentc5020baa6a27af8288d79f02f9ea646ae580710a (diff)
Add a standard block ID for partial charges.
Diffstat (limited to 'src/tests/tng_io_testing.c')
-rw-r--r--src/tests/tng_io_testing.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tests/tng_io_testing.c b/src/tests/tng_io_testing.c
index 7b88a9f..07852eb 100644
--- a/src/tests/tng_io_testing.c
+++ b/src/tests/tng_io_testing.c
@@ -197,8 +197,8 @@ static tng_function_status tng_test_write_and_read_traj(tng_trajectory_t traj)
printf("Failed setting partial charges.\n");
return(TNG_CRITICAL);
}
- /* There is no ID for partial charges data in the standard. Make an ID up.*/
- stat = tng_particle_data_block_add(traj, 10099, "PARTIAL CHARGES",
+
+ stat = tng_particle_data_block_add(traj, TNG_TRAJ_PARTIAL_CHARGES, "PARTIAL CHARGES",
TNG_FLOAT_DATA, TNG_NON_TRAJECTORY_BLOCK,
1, 1, 1, 0, n_particles,
TNG_UNCOMPRESSED, charges);
contact: Jan Huwald // Impressum