mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
output FOAMbuild info in argList, but only emit FOAMversion in writeBanner
This commit is contained in:
@ -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";
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user