fvPatchFields, fvsPatchFields, pointPatchFields: specifically declare namespace of functions

It is better to declare the namespace of each function in the C file
rather than "open" the namespace as this may lead to inconsistencies
between the declaration in the H files and definition in the C file.
This commit is contained in:
Henry Weller
2015-12-08 22:29:05 +00:00
parent 4aa6052a66
commit fb871828a5
44 changed files with 857 additions and 1216 deletions

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -25,15 +25,10 @@ License
#include "zeroGradientPointPatchField.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
namespace Foam
{
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
template<class Type>
zeroGradientPointPatchField<Type>::zeroGradientPointPatchField
Foam::zeroGradientPointPatchField<Type>::zeroGradientPointPatchField
(
const pointPatch& p,
const DimensionedField<Type, pointMesh>& iF
@ -44,7 +39,7 @@ zeroGradientPointPatchField<Type>::zeroGradientPointPatchField
template<class Type>
zeroGradientPointPatchField<Type>::zeroGradientPointPatchField
Foam::zeroGradientPointPatchField<Type>::zeroGradientPointPatchField
(
const pointPatch& p,
const DimensionedField<Type, pointMesh>& iF,
@ -56,7 +51,7 @@ zeroGradientPointPatchField<Type>::zeroGradientPointPatchField
template<class Type>
zeroGradientPointPatchField<Type>::zeroGradientPointPatchField
Foam::zeroGradientPointPatchField<Type>::zeroGradientPointPatchField
(
const zeroGradientPointPatchField<Type>& ptf,
const pointPatch& p,
@ -69,7 +64,7 @@ zeroGradientPointPatchField<Type>::zeroGradientPointPatchField
template<class Type>
zeroGradientPointPatchField<Type>::zeroGradientPointPatchField
Foam::zeroGradientPointPatchField<Type>::zeroGradientPointPatchField
(
const zeroGradientPointPatchField<Type>& ptf,
const DimensionedField<Type, pointMesh>& iF
@ -79,8 +74,4 @@ zeroGradientPointPatchField<Type>::zeroGradientPointPatchField
{}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace Foam
// ************************************************************************* //