53 #ifndef Foam_foamVersion_H 54 #define Foam_foamVersion_H 65 #define FOAM_RESOURCE_USER_CONFIG_DIRNAME ".OpenFOAM" 71 #define FOAM_RESOURCE_SITE_ENVNAME "WM_PROJECT_SITE" 79 #define FOAM_RESOURCE_SITE_FALLBACK_ENVNAME "WM_PROJECT_DIR" 104 extern const int api;
107 extern const std::string
patch;
110 extern const std::string
build;
117 extern const std::string
version;
165 #define FOAMversion foamVersion::version.c_str() 166 #define FOAMbuild foamVersion::build.c_str() 167 #define FOAMbuildArch foamVersion::buildArch void printBuildInfo(std::ostream &os, const bool full=true)
Print information about version, build, arch to output stream.
bool patched()
Test if the patch string appears to be in use, which is when it is defined (non-zero).
const int api
OpenFOAM api number (integer) corresponding to the value of OPENFOAM at the time of compilation...
OBJstream os(runTime.globalPath()/outputName)
unsigned scalarByteSize(const std::string &str)
Extract scalar size (in bytes) from "scalar=" tag in string.
const std::string buildArch
OpenFOAM build architecture information (machine endian, label/scalar sizes) as a std::string...
const std::string version
OpenFOAM version (name or stringified number) as a std::string.
std::string configuredEtcDir()
Compile-time definition of the OpenFOAM etc/ directory or empty if not defined.
std::string configuredProjectDir()
Compile-time definition of the OpenFOAM project directory or empty if not defined.
const std::string patch
OpenFOAM patch number as a std::string.
unsigned labelByteSize(const std::string &str)
Extract label size (in bytes) from "label=" tag in string.
const std::string build
OpenFOAM build information as a std::string.