:ref:`pdb` file, which allows to check whether multimeric channels have
the correct PBC representation.
+``GMX_TRAJECTORY_IO_VERBOSITY``
+ Defaults to 1, which prints frame count e.g. when reading trajectory
+ files. Set to 0 for quiet operation.
+
Debugging
---------
``GMX_PRINT_DEBUG_LINES``
*
* Copyright (c) 1991-2000, University of Groningen, The Netherlands.
* Copyright (c) 2001-2004, The GROMACS development team.
- * Copyright (c) 2013,2014,2015,2016, by the GROMACS development team, led by
+ * Copyright (c) 2013,2014,2015,2016,2017, by the GROMACS development team, led by
* Mark Abraham, David van der Spoel, Berk Hess, and Erik Lindahl,
* and including many others, as listed in the AUTHORS file in the
* top-level source directory and at http://www.gromacs.org.
explicit gmx_output_env_t(const gmx::IProgramContext &context)
: programContext(context)
{
- time_unit = time_ps;
- view = FALSE;
- xvg_format = exvgNONE;
- verbosity = 0;
+ time_unit = time_ps;
+ view = FALSE;
+ xvg_format = exvgNONE;
+ verbosity = 0;
+ trajectory_io_verbosity = 1;
}
const gmx::IProgramContext &programContext;
xvg_format_t xvg_format;
/* The level of verbosity for this program */
int verbosity;
+ /* The level of verbosity during trajectory I/O. Default=1, quiet=0. */
+ int trajectory_io_verbosity;
};
/* The source code in this file should be thread-safe.
oenv->view = view;
oenv->xvg_format = xvg_format;
oenv->verbosity = verbosity;
+ const char *env = getenv("GMX_TRAJECTORY_IO_VERBOSITY");
+ oenv->trajectory_io_verbosity = (env != nullptr ? strtol(env, NULL, 10) : 1);
+
}
GMX_CATCH_ALL_AND_EXIT_WITH_FATAL_ERROR;
}
return oenv->verbosity;
}
+int output_env_get_trajectory_io_verbosity(const gmx_output_env_t *oenv)
+{
+ return oenv->trajectory_io_verbosity;
+}
+
const char *output_env_get_time_unit(const gmx_output_env_t *oenv)
{
return time_units_str[oenv->time_unit];
*
* Copyright (c) 1991-2000, University of Groningen, The Netherlands.
* Copyright (c) 2001-2004, The GROMACS development team.
- * Copyright (c) 2012,2014,2015, by the GROMACS development team, led by
+ * Copyright (c) 2012,2014,2015,2017, by the GROMACS development team, led by
* Mark Abraham, David van der Spoel, Berk Hess, and Erik Lindahl,
* and including many others, as listed in the AUTHORS file in the
* top-level source directory and at http://www.gromacs.org.
/* output_env member functions */
-/* The output_env structure holds information about program name, cmd line,
- default times, etc.
+/* The output_env structure holds information about program name, cmd
+ line, default times, etc. along with verbosity levels for code
+ components that use this structure for regulating output.
There are still legacy functions for the program name, and the command
line, but the output_env versions are now preferred.*/
int output_env_get_verbosity(const gmx_output_env_t *oenv);
/* return the verbosity */
+int output_env_get_trajectory_io_verbosity(const gmx_output_env_t *oenv);
+/* return the verbosity for trajectory IO handling */
+
const char *output_env_get_time_unit(const gmx_output_env_t *oenv);
/* return time unit (e.g. ps or ns) */
*
* Copyright (c) 1991-2000, University of Groningen, The Netherlands.
* Copyright (c) 2001-2004, The GROMACS development team.
- * Copyright (c) 2013,2014,2015,2016, by the GROMACS development team, led by
+ * Copyright (c) 2013,2014,2015,2016,2017, by the GROMACS development team, led by
* Mark Abraham, David van der Spoel, Berk Hess, and Erik Lindahl,
* and including many others, as listed in the AUTHORS file in the
* top-level source directory and at http://www.gromacs.org.
{
if ((status->__frame < 2*SKIP1 || status->__frame % SKIP1 == 0) &&
(status->__frame < 2*SKIP2 || status->__frame % SKIP2 == 0) &&
- (status->__frame < 2*SKIP3 || status->__frame % SKIP3 == 0))
+ (status->__frame < 2*SKIP3 || status->__frame % SKIP3 == 0) &&
+ output_env_get_trajectory_io_verbosity(oenv) != 0)
{
fprintf(stderr, "\r%-14s %6d time %8.3f ", l, status->__frame,
output_env_conv_time(oenv, t));