Skip to content
Snippets Groups Projects
Commit 92d0798d authored by Mark OLESEN's avatar Mark OLESEN
Browse files

STYLE: report API number with the build information

    Using: OpenFOAM-plus (see www.OpenFOAM.com)
    Build: plus-71e90eea (OPENFOAM=1807)
    Arch:  LSB;label=32;scalar=64

- This can be useful for development versions, or when the version
  at build time uses some other naming scheme (#1010)
parent 71e90eea
No related branches found
No related tags found
No related merge requests found
......@@ -185,11 +185,15 @@ static void printBuildInfo(const bool full=true)
{
Info<<"Using: OpenFOAM-" << Foam::FOAMversion
<< " (see www.OpenFOAM.com)" << nl
<< "Build: " << Foam::FOAMbuild << nl;
<< "Build: " << Foam::FOAMbuild
#if OPENFOAM
<< " (OPENFOAM=" << OPENFOAM << ')'
#endif
<< nl;
if (full)
{
Info << "Arch: " << Foam::FOAMbuildArch << nl;
Info << "Arch: " << Foam::FOAMbuildArch.c_str() << nl;
}
}
......@@ -967,12 +971,16 @@ void Foam::argList::parse
if (Pstream::master() && bannerEnabled())
{
IOobject::writeBanner(Info, true)
<< "Build : " << Foam::FOAMbuild << nl
<< "Build : " << Foam::FOAMbuild
#if OPENFOAM
<< " (OPENFOAM=" << OPENFOAM << ')'
#endif
<< nl
<< "Arch : " << Foam::FOAMbuildArch << nl
<< "Exec : " << argListStr_.c_str() << nl
<< "Date : " << dateString.c_str() << nl
<< "Time : " << timeString.c_str() << nl
<< "Host : " << hostName() << nl
<< "Host : " << hostName().c_str() << nl
<< "PID : " << pid() << endl;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment