Clean up program name handling in oenv
authorTeemu Murtola <teemu.murtola@gmail.com>
Sun, 22 Jun 2014 11:18:13 +0000 (14:18 +0300)
committerGerrit Code Review <gerrit@gerrit.gromacs.org>
Tue, 8 Jul 2014 18:44:51 +0000 (20:44 +0200)
commit679d45de7fc08bf03c6bea606af576e10917bfdc
tree1c015bd5ebaf40d5ee807ccc868f6b29b53f8c54
parent00fde9b5049e9e927299ecded3f769fc6177e00b
Clean up program name handling in oenv

- Remove unused functions to access the program name and command line
  from oenv.
- Replace these with direct access to a ProgramContextInterface, and use
  that instead of the global program context instance in places where
  output_env_t is easily accessible.
- Replace some calls to ShortProgram() with an equivalent call in oenv
  for places where oenv is readily accessible.

Change-Id: I2e8bc8701b8217f51ed9936338e1e9c3c21bd8ba
src/contrib/do_multiprot.c
src/gromacs/fileio/xvgr.cpp
src/gromacs/gmxana/gmx_densorder.cpp
src/gromacs/gmxana/gmx_dipoles.cpp
src/gromacs/gmxana/gmx_tune_pme.c
src/gromacs/gmxlib/oenv.cpp
src/gromacs/gmxpreprocess/x2top.c
src/gromacs/legacyheaders/oenv.h
src/programs/mdrun/runner.cpp