Remove useless trjcat -prec option
authorMark Abraham <mark.j.abraham@gmail.com>
Thu, 9 Jan 2014 13:12:18 +0000 (14:12 +0100)
committerGerrit Code Review <gerrit@gerrit.gromacs.org>
Tue, 14 Jan 2014 04:56:14 +0000 (05:56 +0100)
A tool whose nominal job is concatenation should not also be changing
the precision of the output. Fortunately, that was never implemented
anyway. I don't know what happens if you try to concatenate two files
of different precision, or format or whatever. Joy!

Change-Id: I7c4ff1fe431897eddd7e4627723bac6e15387adf

src/gromacs/gmxana/gmx_trjcat.c

index 1b843169dad02584e0641608775f838e303ba1bd..990dd7ee94ad62beb3c18297823ea29d9aebef8b 100644 (file)
@@ -441,7 +441,6 @@ int gmx_trjcat(int argc, char *argv[])
         "tries to be smart. Beware."
     };
     static gmx_bool bVels           = TRUE;
-    static int      prec            = 3;
     static gmx_bool bCat            = FALSE;
     static gmx_bool bSort           = TRUE;
     static gmx_bool bKeepLast       = FALSE;
@@ -462,8 +461,6 @@ int gmx_trjcat(int argc, char *argv[])
           { &end }, "Last time to use (%t)" },
         { "-dt", FALSE, etTIME,
           { &dt }, "Only write frame when t MOD dt = first time (%t)" },
-        { "-prec", FALSE, etINT,
-          { &prec }, "Precision for [TT].xtc[tt] and [TT].gro[tt] writing in number of decimal places" },
         { "-vel", FALSE, etBOOL,
           { &bVels }, "Read and write velocities if possible" },
         { "-settime", FALSE, etBOOL,
@@ -481,7 +478,7 @@ int gmx_trjcat(int argc, char *argv[])
     int          ftpin, i, frame, frame_out, step = 0, trjout = 0;
     t_trxstatus *status;
     rvec        *x, *v;
-    real         xtcpr, t_corr;
+    real         t_corr;
     t_trxframe   fr, frout;
     char       **fnms, **fnms_out, *in_file, *out_file;
     int          n_append;
@@ -554,12 +551,6 @@ int gmx_trjcat(int argc, char *argv[])
             }
         }
     }
-    /* prec is in nr of decimal places, xtcprec is a multiplication factor: */
-    xtcpr = 1;
-    for (i = 0; i < prec; i++)
-    {
-        xtcpr *= 10;
-    }
 
     nfile_in = opt2fns(&fnms, "-f", NFILE, fnm);
     if (!nfile_in)