Gromacs
5.1.4
|
#include <gromacs/utility/programcontext.h>
Provides information about installation prefix (see ProgramContextInterface::installationPrefix()).
Public Member Functions | |
InstallationPrefixInfo (const char *path, bool bSource) | |
Initializes the structure with given values. | |
Public Attributes | |
const char *const | path |
Path to the installation prefix of the current GROMACS instance. More... | |
const bool | bSourceLayout |
Whether path points to a source tree -like layout. More... | |
const bool gmx::InstallationPrefixInfo::bSourceLayout |
Whether path points to a source tree -like layout.
For testing, it is useful to read data files from the source tree. For such cases, the program context can return the source tree root path in path, and set this to true
to indicate that the data files should be searched using the layout of the source tree instead of the installation.
const char* const gmx::InstallationPrefixInfo::path |
Path to the installation prefix of the current GROMACS instance.
If this is NULL
or empty, data files cannot be looked up from the install tree and GROMACS functions that access such files may fail. This can also contain a path to the source tree (see bSourceLayout).