add single-line version/build info to argList::printUsage

This commit is contained in:
Mark Olesen
2009-12-04 13:02:34 +01:00
parent 79b53a9c6c
commit 65e56915fc
9 changed files with 22 additions and 21 deletions

View File

@ -44,7 +44,7 @@ void Foam::sigInt::sigIntHandler(int)
( (
"Foam::sigInt::sigIntHandler()" "Foam::sigInt::sigIntHandler()"
) << "Cannot reset SIGINT trapping" ) << "Cannot reset SIGINT trapping"
<< abort(FatalError); << abort(FatalError);
} }
// Update jobInfo file // Update jobInfo file
@ -74,7 +74,7 @@ Foam::sigInt::~sigInt()
( (
"Foam::sigInt::~sigInt()" "Foam::sigInt::~sigInt()"
) << "Cannot reset SIGINT trapping" ) << "Cannot reset SIGINT trapping"
<< abort(FatalError); << abort(FatalError);
} }
} }
@ -102,7 +102,7 @@ void Foam::sigInt::set(const bool verbose)
( (
"Foam::sigInt::set()" "Foam::sigInt::set()"
) << "Cannot set SIGINT trapping" ) << "Cannot set SIGINT trapping"
<< abort(FatalError); << abort(FatalError);
} }
} }

View File

@ -44,7 +44,7 @@ void Foam::sigQuit::sigQuitHandler(int)
( (
"Foam::sigQuit::sigQuitHandler()" "Foam::sigQuit::sigQuitHandler()"
) << "Cannot reset SIGQUIT trapping" ) << "Cannot reset SIGQUIT trapping"
<< abort(FatalError); << abort(FatalError);
} }
// Update jobInfo file // Update jobInfo file
@ -76,7 +76,7 @@ Foam::sigQuit::~sigQuit()
( (
"Foam::sigQuit::~sigQuit()" "Foam::sigQuit::~sigQuit()"
) << "Cannot reset SIGQUIT trapping" ) << "Cannot reset SIGQUIT trapping"
<< abort(FatalError); << abort(FatalError);
} }
} }
@ -104,7 +104,7 @@ void Foam::sigQuit::set(const bool verbose)
( (
"Foam::sigQuit::set()" "Foam::sigQuit::set()"
) << "Cannot set SIGQUIT trapping" ) << "Cannot set SIGQUIT trapping"
<< abort(FatalError); << abort(FatalError);
} }
} }

View File

@ -44,7 +44,7 @@ void Foam::sigSegv::sigSegvHandler(int)
( (
"Foam::sigSegv::sigSegvHandler()" "Foam::sigSegv::sigSegvHandler()"
) << "Cannot reset SIGSEGV trapping" ) << "Cannot reset SIGSEGV trapping"
<< abort(FatalError); << abort(FatalError);
} }
// Update jobInfo file // Update jobInfo file
@ -76,7 +76,7 @@ Foam::sigSegv::~sigSegv()
( (
"Foam::sigSegv::~sigSegv()" "Foam::sigSegv::~sigSegv()"
) << "Cannot reset SIGSEGV trapping" ) << "Cannot reset SIGSEGV trapping"
<< abort(FatalError); << abort(FatalError);
} }
} }
@ -104,7 +104,7 @@ void Foam::sigSegv::set(const bool verbose)
( (
"Foam::sigSegv::set()" "Foam::sigSegv::set()"
) << "Cannot set SIGSEGV trapping" ) << "Cannot set SIGSEGV trapping"
<< abort(FatalError); << abort(FatalError);
} }
} }

View File

@ -68,7 +68,7 @@ bool Foam::dlLibraryTable::open(const fileName& functionLibName)
{ {
if (functionLibName.size()) if (functionLibName.size())
{ {
void* functionLibPtr = void* functionLibPtr =
dlopen(functionLibName.c_str(), RTLD_LAZY|RTLD_GLOBAL); dlopen(functionLibName.c_str(), RTLD_LAZY|RTLD_GLOBAL);
if (!functionLibPtr) if (!functionLibPtr)

View File

@ -807,7 +807,11 @@ void Foam::argList::printUsage() const
7, 7,
"print the usage" "print the usage"
); );
Info<< endl;
Info<< nl
<<"Using OpenFOAM-" << Foam::FOAMversion
<<" (build: " << Foam::FOAMbuild << ") - see www.OpenFOAM.org"
<< nl << endl;
} }

View File

@ -99,7 +99,7 @@ Foam::label Foam::cell::opposingFaceLabel
{ {
// There has already been an opposite face. // There has already been an opposite face.
// Non-prismatic cell // Non-prismatic cell
Info<< "Multiple faces not sharing vertex: " Info<< "Multiple faces not sharing vertex: "
<< oppositeFaceLabel << " and " << oppositeFaceLabel << " and "
<< curFaceLabels[faceI] << endl; << curFaceLabels[faceI] << endl;
return -1; return -1;

View File

@ -37,7 +37,6 @@ const Foam::label Foam::prismMatcher::maxVertPerFace = 4;
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
// Construct from components
Foam::prismMatcher::prismMatcher() Foam::prismMatcher::prismMatcher()
: :
cellMatcher cellMatcher
@ -89,7 +88,7 @@ bool Foam::prismMatcher::matchShape
faceLabels_.setSize(facePerCell); faceLabels_.setSize(facePerCell);
// //
// Try first triangular face. // Try first triangular face.
// Only need to try one orientation of this face since prism is // Only need to try one orientation of this face since prism is
// rotation symmetric // rotation symmetric
// //
@ -223,7 +222,7 @@ bool Foam::prismMatcher::matchShape
// Walk face 0 from vertex 1 to 2 // Walk face 0 from vertex 1 to 2
label face0vert2 = label face0vert2 =
nextVert nextVert
( (
face0vert1, face0vert1,
@ -257,7 +256,7 @@ bool Foam::prismMatcher::matchShape
// << " at position " << face3vert2 << " in face " << face3 // << " at position " << face3vert2 << " in face " << face3
// << endl; // << endl;
label face3vert5 = label face3vert5 =
nextVert nextVert
( (
face3vert2, face3vert2,
@ -313,7 +312,7 @@ bool Foam::prismMatcher::faceSizeMatch
label nTris = 0; label nTris = 0;
label nQuads = 0; label nQuads = 0;
forAll(myFaces, myFaceI) forAll(myFaces, myFaceI)
{ {
label size = faces[myFaces[myFaceI]].size(); label size = faces[myFaces[myFaceI]].size();

View File

@ -40,7 +40,6 @@ const Foam::label Foam::tetWedgeMatcher::maxVertPerFace = 4;
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
// Construct null
Foam::tetWedgeMatcher::tetWedgeMatcher() Foam::tetWedgeMatcher::tetWedgeMatcher()
: :
cellMatcher cellMatcher
@ -241,7 +240,7 @@ bool Foam::tetWedgeMatcher::faceSizeMatch
label nTris = 0; label nTris = 0;
label nQuads = 0; label nQuads = 0;
forAll(myFaces, myFaceI) forAll(myFaces, myFaceI)
{ {
label size = faces[myFaces[myFaceI]].size(); label size = faces[myFaces[myFaceI]].size();

View File

@ -37,7 +37,6 @@ const Foam::label Foam::wedgeMatcher::maxVertPerFace = 4;
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
// Construct null
Foam::wedgeMatcher::wedgeMatcher() Foam::wedgeMatcher::wedgeMatcher()
: :
cellMatcher cellMatcher
@ -340,7 +339,7 @@ bool Foam::wedgeMatcher::faceSizeMatch
label nTris = 0; label nTris = 0;
label nQuads = 0; label nQuads = 0;
forAll(myFaces, myFaceI) forAll(myFaces, myFaceI)
{ {
label size = faces[myFaces[myFaceI]].size(); label size = faces[myFaces[myFaceI]].size();