2010-05-12 13:27:55 +00:00
|
|
|
/*-------------------------------*- C++ -*-----------------------------------*\
|
|
|
|
========= |
|
|
|
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
|
|
|
\\ / O peration |
|
|
|
|
\\ / A nd | Copyright held by original author
|
|
|
|
\\/ M anipulation |
|
|
|
|
-------------------------------------------------------------------------------
|
|
|
|
License
|
|
|
|
This file is part of OpenFOAM.
|
|
|
|
|
|
|
|
OpenFOAM is free software; you can redistribute it and/or modify it
|
|
|
|
under the terms of the GNU General Public License as published by the
|
|
|
|
Free Software Foundation; either version 2 of the License, or (at your
|
|
|
|
option) any later version.
|
|
|
|
|
|
|
|
OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
|
|
|
|
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
|
|
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
|
|
for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with OpenFOAM; if not, write to the Free Software Foundation,
|
|
|
|
Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
|
|
|
|
|
|
Description
|
2010-08-24 15:19:39 +00:00
|
|
|
Define the globals used in the OpenFOAM library.
|
|
|
|
It is important that these are constructed in the appropriate order to
|
|
|
|
avoid the use of unconstructed data in the global namespace.
|
2010-05-12 13:27:55 +00:00
|
|
|
|
2010-08-24 15:19:39 +00:00
|
|
|
This file has the extension .Cver to trigger a Makefile rule that converts
|
|
|
|
'VERSION\_STRING' and 'BUILD\_STRING' into the appropriate strings.
|
2010-05-12 13:27:55 +00:00
|
|
|
|
|
|
|
\*---------------------------------------------------------------------------*/
|
|
|
|
|
|
|
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
|
|
#include "foamVersion.H"
|
|
|
|
|
2010-08-24 15:19:39 +00:00
|
|
|
const char* const Foam::FOAMversion = "VERSION_STRING";
|
|
|
|
const char* const Foam::FOAMbuild = "BUILD_STRING";
|
2010-05-12 13:27:55 +00:00
|
|
|
|
|
|
|
|
|
|
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
|
|
// Setup an error handler for the global new operator
|
|
|
|
|
|
|
|
#include "new.C"
|
|
|
|
|
|
|
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
|
|
// Global IO streams
|
|
|
|
|
|
|
|
#include "IOstreams.C"
|
|
|
|
|
|
|
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
|
|
|
|
|
|
#include "JobInfo.H"
|
|
|
|
bool Foam::JobInfo::constructed = false;
|
|
|
|
|
|
|
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
|
|
// Global error definitions (initialised by construction)
|
|
|
|
|
|
|
|
#include "messageStream.C"
|
|
|
|
#include "error.C"
|
|
|
|
#include "IOerror.C"
|
|
|
|
#include "token.C"
|
|
|
|
|
|
|
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
|
|
// Read the debug and info switches
|
|
|
|
|
|
|
|
#include "debug.C"
|
|
|
|
|
|
|
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
|
|
// Read and set cell models
|
|
|
|
|
|
|
|
#include "globalCellModeller.C"
|
|
|
|
|
|
|
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
|
|
// Create the jobInfo file in the $FOAM_JOB_DIR/runningJobs directory
|
|
|
|
|
|
|
|
#include "JobInfo.C"
|
|
|
|
|
|
|
|
// ************************************************************************* //
|