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
...@@ -168,7 +168,7 @@ public: ...@@ -168,7 +168,7 @@ public:
virtual void writeFields() const virtual void writeFields() const
{ {
notImplemented("PDRDragModel::write()"); NotImplemented;
} }
}; };
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
...@@ -116,7 +116,7 @@ public: ...@@ -116,7 +116,7 @@ public:
//- Correct the flame-wrinking Xi //- Correct the flame-wrinking Xi
virtual void correct() virtual void correct()
{ {
notImplemented("transport::correct()"); NotImplemented;
} }
//- Correct the flame-wrinking Xi using the given convection scheme //- Correct the flame-wrinking Xi using the given convection scheme
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2013 OpenFOAM Foundation \\ / A nd | Copyright (C) 2013-2015 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
...@@ -152,7 +152,7 @@ Foam::tmp<Foam::scalarField> Foam::twoPhaseMixtureThermo::THE ...@@ -152,7 +152,7 @@ Foam::tmp<Foam::scalarField> Foam::twoPhaseMixtureThermo::THE
const labelList& cells const labelList& cells
) const ) const
{ {
notImplemented("twoPhaseMixtureThermo::THE(...)"); NotImplemented;
return T0; return T0;
} }
...@@ -165,7 +165,7 @@ Foam::tmp<Foam::scalarField> Foam::twoPhaseMixtureThermo::THE ...@@ -165,7 +165,7 @@ Foam::tmp<Foam::scalarField> Foam::twoPhaseMixtureThermo::THE
const label patchi const label patchi
) const ) const
{ {
notImplemented("twoPhaseMixtureThermo::THE(...)"); NotImplemented;
return T0; return T0;
} }
......
...@@ -122,14 +122,14 @@ public: ...@@ -122,14 +122,14 @@ public:
// Non-const access allowed for transport equations // Non-const access allowed for transport equations
virtual volScalarField& he() virtual volScalarField& he()
{ {
notImplemented("twoPhaseMixtureThermo::he()"); NotImplemented;
return thermo1_->he(); return thermo1_->he();
} }
//- Enthalpy/Internal energy [J/kg] //- Enthalpy/Internal energy [J/kg]
virtual const volScalarField& he() const virtual const volScalarField& he() const
{ {
notImplemented("twoPhaseMixtureThermo::he() const"); NotImplemented;
return thermo1_->he(); return thermo1_->he();
} }
......
...@@ -270,7 +270,7 @@ Foam::tmp<Foam::scalarField> Foam::multiphaseMixtureThermo::THE ...@@ -270,7 +270,7 @@ Foam::tmp<Foam::scalarField> Foam::multiphaseMixtureThermo::THE
const labelList& cells const labelList& cells
) const ) const
{ {
notImplemented("multiphaseMixtureThermo::THE(...)"); NotImplemented;
return T0; return T0;
} }
...@@ -283,7 +283,7 @@ Foam::tmp<Foam::scalarField> Foam::multiphaseMixtureThermo::THE ...@@ -283,7 +283,7 @@ Foam::tmp<Foam::scalarField> Foam::multiphaseMixtureThermo::THE
const label patchi const label patchi
) const ) const
{ {
notImplemented("multiphaseMixtureThermo::THE(...)"); NotImplemented;
return T0; return T0;
} }
......
...@@ -253,14 +253,14 @@ public: ...@@ -253,14 +253,14 @@ public:
// Non-const access allowed for transport equations // Non-const access allowed for transport equations
virtual volScalarField& he() virtual volScalarField& he()
{ {
notImplemented("multiphaseMixtureThermo::he()"); NotImplemented;
return phases_[0].thermo().he(); return phases_[0].thermo().he();
} }
//- Enthalpy/Internal energy [J/kg] //- Enthalpy/Internal energy [J/kg]
virtual const volScalarField& he() const virtual const volScalarField& he() const
{ {
notImplemented("multiphaseMixtureThermo::he() const"); NotImplemented;
return phases_[0].thermo().he(); return phases_[0].thermo().he();
} }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2013 OpenFOAM Foundation \\ / A nd | Copyright (C) 2013-2015 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
...@@ -80,7 +80,7 @@ Foam::phaseModel::phaseModel ...@@ -80,7 +80,7 @@ Foam::phaseModel::phaseModel
Foam::autoPtr<Foam::phaseModel> Foam::phaseModel::clone() const Foam::autoPtr<Foam::phaseModel> Foam::phaseModel::clone() const
{ {
notImplemented("phaseModel::clone() const"); NotImplemented;
return autoPtr<phaseModel>(NULL); return autoPtr<phaseModel>(NULL);
} }
......
...@@ -201,7 +201,7 @@ Foam::phaseModel::~phaseModel() ...@@ -201,7 +201,7 @@ Foam::phaseModel::~phaseModel()
Foam::autoPtr<Foam::phaseModel> Foam::phaseModel::clone() const Foam::autoPtr<Foam::phaseModel> Foam::phaseModel::clone() const
{ {
notImplemented("phaseModel::clone() const"); NotImplemented;
return autoPtr<phaseModel>(NULL); return autoPtr<phaseModel>(NULL);
} }
......
...@@ -67,7 +67,7 @@ Foam::phase::phase ...@@ -67,7 +67,7 @@ Foam::phase::phase
Foam::autoPtr<Foam::phase> Foam::phase::clone() const Foam::autoPtr<Foam::phase> Foam::phase::clone() const
{ {
notImplemented("phase::clone() const"); NotImplemented;
return autoPtr<phase>(NULL); return autoPtr<phase>(NULL);
} }
......
...@@ -108,10 +108,7 @@ Foam::saturationModels::AntoineExtended::Tsat ...@@ -108,10 +108,7 @@ Foam::saturationModels::AntoineExtended::Tsat
const volScalarField& p const volScalarField& p
) const ) const
{ {
notImplemented NotImplemented;
(
"saturationModels::AntoineExtended::Tsat(const volScalarField& p)"
);
return volScalarField::null(); return volScalarField::null();
} }
......
...@@ -115,10 +115,7 @@ Foam::saturationModels::ArdenBuck::Tsat ...@@ -115,10 +115,7 @@ Foam::saturationModels::ArdenBuck::Tsat
const volScalarField& p const volScalarField& p
) const ) const
{ {
notImplemented NotImplemented;
(
"saturationModels::ArdenBuck::Tsat(const volScalarField& p)"
);
return volScalarField::null(); return volScalarField::null();
} }
......
...@@ -56,13 +56,7 @@ Foam::PurePhaseModel<BasePhaseModel>::YiEqn ...@@ -56,13 +56,7 @@ Foam::PurePhaseModel<BasePhaseModel>::YiEqn
volScalarField& Yi volScalarField& Yi
) )
{ {
notImplemented NotImplemented;
(
"template<class BasePhaseModel> "
"Foam::tmp<Foam::fvScalarMatrix> "
"Foam::PurePhaseModel<BasePhaseModel>::YiEqn"
"(volScalarField& Yi) const"
);
return tmp<fvScalarMatrix>(); return tmp<fvScalarMatrix>();
} }
......
...@@ -76,7 +76,7 @@ Foam::phaseModel::phaseModel ...@@ -76,7 +76,7 @@ Foam::phaseModel::phaseModel
Foam::autoPtr<Foam::phaseModel> Foam::phaseModel::clone() const Foam::autoPtr<Foam::phaseModel> Foam::phaseModel::clone() const
{ {
notImplemented("phaseModel::clone() const"); NotImplemented;
return autoPtr<phaseModel>(NULL); return autoPtr<phaseModel>(NULL);
} }
...@@ -167,7 +167,7 @@ bool Foam::phaseModel::compressible() const ...@@ -167,7 +167,7 @@ bool Foam::phaseModel::compressible() const
const Foam::tmp<Foam::volScalarField>& Foam::phaseModel::divU() const const Foam::tmp<Foam::volScalarField>& Foam::phaseModel::divU() const
{ {
notImplemented("Foam::phaseModel::divU()"); NotImplemented;
static tmp<Foam::volScalarField> divU_(NULL); static tmp<Foam::volScalarField> divU_(NULL);
return divU_; return divU_;
} }
...@@ -183,7 +183,7 @@ void Foam::phaseModel::divU(const tmp<volScalarField>& divU) ...@@ -183,7 +183,7 @@ void Foam::phaseModel::divU(const tmp<volScalarField>& divU)
const Foam::volScalarField& Foam::phaseModel::K() const const Foam::volScalarField& Foam::phaseModel::K() const
{ {
notImplemented("Foam::phaseModel::K()"); NotImplemented;
return volScalarField::null(); return volScalarField::null();
} }
......
...@@ -213,7 +213,7 @@ bool Foam::RASModels::kineticTheoryModel::read() ...@@ -213,7 +213,7 @@ bool Foam::RASModels::kineticTheoryModel::read()
Foam::tmp<Foam::volScalarField> Foam::tmp<Foam::volScalarField>
Foam::RASModels::kineticTheoryModel::k() const Foam::RASModels::kineticTheoryModel::k() const
{ {
notImplemented("kineticTheoryModel::k()"); NotImplemented;
return nut_; return nut_;
} }
...@@ -221,7 +221,7 @@ Foam::RASModels::kineticTheoryModel::k() const ...@@ -221,7 +221,7 @@ Foam::RASModels::kineticTheoryModel::k() const
Foam::tmp<Foam::volScalarField> Foam::tmp<Foam::volScalarField>
Foam::RASModels::kineticTheoryModel::epsilon() const Foam::RASModels::kineticTheoryModel::epsilon() const
{ {
notImplemented("kineticTheoryModel::epsilon()"); NotImplemented;
return nut_; return nut_;
} }
......
...@@ -111,7 +111,7 @@ bool Foam::RASModels::phasePressureModel::read() ...@@ -111,7 +111,7 @@ bool Foam::RASModels::phasePressureModel::read()
Foam::tmp<Foam::volScalarField> Foam::tmp<Foam::volScalarField>
Foam::RASModels::phasePressureModel::k() const Foam::RASModels::phasePressureModel::k() const
{ {
notImplemented("phasePressureModel::k()"); NotImplemented;
return nut_; return nut_;
} }
...@@ -119,7 +119,7 @@ Foam::RASModels::phasePressureModel::k() const ...@@ -119,7 +119,7 @@ Foam::RASModels::phasePressureModel::k() const
Foam::tmp<Foam::volScalarField> Foam::tmp<Foam::volScalarField>
Foam::RASModels::phasePressureModel::epsilon() const Foam::RASModels::phasePressureModel::epsilon() const
{ {
notImplemented("phasePressureModel::epsilon()"); NotImplemented;
return nut_; return nut_;
} }
......
...@@ -114,7 +114,7 @@ public: ...@@ -114,7 +114,7 @@ public:
autoPtr<IATEsource> clone() const autoPtr<IATEsource> clone() const
{ {
notImplemented("autoPtr<IATEsource> clone() const"); NotImplemented;
return autoPtr<IATEsource>(NULL); return autoPtr<IATEsource>(NULL);
} }
......
...@@ -219,7 +219,7 @@ bool Foam::RASModels::kineticTheoryModel::read() ...@@ -219,7 +219,7 @@ bool Foam::RASModels::kineticTheoryModel::read()
Foam::tmp<Foam::volScalarField> Foam::tmp<Foam::volScalarField>
Foam::RASModels::kineticTheoryModel::k() const Foam::RASModels::kineticTheoryModel::k() const
{ {
notImplemented("kineticTheoryModel::k()"); NotImplemented;
return nut_; return nut_;
} }
...@@ -227,7 +227,7 @@ Foam::RASModels::kineticTheoryModel::k() const ...@@ -227,7 +227,7 @@ Foam::RASModels::kineticTheoryModel::k() const
Foam::tmp<Foam::volScalarField> Foam::tmp<Foam::volScalarField>
Foam::RASModels::kineticTheoryModel::epsilon() const Foam::RASModels::kineticTheoryModel::epsilon() const
{ {
notImplemented("kineticTheoryModel::epsilon()"); NotImplemented;
return nut_; return nut_;
} }
......
...@@ -117,7 +117,7 @@ bool Foam::RASModels::phasePressureModel::read() ...@@ -117,7 +117,7 @@ bool Foam::RASModels::phasePressureModel::read()
Foam::tmp<Foam::volScalarField> Foam::tmp<Foam::volScalarField>
Foam::RASModels::phasePressureModel::k() const Foam::RASModels::phasePressureModel::k() const
{ {
notImplemented("phasePressureModel::k()"); NotImplemented;
return nut_; return nut_;
} }
...@@ -125,7 +125,7 @@ Foam::RASModels::phasePressureModel::k() const ...@@ -125,7 +125,7 @@ Foam::RASModels::phasePressureModel::k() const
Foam::tmp<Foam::volScalarField> Foam::tmp<Foam::volScalarField>
Foam::RASModels::phasePressureModel::epsilon() const Foam::RASModels::phasePressureModel::epsilon() const
{ {
notImplemented("phasePressureModel::epsilon()"); NotImplemented;
return nut_; return nut_;
} }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2013 OpenFOAM Foundation \\ / A nd | Copyright (C) 2013-2015 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
...@@ -113,7 +113,7 @@ public: ...@@ -113,7 +113,7 @@ public:
autoPtr<IATEsource> clone() const autoPtr<IATEsource> clone() const
{ {
notImplemented("autoPtr<IATEsource> clone() const"); NotImplemented;
return autoPtr<IATEsource>(NULL); return autoPtr<IATEsource>(NULL);
} }
......
...@@ -792,13 +792,7 @@ bool Foam::DistributedDelaunayMesh<Triangulation>::distribute ...@@ -792,13 +792,7 @@ bool Foam::DistributedDelaunayMesh<Triangulation>::distribute
const boundBox& bb const boundBox& bb
) )
{ {
notImplemented NotImplemented;
(
"Foam::DistributedDelaunayMesh<Triangulation>::distribute"
"("
" const boundBox& bb"
")"
);
if (!Pstream::parRun()) if (!Pstream::parRun())
{ {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment