1 /*-------------------------------*- C++ -*-----------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
7 -------------------------------------------------------------------------------
9 This file is part of OpenFOAM.
11 OpenFOAM is free software: you can redistribute it and/or modify it
12 under the terms of the GNU General Public License as published by
13 the Free Software Foundation, either version 3 of the License, or
14 (at your option) any later version.
16 OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
17 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
18 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21 You should have received a copy of the GNU General Public License
22 along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
25 Define the globals used in the OpenFOAM library.
26 It is important that these are constructed in the appropriate order to
27 avoid the use of unconstructed data in the global namespace.
29 This file has the extension .Cver to trigger a Makefile rule that converts
30 'VERSION\_STRING' and 'BUILD\_STRING' into the appropriate strings.
32 \*---------------------------------------------------------------------------*/
34 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
35 #include "foamVersion.H"
37 const char* const Foam::FOAMversion = "VERSION_STRING";
38 const char* const Foam::FOAMbuild = "BUILD_STRING";
40 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
41 // Setup an error handler for the global new operator
45 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
48 #include "IOstreams.C"
50 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
53 bool Foam::JobInfo::constructed(false);
55 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
56 // Global error definitions (initialised by construction)
58 #include "messageStream.C"
63 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
64 // Read the debug and info switches
68 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
69 // Read file modification checking switches
71 #include "regIOobject.C"
73 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
74 // Read parallel communication switches
78 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
81 #include "constants.C"
82 #include "dimensionedConstants.C"
84 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
85 // Read and set cell models
87 #include "globalCellModeller.C"
89 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
90 // Create the jobInfo file in the $FOAM_JOB_DIR/runningJobs directory
94 // ************************************************************************* //