summaryrefslogtreecommitdiff
path: root/src/tests/tng_io_testing.c
diff options
context:
space:
mode:
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