summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMagnus Lundborg <lundborg.magnus@gmail.com>2013-06-13 09:53:16 (GMT)
committerMagnus Lundborg <lundborg.magnus@gmail.com>2013-06-13 09:53:16 (GMT)
commit205d12b357a76a9ed4808b561dc5a09d35300845 (patch)
tree7673afcb65b2bb8b182f1b95e61dbdf72a806a84 /src
parent68a0e2cb28663b5dc10c5283d5dd74544d55138a (diff)
Improved compression.
GZIP compress box shape. TNG compression precision to 0.001.
Diffstat (limited to 'src')
-rw-r--r--src/lib/tng_io.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/tng_io.c b/src/lib/tng_io.c
index 03baf21..6bcf151 100644
--- a/src/lib/tng_io.c
+++ b/src/lib/tng_io.c
@@ -3708,7 +3708,7 @@ static tng_function_status tng_compress(tng_trajectory_t tng_data,
{
dest = tng_compress_pos_float_find_algo(start_pos, n_particles,
n_frames,
- 0.01, 0,
+ 0.001, 0,
tng_data->
compress_algo_pos,
&new_len);
@@ -3717,7 +3717,7 @@ static tng_function_status tng_compress(tng_trajectory_t tng_data,
{
dest = tng_compress_pos_find_algo(start_pos, n_particles,
n_frames,
- 0.01, 0,
+ 0.001, 0,
tng_data->
compress_algo_pos,
&new_len);
@@ -3728,13 +3728,13 @@ static tng_function_status tng_compress(tng_trajectory_t tng_data,
if(type == TNG_FLOAT_DATA)
{
dest = tng_compress_pos_float(start_pos, n_particles,
- n_frames, 0.01, 0,
+ n_frames, 0.001, 0,
tng_data->compress_algo_pos, &new_len);
}
else
{
dest = tng_compress_pos(start_pos, n_particles,
- n_frames, 0.01, 0,
+ n_frames, 0.001, 0,
tng_data->compress_algo_pos, &new_len);
}
}
@@ -13789,7 +13789,7 @@ tng_function_status DECLSPECDLLEXPORT tng_util_box_shape_write
return(tng_util_generic_write(tng_data, frame_nr, box_shape, 9,
TNG_TRAJ_BOX_SHAPE, "BOX SHAPE",
TNG_NON_PARTICLE_BLOCK_DATA,
- TNG_UNCOMPRESSED));
+ TNG_GZIP_COMPRESSION));
}
contact: Jan Huwald // Impressum