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
......@@ -39,7 +39,7 @@ defineTypeNameAndDebug(lduMesh, 0);
const Foam::objectRegistry& Foam::lduMesh::thisDb() const
{
notImplemented("lduMesh::thisDb() const");
NotImplemented;
const objectRegistry* orPtr_ = NULL;
return *orPtr_;
}
......
......@@ -229,10 +229,7 @@ public:
void updateMesh(const mapPolyMesh&)
{
notImplemented
(
"mapAddedPolyMesh::updateMesh(const mapPolyMesh&)"
);
NotImplemented;
}
};
......
......@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
......@@ -666,10 +666,7 @@ public:
//- Correct for topo change.
void updateMesh(const mapPolyMesh&)
{
notImplemented
(
"mapDistribute::updateMesh(const mapPolyMesh&)"
);
NotImplemented;
}
// Member Operators
......
......@@ -106,10 +106,7 @@ public:
//- Correct for topo change.
void updateMesh(const mapPolyMesh&)
{
notImplemented
(
"mapDistributeLagrangian::updateMesh(const mapPolyMesh&)"
);
NotImplemented;
}
};
......
......@@ -249,10 +249,7 @@ public:
//- Correct for topo change.
void updateMesh(const mapPolyMesh&)
{
notImplemented
(
"mapDistributePolyMesh::updateMesh(const mapPolyMesh&)"
);
NotImplemented;
}
};
......
......@@ -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
......@@ -73,7 +73,7 @@ public:
bool writeData(Ostream&) const
{
notImplemented("writeData(Ostream&) const");
NotImplemented;
return false;
}
};
......
......@@ -247,20 +247,20 @@ public:
//- Does this side own the patch ?
virtual bool owner() const
{
notImplemented("oldCyclicPolyPatch::owner()");
NotImplemented;
return true;
}
//- Transform a patch-based position from other side to this side
virtual void transformPosition(pointField& l) const
{
notImplemented("transformPosition(pointField&)");
NotImplemented;
}
//- Transform a patch-based position from other side to this side
virtual void transformPosition(point&, const label facei) const
{
notImplemented("transformPosition(point&, const label)");
NotImplemented;
}
//- Calculate the patch geometry
......
......@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
......@@ -102,7 +102,7 @@ protected:
const pointField& nbrCc
)
{
notImplemented("processorPolyPatch::calcGeometry(..)");
NotImplemented;
}
//- Initialise the patches for moving points
......
......@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
......@@ -87,7 +87,7 @@ protected:
const pointField& nbrCc
)
{
notImplemented("processorCyclicPolyPatch::calcGeometry(..)");
NotImplemented;
}
//- Initialise the patches for moving points
......
......@@ -70,7 +70,7 @@ void Foam::DataEntry<Type>::convertTimeBase(const Time&)
template<class Type>
Type Foam::DataEntry<Type>::value(const scalar x) const
{
notImplemented("Type Foam::DataEntry<Type>::value(const scalar) const");
NotImplemented;
return pTraits<Type>::zero;
}
......@@ -79,14 +79,7 @@ Type Foam::DataEntry<Type>::value(const scalar x) const
template<class Type>
Type Foam::DataEntry<Type>::integrate(const scalar x1, const scalar x2) const
{
notImplemented
(
"Type Foam::DataEntry<Type>::integrate"
"("
"const scalar, "
"const scalar"
") const"
);
NotImplemented;
return pTraits<Type>::zero;
}
......@@ -131,11 +124,7 @@ Foam::tmp<Foam::Field<Type> > Foam::DataEntry<Type>::integrate
template<class Type>
Foam::dimensioned<Type> Foam::DataEntry<Type>::dimValue(const scalar x) const
{
notImplemented
(
"dimensioned<Type> Foam::DataEntry<dimensioned<Type> >::dimValue"
"(const scalar) const"
);
NotImplemented;
return dimensioned<Type>("zero", dimless, pTraits<Type>::zero);
}
......@@ -148,14 +137,7 @@ Foam::dimensioned<Type> Foam::DataEntry<Type>::dimIntegrate
const scalar x2
) const
{
notImplemented
(
"dimensioned<Type> Foam::DataEntry<Type>::dimIntegrate"
"("
"const scalar, "
"const scalar"
") const"
);
NotImplemented;
return dimensioned<Type>("zero", dimless, pTraits<Type>::zero);
}
......
......@@ -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
......@@ -53,21 +53,7 @@ Foam::UIPstream::UIPstream
clearAtEnd_(clearAtEnd),
messageSize_(0)
{
notImplemented
(
"UIPstream::UIPstream\n"
"(\n"
"const commsTypes,\n"
"const int,\n"
"DynamicList<char>&,\n"
"label&,\n"
"const int,\n"
"const label,\n"
"const bool,\n"
"streamFormat,\n"
"versionNumber\n"
")"
);
NotImplemented;
}
......@@ -83,14 +69,7 @@ Foam::UIPstream::UIPstream(const int fromProcNo, PstreamBuffers& buffers)
clearAtEnd_(true),
messageSize_(0)
{
notImplemented
(
"UIPstream::UIPstream\n"
"(\n"
"const int,\n"
"PstreamBuffers&\n"
")"
);
NotImplemented;
}
......@@ -106,18 +85,7 @@ Foam::label Foam::UIPstream::read
const label communicator
)
{
notImplemented
(
"UIPstream::read"
"("
"const commsTypes,"
"const int fromProcNo,"
"char* buf,"
"const label bufSize,"
"const int tag,"
"const label communicator"
")"
);
NotImplemented;
return 0;
}
......
......@@ -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
......@@ -40,18 +40,7 @@ bool Foam::UOPstream::write
const label communicator
)
{
notImplemented
(
"UOPstream::write"
"("
"const commsTypes commsType,"
"const int fromProcNo,"
"char* buf,"
"const label bufSize,"
"const int tag,"
"const label communicator"
")"
);
NotImplemented;
return false;
}
......
......@@ -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
......@@ -45,13 +45,13 @@ bool Foam::UPstream::init(int& argc, char**& argv)
void Foam::UPstream::exit(int errnum)
{
notImplemented("UPstream::exit(int errnum)");
NotImplemented;
}
void Foam::UPstream::abort()
{
notImplemented("UPstream::abort()");
NotImplemented;
}
......@@ -113,7 +113,7 @@ void Foam::UPstream::waitRequest(const label i)
bool Foam::UPstream::finishedRequest(const label i)
{
notImplemented("UPstream::finishedRequest()");
NotImplemented;
return false;
}
......
......@@ -121,11 +121,7 @@ Foam::tmp<Foam::volSymmTensorField>
Foam::IncompressibleTurbulenceModel<TransportModel>::
devRhoReff() const
{
notImplemented
(
"IncompressibleTurbulenceModel<TransportModel>::"
"devRhoReff()"
);
NotImplemented;
return devReff();
}
......@@ -139,11 +135,7 @@ divDevRhoReff
volVectorField& U
) const
{
notImplemented
(
"IncompressibleTurbulenceModel<TransportModel>::"
"divDevRhoReff(volVectorField& U)"
);
NotImplemented;
return divDevReff(U);
}
......@@ -158,11 +150,7 @@ divDevRhoReff
volVectorField& U
) const
{
notImplemented
(
"IncompressibleTurbulenceModel<TransportModel>::"
"divDevRhoReff(const volScalarField& rho, volVectorField& U)"
);
NotImplemented;
return divDevReff(U);
}
......
......@@ -213,7 +213,7 @@ void kkLOmega::correctNut()
{
// Currently this function is not implemented due to the complexity of
// evaluating nut. Better calculate nut at the end of correct()
notImplemented("kkLOmega::correctNut()");
NotImplemented;
}
......
......@@ -169,11 +169,7 @@ Foam::tmp<Foam::volSymmTensorField>
Foam::PhaseIncompressibleTurbulenceModel<TransportModel>::
devRhoReff() const
{
notImplemented
(
"PhaseIncompressibleTurbulenceModel<TransportModel>::"
"devRhoReff()"
);
NotImplemented;
return devReff();
}
......@@ -187,11 +183,7 @@ divDevRhoReff
volVectorField& U
) const
{
notImplemented
(
"PhaseIncompressibleTurbulenceModel<TransportModel>::"
"divDevRhoReff(volVectorField& U)"
);
NotImplemented;
return divDevReff(U);
}
......
......@@ -340,7 +340,7 @@ public:
//- Disallow default bitwise assignment
void operator=(const ensightPart&)
{
notImplemented("ensightPart::operator=(const ensightPart&)");
NotImplemented;
}
......
......@@ -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
......@@ -145,7 +145,7 @@ public:
//- Clone
autoPtr<cellLooper> clone() const
{
notImplemented("autoPtr<tcellLooper> clone() const");
NotImplemented;
return autoPtr<cellLooper>(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
......@@ -96,17 +96,7 @@ public:
Ostream&
) const
{
notImplemented
(
"jplotSetWriter<Type>::write\n"
"(\n"
" const bool,\n"
" const PtrList<coordSet>&,\n"
" const wordList&,\n"
" const List<List<Field<Type> > >&,\n"
" Ostream&\n"
") const"
);
NotImplemented;
}
};
......
......@@ -164,7 +164,7 @@ public:
//- Return clone
autoPtr<MRFZone> clone() const
{
notImplemented("autoPtr<MRFZone> clone() const");
NotImplemented;
return autoPtr<MRFZone>(NULL);
}
......
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