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