output FOAMbuild info in argList, but only emit FOAMversion in writeBanner

This commit is contained in:
Mark Olesen
2009-01-09 11:28:08 +01:00
parent e6bfb2687d
commit 036a1cd504
2 changed files with 4 additions and 3 deletions

View File

@ -38,7 +38,7 @@ inline void Foam::IOobject::writeBanner(Stream& os, bool noHint)
{ {
memset(spaces, ' ', 40); memset(spaces, ' ', 40);
size_t len = strlen(Foam::FOAMbuild); size_t len = strlen(Foam::FOAMversion);
if (len < 38) if (len < 38)
{ {
spaces[38 - len] = '\0'; spaces[38 - len] = '\0';
@ -64,7 +64,7 @@ inline void Foam::IOobject::writeBanner(Stream& os, bool noHint)
os << os <<
"| ========= | |\n" "| ========= | |\n"
"| \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox |\n" "| \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox |\n"
"| \\\\ / O peration | Version: " << FOAMbuild << spaces << "|\n" "| \\\\ / O peration | Version: " << FOAMversion << spaces << "|\n"
"| \\\\ / A nd | Web: www.OpenFOAM.org |\n" "| \\\\ / A nd | Web: www.OpenFOAM.org |\n"
"| \\\\/ M anipulation | |\n" "| \\\\/ M anipulation | |\n"
"\\*---------------------------------------------------------------------------*/\n"; "\\*---------------------------------------------------------------------------*/\n";

View File

@ -286,7 +286,8 @@ Foam::argList::argList
if (Pstream::master() && bannerEnabled) if (Pstream::master() && bannerEnabled)
{ {
IOobject::writeBanner(Info, true); IOobject::writeBanner(Info, true);
Info<< "Exec : " << argListString.c_str() << nl Info<< "Build : " << Foam::FOAMbuild << nl
<< "Exec : " << argListString.c_str() << nl
<< "Date : " << dateString.c_str() << nl << "Date : " << dateString.c_str() << nl
<< "Time : " << timeString.c_str() << nl << "Time : " << timeString.c_str() << nl
<< "Host : " << hostName() << nl << "Host : " << hostName() << nl