Get rid of clang-tidy warning in do_md/rerun/mimic
authorPascal Merz <pascal.merz@me.com>
Mon, 1 Jul 2019 05:45:18 +0000 (23:45 -0600)
committerPaul Bauer <paul.bauer.q@gmail.com>
Thu, 11 Jul 2019 06:21:15 +0000 (08:21 +0200)
commit338ef0ce5b09a8267e0ea2e69589c92cc1c71f9f
tree67d7a56d1f5c8c6f35b3393481450370321c9eac
parent77e9dc592feca7bcf013980b0c294b34e2882906
Get rid of clang-tidy warning in do_md/rerun/mimic

This change silences most of the clang-tidy warnings
"Clang-Tidy: Use of a signed integer operand with a binary
bitwise operator" in do_md, do_rerun and do_mimic. This warning
is triggered when using a signed integer with a binary bitwise
operator, as we do all over the code when encoding / decoding
flags. Such warnings are popping up in other parts of the code,
but this change takes only care of the ones which can be
silenced by changes in the simulator functions and the bit shift
definitions.

Change-Id: I7345e987e91051c9688cb2e8a96026682f025b6b
src/gromacs/fileio/trxio.h
src/gromacs/mdlib/force_flags.h
src/gromacs/mdlib/md_support.h
src/gromacs/mdrun/md.cpp
src/gromacs/mdrun/mimic.cpp
src/gromacs/mdrun/rerun.cpp
src/gromacs/mdtypes/commrec.h