Allow runAsMainSingleModule to be called more than once
authorRoland Schulz <roland@utk.edu>
Sun, 21 Sep 2014 22:03:17 +0000 (18:03 -0400)
committerGerrit Code Review <gerrit@gerrit.gromacs.org>
Sun, 5 Oct 2014 03:58:48 +0000 (05:58 +0200)
commit37573afb8aea3688b3bb2fe30919300efe198ac0
tree65217bfc949f86f8c550d475cc8b84e59f56d1cb
parent4488887e17c2ad98c5885a8181fc460158e1476a
Allow runAsMainSingleModule to be called more than once

Call finalizeForCommandLine even if an exception is thrown so that it is
OK to call runAsMainSingleModule again. This allows this (and the calling
runAsMain as e.g. used in the template) be called from some framework which
doesn't reset globals.

Change-Id: I9eff770e06feef90f99ec0445bd294816f8b6a0a
src/gromacs/commandline/cmdlineinit.cpp
src/gromacs/commandline/cmdlineinit.h
src/gromacs/commandline/cmdlinemodulemanager.cpp
src/gromacs/commandline/cmdlinemodulemanager.h
src/programs/gmx.cpp
src/testutils/testoptions.cpp