globalIOLists.H
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration |
5  \\ / A nd | www.openfoam.com
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8  Copyright (C) 2015-2017 OpenFOAM Foundation
9 -------------------------------------------------------------------------------
10 License
11  This file is part of OpenFOAM.
12 
13  OpenFOAM is free software: you can redistribute it and/or modify it
14  under the terms of the GNU General Public License as published by
15  the Free Software Foundation, either version 3 of the License, or
16  (at your option) any later version.
17 
18  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
19  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
20  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21  for more details.
22 
23  You should have received a copy of the GNU General Public License
24  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
25 
26 Typedef
27  Foam::globalIOLists
28 
29 Description
30  Typedefs for globalIOLists of primitive types. These are fully compatible
31  with 'normal' IOLists except have global filePath() scope.
32 
33 \*---------------------------------------------------------------------------*/
34 
35 #ifndef globalIOLists_H
36 #define globalIOLists_H
37 
38 #include "primitiveFields.H"
39 #include "GlobalIOList.H"
40 
41 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
42 
43 namespace Foam
44 {
51 
52  //- Template function for obtaining global status
53  template<>
54  inline bool typeGlobal<labelGlobalIOList>()
55  {
56  return true;
57  }
58 
59  template<>
60  inline bool typeGlobal<scalarGlobalIOList>()
61  {
62  return true;
63  }
64 
65  template<>
66  inline bool typeGlobal<vectorGlobalIOList>()
67  {
68  return true;
69  }
70 
71  template<>
73  {
74  return true;
75  }
76 
77  template<>
79  {
80  return true;
81  }
82 
83  template<>
84  inline bool typeGlobal<tensorGlobalIOList>()
85  {
86  return true;
87  }
88 }
89 
90 
91 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
92 
93 #endif
94 
95 // ************************************************************************* //
GlobalIOList< symmTensor > symmTensorGlobalIOList
Definition: globalIOLists.H:43
bool typeGlobal< vectorGlobalIOList >()
Definition: globalIOLists.H:62
GlobalIOList< sphericalTensor > sphericalTensorGlobalIOList
Definition: globalIOLists.H:42
bool typeGlobal< sphericalTensorGlobalIOList >()
Definition: globalIOLists.H:68
bool typeGlobal< scalarGlobalIOList >()
Definition: globalIOLists.H:56
GlobalIOList< label > labelGlobalIOList
Definition: globalIOLists.H:39
GlobalIOList< scalar > scalarGlobalIOList
Definition: globalIOLists.H:40
IOList with global data (so optionally read from master)
Definition: GlobalIOList.H:48
GlobalIOList< tensor > tensorGlobalIOList
Definition: globalIOLists.H:44
Specialisations of Field<T> for scalar, vector and tensor.
bool typeGlobal< tensorGlobalIOList >()
Definition: globalIOLists.H:80
bool typeGlobal< labelGlobalIOList >()
Template function for obtaining global status.
Definition: globalIOLists.H:50
GlobalIOList< vector > vectorGlobalIOList
Definition: globalIOLists.H:41
bool typeGlobal< symmTensorGlobalIOList >()
Definition: globalIOLists.H:74
Namespace for OpenFOAM.