Commit 42fb1b9e authored by Henry Weller's avatar Henry Weller
Browse files

Updated notImplemented -> NotImplemented

The new NotImplemented macro uses __PRETTY_FUNCTION__ for GNU compatible
compilers otherwise __func__ to provide the function name string.
parent ef07a816
......@@ -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
......@@ -181,7 +181,7 @@ template<class Type>
Foam::tmp<Foam::Field<Type> >
Foam::coupledFvPatchField<Type>::gradientInternalCoeffs() const
{
notImplemented("coupledFvPatchField<Type>::gradientInternalCoeffs()");
NotImplemented;
return -Type(pTraits<Type>::one)*this->patch().deltaCoeffs();
}
......@@ -201,7 +201,7 @@ template<class Type>
Foam::tmp<Foam::Field<Type> >
Foam::coupledFvPatchField<Type>::gradientBoundaryCoeffs() const
{
notImplemented("coupledFvPatchField<Type>::gradientBoundaryCoeffs()");
NotImplemented;
return -this->gradientInternalCoeffs();
}
......
......@@ -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
......@@ -147,10 +147,7 @@ public:
//- Return patch-normal gradient
virtual tmp<Field<Type> > snGrad() const
{
notImplemented
(
type() + "::coupledFvPatchField<Type>::snGrad()"
);
NotImplemented;
return *this;
}
......
......@@ -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
......@@ -69,12 +69,7 @@ slicedFvPatchField<Type>::slicedFvPatchField
:
fvPatchField<Type>(ptf, p, iF, mapper)
{
notImplemented
(
"slicedFvPatchField<Type>::"
"slicedFvPatchField(const slicedFvPatchField<Type>&, "
"const fvPatch&, const Field<Type>&, const fvPatchFieldMapper&)"
);
NotImplemented;
}
......@@ -88,11 +83,7 @@ slicedFvPatchField<Type>::slicedFvPatchField
:
fvPatchField<Type>(p, iF, dict)
{
notImplemented
(
"slicedFvPatchField<Type>::"
"slicedFvPatchField(const Field<Type>&, const dictionary&)"
);
NotImplemented;
}
......@@ -164,11 +155,7 @@ slicedFvPatchField<Type>::~slicedFvPatchField<Type>()
template<class Type>
tmp<Field<Type> > slicedFvPatchField<Type>::snGrad() const
{
notImplemented
(
"slicedFvPatchField<Type>::"
"snGrad()"
);
NotImplemented;
return Field<Type>::null();
}
......@@ -177,22 +164,14 @@ tmp<Field<Type> > slicedFvPatchField<Type>::snGrad() const
template<class Type>
void slicedFvPatchField<Type>::updateCoeffs()
{
notImplemented
(
"slicedFvPatchField<Type>::"
"updateCoeffs()"
);
NotImplemented;
}
template<class Type>
tmp<Field<Type> > slicedFvPatchField<Type>::patchInternalField() const
{
notImplemented
(
"slicedFvPatchField<Type>::"
"patchInternalField()"
);
NotImplemented;
return Field<Type>::null();
}
......@@ -201,11 +180,7 @@ tmp<Field<Type> > slicedFvPatchField<Type>::patchInternalField() const
template<class Type>
void slicedFvPatchField<Type>::patchInternalField(Field<Type>&) const
{
notImplemented
(
"slicedFvPatchField<Type>::"
"patchInternalField(Field<Type>&)"
);
NotImplemented;
}
......@@ -215,11 +190,7 @@ tmp<Field<Type> > slicedFvPatchField<Type>::patchNeighbourField
const Field<Type>& iField
) const
{
notImplemented
(
"slicedFvPatchField<Type>::"
"patchNeighbourField(const DimensionedField<Type, volMesh>& iField)"
);
NotImplemented;
return Field<Type>::null();
}
......@@ -228,11 +199,7 @@ tmp<Field<Type> > slicedFvPatchField<Type>::patchNeighbourField
template<class Type>
tmp<Field<Type> > slicedFvPatchField<Type>::patchNeighbourField() const
{
notImplemented
(
"slicedFvPatchField<Type>::"
"patchNeighbourField()"
);
NotImplemented;
return Field<Type>::null();
}
......@@ -244,11 +211,7 @@ tmp<Field<Type> > slicedFvPatchField<Type>::valueInternalCoeffs
const tmp<scalarField>&
) const
{
notImplemented
(
"slicedFvPatchField<Type>::"
"valueInternalCoeffs(const tmp<scalarField>&)"
);
NotImplemented;
return Field<Type>::null();
}
......@@ -260,11 +223,7 @@ tmp<Field<Type> > slicedFvPatchField<Type>::valueBoundaryCoeffs
const tmp<scalarField>&
) const
{
notImplemented
(
"slicedFvPatchField<Type>::"
"valueBoundaryCoeffs(const tmp<scalarField>&)"
);
NotImplemented;
return Field<Type>::null();
}
......@@ -273,11 +232,7 @@ tmp<Field<Type> > slicedFvPatchField<Type>::valueBoundaryCoeffs
template<class Type>
tmp<Field<Type> > slicedFvPatchField<Type>::gradientInternalCoeffs() const
{
notImplemented
(
"slicedFvPatchField<Type>::"
"gradientInternalCoeffs()"
);
NotImplemented;
return Field<Type>::null();
}
......@@ -286,11 +241,7 @@ tmp<Field<Type> > slicedFvPatchField<Type>::gradientInternalCoeffs() const
template<class Type>
tmp<Field<Type> > slicedFvPatchField<Type>::gradientBoundaryCoeffs() const
{
notImplemented
(
"slicedFvPatchField<Type>::"
"gradientBoundaryCoeffs()"
);
NotImplemented;
return Field<Type>::null();
}
......
......@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
......@@ -138,17 +138,7 @@ void Foam::jumpCyclicFvPatchField<Type>::updateInterfaceMatrix
const Pstream::commsTypes
) const
{
notImplemented
(
"void Foam::jumpCyclicFvPatchField<Type>::updateInterfaceMatrix"
"("
"scalarField&, "
"const scalarField&, "
"const scalarField&, "
"const direction, "
"const Pstream::commsTypes"
") const"
);
NotImplemented;
}
......
......@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2012-2014 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2012-2015 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
......@@ -140,17 +140,7 @@ void Foam::jumpCyclicAMIFvPatchField<Type>::updateInterfaceMatrix
const Pstream::commsTypes
) const
{
notImplemented
(
"void Foam::jumpCyclicAMIFvPatchField<Type>::updateInterfaceMatrix"
"("
"scalarField&, "
"const scalarField&, "
"const scalarField& coeffs,"
"const direction, "
"const Pstream::commsTypes"
") const"
);
NotImplemented;
}
......
......@@ -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
......@@ -386,10 +386,7 @@ public:
const scalarField& deltaCoeffs
) const
{
notImplemented
(
type() + "::snGrad(const scalarField& deltaCoeffs)"
);
NotImplemented;
return *this;
}
......@@ -411,7 +408,7 @@ public:
//- Return patchField on the opposite patch of a coupled patch
virtual tmp<Field<Type> > patchNeighbourField() const
{
notImplemented(type() + "patchNeighbourField()");
NotImplemented;
return *this;
}
......@@ -436,11 +433,7 @@ public:
const tmp<Field<scalar> >&
) const
{
notImplemented
(
type()
+ "::valueInternalCoeffs(const tmp<Field<scalar> >&)"
);
NotImplemented;
return *this;
}
......@@ -451,11 +444,7 @@ public:
const tmp<Field<scalar> >&
) const
{
notImplemented
(
type()
+ "::valueBoundaryCoeffs(const tmp<Field<scalar> >&)"
);
NotImplemented;
return *this;
}
......@@ -463,7 +452,7 @@ public:
// evaluation of the gradient of this patchField
virtual tmp<Field<Type> > gradientInternalCoeffs() const
{
notImplemented(type() + "::gradientInternalCoeffs()");
NotImplemented;
return *this;
}
......@@ -475,11 +464,7 @@ public:
const scalarField& deltaCoeffs
) const
{
notImplemented
(
type()
+ "::gradientInternalCoeffs(const scalarField& deltaCoeffs)"
);
NotImplemented;
return *this;
}
......@@ -487,7 +472,7 @@ public:
// evaluation of the gradient of this patchField
virtual tmp<Field<Type> > gradientBoundaryCoeffs() const
{
notImplemented(type() + "::gradientBoundaryCoeffs()");
NotImplemented;
return *this;
}
......@@ -499,11 +484,7 @@ public:
const scalarField& deltaCoeffs
) const
{
notImplemented
(
type()
+ "::gradientBoundaryCoeffs(const scalarField& deltaCoeffs)"
);
NotImplemented;
return *this;
}
......
......@@ -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
......@@ -69,12 +69,7 @@ slicedFvsPatchField<Type>::slicedFvsPatchField
:
fvsPatchField<Type>(ptf, p, iF, mapper)
{
notImplemented
(
"slicedFvsPatchField<Type>::"
"slicedFvsPatchField(const slicedFvsPatchField<Type>&, "
"const fvPatch&, const Field<Type>&, const fvPatchFieldMapper&)"
);
NotImplemented;
}
......@@ -88,11 +83,7 @@ slicedFvsPatchField<Type>::slicedFvsPatchField
:
fvsPatchField<Type>(p, iF, Field<Type>("value", dict, p.size()))
{
notImplemented
(
"slicedFvsPatchField<Type>::"
"slicedFvsPatchField(const Field<Type>&, const dictionary&)"
);
NotImplemented;
}
......
......@@ -105,7 +105,7 @@ tmp<GeometricField<Type, fvPatchField, volMesh> > ddtScheme<Type>::fvcDdt
const GeometricField<Type, fvPatchField, volMesh>& vf
)
{
notImplemented("fvmDdt(alpha, rho, psi");
NotImplemented;
return tmp<GeometricField<Type, fvPatchField, volMesh> >
(
......@@ -122,7 +122,7 @@ tmp<fvMatrix<Type> > ddtScheme<Type>::fvmDdt
const GeometricField<Type, fvPatchField, volMesh>& vf
)
{
notImplemented("fvmDdt(alpha, rho, psi");
NotImplemented;
return tmp<fvMatrix<Type> >
(
......
......@@ -288,7 +288,7 @@ tmp<surfaceScalarField> SS<scalar>::fvcDdtUfCorr \
const surfaceScalarField& Uf \
) \
{ \
notImplemented(#SS"<scalar>::fvcDdtUfCorr"); \
NotImplemented; \
return surfaceScalarField::null(); \
} \
\
......@@ -299,7 +299,7 @@ tmp<surfaceScalarField> SS<scalar>::fvcDdtPhiCorr \
const surfaceScalarField& phi \
) \
{ \
notImplemented(#SS"<scalar>::fvcDdtPhiCorr"); \
NotImplemented; \
return surfaceScalarField::null(); \
} \
\
......@@ -311,7 +311,7 @@ tmp<surfaceScalarField> SS<scalar>::fvcDdtUfCorr \
const surfaceScalarField& Uf \
) \
{ \
notImplemented(#SS"<scalar>::fvcDdtUfCorr"); \
NotImplemented; \
return surfaceScalarField::null(); \
} \
\
......@@ -323,7 +323,7 @@ tmp<surfaceScalarField> SS<scalar>::fvcDdtPhiCorr \
const surfaceScalarField& phi \
) \
{ \
notImplemented(#SS"<scalar>::fvcDdtPhiCorr"); \
NotImplemented; \
return surfaceScalarField::null(); \
} \
\
......
......@@ -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
......@@ -56,11 +56,7 @@ orthogonalSnGrad<Type>::correction
const GeometricField<Type, fvPatchField, volMesh>&
) const
{
notImplemented
(
"orthogonalSnGrad<Type>::correction"
"(const GeometricField<Type, fvPatchField, volMesh>&)"
);
NotImplemented;
return tmp<GeometricField<Type, fvsPatchField, surfaceMesh> >(NULL);
}
......
......@@ -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
......@@ -56,11 +56,7 @@ uncorrectedSnGrad<Type>::correction
const GeometricField<Type, fvPatchField, volMesh>&
) const
{
notImplemented
(
"uncorrectedSnGrad<Type>::correction"
"(const GeometricField<Type, fvPatchField, volMesh>&)"
);
NotImplemented;
return tmp<GeometricField<Type, fvsPatchField, surfaceMesh> >(NULL);
}
......
......@@ -39,10 +39,7 @@ namespace MULES
template<class RhoType>
inline tmp<surfaceScalarField> interpolate(const RhoType& rho)
{
notImplemented
(
"tmp<surfaceScalarField> interpolate(const RhoType& rho)"
);
NotImplemented;
return tmp<surfaceScalarField>(NULL);
}
......
......@@ -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
......@@ -108,11 +108,7 @@ public:
const GeometricField<scalar, fvPatchField, volMesh>&
) const
{
notImplemented
(
"harmonic::weights"
"(const GeometricField<scalar, fvPatchField, volMesh>&)"
);
NotImplemented;
return tmp<surfaceScalarField>(NULL);
}
......
......@@ -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
......@@ -108,11 +108,7 @@ public:
const GeometricField<Type, fvPatchField, volMesh>&
) const
{
notImplemented
(
"localMax::weights"
"(const GeometricField<Type, fvPatchField, volMesh>&)"
);
NotImplemented;
return tmp<surfaceScalarField>(NULL);
}
......
......@@ -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
......@@ -108,11 +108,7 @@ public:
const GeometricField<Type, fvPatchField, volMesh>&
) const
{
notImplemented
(
"localMin::weights"
"(const GeometricField<Type, fvPatchField, volMesh>&)"
);
NotImplemented;
return tmp<surfaceScalarField>(NULL);
}
......
......@@ -131,7 +131,7 @@ public:
//- Return clone
autoPtr<option> clone() const
{
notImplemented("autoPtr<option> clone() const");
NotImplemented;
return autoPtr<option>(NULL);
}
......
......@@ -254,11 +254,7 @@ public:
const label fieldI
)
{
notImplemented
(
"effectivenessHeatExchangerSource::addSup(eqn, fieldI): "
"only compressible solvers supported."
);
NotImplemented;
}
......
......@@ -29,13 +29,7 @@ License
bool Foam::fv::meanVelocityForce::read(const dictionary& dict)
{
notImplemented
(
"bool Foam::fv::meanVelocityForce::read"