diff --git a/src/OpenFOAM/Make/files b/src/OpenFOAM/Make/files index e52877be3e..062219b4ac 100644 --- a/src/OpenFOAM/Make/files +++ b/src/OpenFOAM/Make/files @@ -242,6 +242,7 @@ $(IOdictionary)/unwatchedIOdictionary.C db/IOobjects/IOMap/IOMapName.C db/IOobjects/decomposedBlockData/decomposedBlockData.C +db/IOobjects/GlobalIOList/GlobalIOLists.C db/IOobjects/GlobalIOField/GlobalIOFields.C diff --git a/src/OpenFOAM/db/IOobjects/GlobalIOField/GlobalIOFields.C b/src/OpenFOAM/db/IOobjects/GlobalIOField/GlobalIOFields.C index fda3f81587..731df82c3e 100644 --- a/src/OpenFOAM/db/IOobjects/GlobalIOField/GlobalIOFields.C +++ b/src/OpenFOAM/db/IOobjects/GlobalIOField/GlobalIOFields.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2017-2018 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2017-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -23,42 +23,22 @@ License \*---------------------------------------------------------------------------*/ -#include "GlobalIOField.H" +#include "GlobalIOFields.H" // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // namespace Foam { - defineTemplateTypeNameAndDebugWithName + defineTemplateTypeNameWithName(labelGlobalIOField, "labelField"); + defineTemplateTypeNameWithName(scalarGlobalIOField, "scalarField"); + defineTemplateTypeNameWithName(vectorGlobalIOField, "vectorField"); + defineTemplateTypeNameWithName ( - GlobalIOField, - "scalarField", - 0 - ); - defineTemplateTypeNameAndDebugWithName - ( - GlobalIOField, - "vectorField", - 0 - ); - defineTemplateTypeNameAndDebugWithName - ( - GlobalIOField, - "sphericalTensorField", - 0 - ); - defineTemplateTypeNameAndDebugWithName - ( - GlobalIOField, - "symmTensorField", - 0 - ); - defineTemplateTypeNameAndDebugWithName - ( - GlobalIOField, - "tensorField", - 0 + sphericalTensorGlobalIOField, + "sphericalTensorField" ); + defineTemplateTypeNameWithName(symmTensorGlobalIOField, "symmTensorField"); + defineTemplateTypeNameWithName(tensorGlobalIOField, "tensorField"); } diff --git a/src/OpenFOAM/db/IOobjects/GlobalIOField/GlobalIOFields.H b/src/OpenFOAM/db/IOobjects/GlobalIOField/GlobalIOFields.H new file mode 100644 index 0000000000..7ebb5ab13a --- /dev/null +++ b/src/OpenFOAM/db/IOobjects/GlobalIOField/GlobalIOFields.H @@ -0,0 +1,74 @@ +/*---------------------------------------------------------------------------*\ + ========= | + \\ / F ield | OpenFOAM: The Open Source CFD Toolbox + \\ / O peration | Website: https://openfoam.org + \\ / A nd | Copyright (C) 2020 OpenFOAM Foundation + \\/ 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 3 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, see . + +\*---------------------------------------------------------------------------*/ + +#include "primitiveFields.H" +#include "GlobalIOField.H" + +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +namespace Foam +{ + typedef GlobalIOField