#ifdef HAVE_LIBMKL
#include <mkl.h>
#endif
-
#ifdef HAVE_EXTRAE
- #include "extrae_user_events.h"
+#include <extrae_user_events.h>
#endif
-
#include <boost/version.hpp>
/* This file is completely threadsafe - keep it that way! */
-#include "gromacs/legacyheaders/macros.h"
-
+#include "buildinfo.h"
#include "gromacs/fft/fft.h"
#include "gromacs/fileio/strdb.h"
+#include "gromacs/legacyheaders/macros.h"
#include "gromacs/math/vec.h"
#include "gromacs/random/random.h"
#include "gromacs/utility/baseversion.h"
#include "gromacs/utility/programcontext.h"
#include "gromacs/utility/smalloc.h"
-#include "buildinfo.h"
-
static gmx_bool be_cool(void)
{
/* Yes, it is bad to check the environment variable every call,
const char *ShortProgram(void)
{
+ const char *programName = NULL;
+
try
{
// TODO: Use the display name once it doesn't break anything.
- return gmx::getProgramContext().programName();
+ programName = gmx::getProgramContext().programName();
}
GMX_CATCH_ALL_AND_EXIT_WITH_FATAL_ERROR;
+
+ return programName;
}
const char *Program(void)