FIX: Static init issues with argList.C and dlLibraryTable.C
[freefoam.git] / src / OpenFOAM / global / global.C.in
blob2bac9b968e49cd9fe1550f04b281a6dabe367ab8
1 /*-------------------------------*- C++ -*-----------------------------------*\
2   =========                 |
3   \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
4    \\    /   O peration     |
5     \\  /    A nd           | Copyright (C) 1991-2010 OpenCFD Ltd.
6      \\/     M anipulation  |
7 -------------------------------------------------------------------------------
8 License
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
19     for more details.
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/>.
24 Description
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 <OpenFOAM/foamVersion.H>
37 const char* const Foam::FOAMversion = "@FOAM_VERSION@";
38 const char* const Foam::FOAMfullVersion = "@FOAM_VERSION_FULL@";
39 const char* const Foam::FOAMConfigDir = "@FOAM_INSTALL_CONFIG_PATH@";
40 const char* const Foam::FOAMbuild = "@FOAM_BUILD_NUMBER@";
42 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
43 // Setup an error handler for the global new operator
45 #include "global/new.C"
47 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
48 // Global IO streams
50 #include "db/IOstreams/IOstreams.C"
52 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
54 #include "global/JobInfo/JobInfo.H"
55 bool Foam::JobInfo::constructed(false);
57 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
58 // Global error definitions (initialised by construction)
60 #include "db/error//messageStream.C"
61 #include "db/error/error.C"
62 #include "db/error/IOerror.C"
63 #include "db/IOstreams/token/token.C"
65 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
66 // Read the debug and info switches
68 #include "global/debug/debug.C"
70 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
71 // Dynamic Pstream loading (requiring debug::controlDict())
73 #include "db/IOstreams/Pstreams/PstreamImpl.C"
75 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
76 // Initialize argList (requires Pstream and the I/O streams
78 #include "global/argList/argList.C"
80 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
81 // Read and set cell models
83 #include "meshes/meshShapes/cellModeller/globalCellModeller.C"
85 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
86 // Create the jobInfo file in the $FOAM_JOB_DIR/runningJobs directory
88 #include "global/JobInfo/JobInfo.C"
90 // ******************** vim: set ft=cpp sw=4 sts=4 et: ********************* //