Commit 6cd953ff 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-7ab57cc5 (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 7ab57cc5
......@@ -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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment