Fixed bug inverting compression precision.
authorMagnus Lundborg <lundborg.magnus@gmail.com>
Wed, 16 Apr 2014 06:23:03 +0000 (08:23 +0200)
committerGerrit Code Review <gerrit@gerrit.gromacs.org>
Wed, 16 Apr 2014 19:54:48 +0000 (21:54 +0200)
In the TNG library the compression precision was modified to
suit GROMACS compression precision better (i.e. indicating
the multiplier applied to the compressed value). There was no
change in GROMACS to reflect this, meaning that compressed TNG
would have 0 coordinates for almost all atoms. That is fixed
in this commit.

Change-Id: Id906c710deb68d172a38acec34892aa4823c039d

src/gromacs/fileio/tngio.cpp

index c8854a3db762d410deff2c30df26a502fb9e7bff..e4f33fef84640204f868709ba58ec899a97ac214 100644 (file)
@@ -644,7 +644,7 @@ void gmx_tng_set_compression_precision(tng_trajectory_t tng,
                                        real             prec)
 {
 #ifdef GMX_USE_TNG
-    tng_compression_precision_set(tng, 1.0/prec);
+    tng_compression_precision_set(tng, prec);
 #else
     GMX_UNUSED_VALUE(tng);
     GMX_UNUSED_VALUE(prec);