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
OBJstream os(runTime.globalPath()/outputName)
#define FOAM_RESOURCE_SITE_FALLBACK_ENVNAME
#define FOAM_RESOURCE_SITE_ENVNAME
The env name for site-resources to obtain a site-resources directory.
#define FOAM_RESOURCE_USER_CONFIG_DIRNAME
The directory name for user-resources within the HOME directory.
const std::string patch
OpenFOAM patch number as a std::string.
unsigned scalarByteSize(const std::string &str)
Extract scalar size (in bytes) from "scalar=" tag in string.
std::string configuredProjectDir()
std::string configuredEtcDir()
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.
const std::string buildArch
void printBuildInfo(std::ostream &os, const bool full=true)
Print information about version, build, arch to output stream.
const std::string version
OpenFOAM version (name or stringified number) as a std::string.