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:
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -26,15 +26,10 @@ License
|
||||
#include "zeroGradientFvPatchField.H"
|
||||
#include "fvPatchFieldMapper.H"
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
namespace Foam
|
||||
{
|
||||
|
||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||
|
||||
template<class Type>
|
||||
zeroGradientFvPatchField<Type>::zeroGradientFvPatchField
|
||||
Foam::zeroGradientFvPatchField<Type>::zeroGradientFvPatchField
|
||||
(
|
||||
const fvPatch& p,
|
||||
const DimensionedField<Type, volMesh>& iF
|
||||
@ -45,20 +40,7 @@ zeroGradientFvPatchField<Type>::zeroGradientFvPatchField
|
||||
|
||||
|
||||
template<class Type>
|
||||
zeroGradientFvPatchField<Type>::zeroGradientFvPatchField
|
||||
(
|
||||
const zeroGradientFvPatchField<Type>& ptf,
|
||||
const fvPatch& p,
|
||||
const DimensionedField<Type, volMesh>& iF,
|
||||
const fvPatchFieldMapper& mapper
|
||||
)
|
||||
:
|
||||
fvPatchField<Type>(ptf, p, iF, mapper)
|
||||
{}
|
||||
|
||||
|
||||
template<class Type>
|
||||
zeroGradientFvPatchField<Type>::zeroGradientFvPatchField
|
||||
Foam::zeroGradientFvPatchField<Type>::zeroGradientFvPatchField
|
||||
(
|
||||
const fvPatch& p,
|
||||
const DimensionedField<Type, volMesh>& iF,
|
||||
@ -72,7 +54,20 @@ zeroGradientFvPatchField<Type>::zeroGradientFvPatchField
|
||||
|
||||
|
||||
template<class Type>
|
||||
zeroGradientFvPatchField<Type>::zeroGradientFvPatchField
|
||||
Foam::zeroGradientFvPatchField<Type>::zeroGradientFvPatchField
|
||||
(
|
||||
const zeroGradientFvPatchField<Type>& ptf,
|
||||
const fvPatch& p,
|
||||
const DimensionedField<Type, volMesh>& iF,
|
||||
const fvPatchFieldMapper& mapper
|
||||
)
|
||||
:
|
||||
fvPatchField<Type>(ptf, p, iF, mapper)
|
||||
{}
|
||||
|
||||
|
||||
template<class Type>
|
||||
Foam::zeroGradientFvPatchField<Type>::zeroGradientFvPatchField
|
||||
(
|
||||
const zeroGradientFvPatchField& zgpf
|
||||
)
|
||||
@ -82,7 +77,7 @@ zeroGradientFvPatchField<Type>::zeroGradientFvPatchField
|
||||
|
||||
|
||||
template<class Type>
|
||||
zeroGradientFvPatchField<Type>::zeroGradientFvPatchField
|
||||
Foam::zeroGradientFvPatchField<Type>::zeroGradientFvPatchField
|
||||
(
|
||||
const zeroGradientFvPatchField& zgpf,
|
||||
const DimensionedField<Type, volMesh>& iF
|
||||
@ -95,7 +90,7 @@ zeroGradientFvPatchField<Type>::zeroGradientFvPatchField
|
||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||
|
||||
template<class Type>
|
||||
void zeroGradientFvPatchField<Type>::evaluate(const Pstream::commsTypes)
|
||||
void Foam::zeroGradientFvPatchField<Type>::evaluate(const Pstream::commsTypes)
|
||||
{
|
||||
if (!this->updated())
|
||||
{
|
||||
@ -108,7 +103,8 @@ void zeroGradientFvPatchField<Type>::evaluate(const Pstream::commsTypes)
|
||||
|
||||
|
||||
template<class Type>
|
||||
tmp<Field<Type> > zeroGradientFvPatchField<Type>::valueInternalCoeffs
|
||||
Foam::tmp<Foam::Field<Type> >
|
||||
Foam::zeroGradientFvPatchField<Type>::valueInternalCoeffs
|
||||
(
|
||||
const tmp<scalarField>&
|
||||
) const
|
||||
@ -121,7 +117,8 @@ tmp<Field<Type> > zeroGradientFvPatchField<Type>::valueInternalCoeffs
|
||||
|
||||
|
||||
template<class Type>
|
||||
tmp<Field<Type> > zeroGradientFvPatchField<Type>::valueBoundaryCoeffs
|
||||
Foam::tmp<Foam::Field<Type> >
|
||||
Foam::zeroGradientFvPatchField<Type>::valueBoundaryCoeffs
|
||||
(
|
||||
const tmp<scalarField>&
|
||||
) const
|
||||
@ -134,7 +131,8 @@ tmp<Field<Type> > zeroGradientFvPatchField<Type>::valueBoundaryCoeffs
|
||||
|
||||
|
||||
template<class Type>
|
||||
tmp<Field<Type> > zeroGradientFvPatchField<Type>::gradientInternalCoeffs() const
|
||||
Foam::tmp<Foam::Field<Type> >
|
||||
Foam::zeroGradientFvPatchField<Type>::gradientInternalCoeffs() const
|
||||
{
|
||||
return tmp<Field<Type> >
|
||||
(
|
||||
@ -144,7 +142,8 @@ tmp<Field<Type> > zeroGradientFvPatchField<Type>::gradientInternalCoeffs() const
|
||||
|
||||
|
||||
template<class Type>
|
||||
tmp<Field<Type> > zeroGradientFvPatchField<Type>::gradientBoundaryCoeffs() const
|
||||
Foam::tmp<Foam::Field<Type> >
|
||||
Foam::zeroGradientFvPatchField<Type>::gradientBoundaryCoeffs() const
|
||||
{
|
||||
return tmp<Field<Type> >
|
||||
(
|
||||
@ -153,8 +152,4 @@ tmp<Field<Type> > zeroGradientFvPatchField<Type>::gradientBoundaryCoeffs() const
|
||||
}
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
} // End namespace Foam
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
Reference in New Issue
Block a user