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
......@@ -100,7 +100,7 @@ public:
//- Clone
virtual autoPtr<searchableSurfaceFeatures> clone() const
{
notImplemented("autoPtr<searchableSurfaceFeatures> clone() const");
NotImplemented;
return autoPtr<searchableSurfaceFeatures>(NULL);
}
......
......@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2012 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2012-2015 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
......@@ -108,7 +108,7 @@ public:
//- Clone
autoPtr<faceSelection> clone() const
{
notImplemented("autoPtr<faceSelection> clone() const");
NotImplemented;
return autoPtr<faceSelection>(NULL);
}
......
......@@ -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
......@@ -85,7 +85,7 @@ public:
//- Clone
autoPtr<faceSelection> clone() const
{
notImplemented("autoPtr<faceSelection> clone() const");
NotImplemented;
return autoPtr<faceSelection>(NULL);
}
......
......@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2012 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2012-2015 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
......@@ -78,7 +78,7 @@ public:
//- Clone
autoPtr<faceSelection> clone() const
{
notImplemented("autoPtr<faceSelection> clone() const");
NotImplemented;
return autoPtr<faceSelection>(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
......@@ -72,7 +72,7 @@ public:
bool writeData(Ostream&) const
{
notImplemented("zonesEntries::writeData(Ostream&) const");
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
......@@ -72,7 +72,7 @@ public:
bool writeData(Ostream&) const
{
notImplemented("zonesEntries::writeData(Ostream&) const");
NotImplemented;
return false;
}
};
......
......@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2012-2013 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2012-2015 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
......@@ -149,11 +149,7 @@ public:
point& result
) const
{
notImplemented
(
"dynamicTreeDataPoint::intersects"
"(const label, const point&, const point&, point&)"
);
NotImplemented;
return false;
}
......
......@@ -232,18 +232,7 @@ void Foam::treeDataCell::findNearestOp::operator()
point& nearestPoint
) const
{
notImplemented
(
"treeDataCell::findNearestOp::operator()"
"("
" const labelUList&,"
" const linePointRef&,"
" treeBoundBox&,"
" label&,"
" point&,"
" point&"
") const"
);
NotImplemented;
}
......
......@@ -203,11 +203,7 @@ public:
const point&
) const
{
notImplemented
(
"treeDataCell::getVolumeType"
"(const indexedOctree<treeDataCell>&, const point&)"
);
NotImplemented;
return volumeType::UNKNOWN;
}
......
......@@ -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
......@@ -145,10 +145,7 @@ void reduce
label& request
)
{
notImplemented
(
"reduce(T&, const BinaryOp&, const int, const label, label&"
);
NotImplemented;
}
......
......@@ -170,7 +170,7 @@ Foam::Ostream& Foam::UOPstream::write(const token& t)
}
else
{
notImplemented("Ostream& UOPstream::write(const token&)");
NotImplemented;
setBad();
}
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
......@@ -108,49 +108,49 @@ Foam::Istream& Foam::ITstream::read(token& t)
Foam::Istream& Foam::ITstream::read(char&)
{
notImplemented("Istream& ITstream::read(char&)");
NotImplemented;
return *this;
}
Foam::Istream& Foam::ITstream::read(word&)
{
notImplemented("Istream& ITstream::read(word&)");
NotImplemented;
return *this;
}
Foam::Istream& Foam::ITstream::read(string&)
{
notImplemented("Istream& ITstream::read(string&)");
NotImplemented;
return *this;
}
Foam::Istream& Foam::ITstream::read(label&)
{
notImplemented("Istream& ITstream::read(label&)");
NotImplemented;
return *this;
}
Foam::Istream& Foam::ITstream::read(floatScalar&)
{
notImplemented("Istream& ITstream::read(floatScalar&)");
NotImplemented;
return *this;
}
Foam::Istream& Foam::ITstream::read(doubleScalar&)
{
notImplemented("Istream& ITstream::read(doubleScalar&)");
NotImplemented;
return *this;
}
Foam::Istream& Foam::ITstream::read(char*, std::streamsize)
{
notImplemented("Istream& ITstream::read(char*, std::streamsize)");
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
......@@ -101,7 +101,7 @@ public:
//- Return clone
autoPtr<functionObject> clone() const
{
notImplemented("functionObject::clone() const");
NotImplemented;
return autoPtr<functionObject>(NULL);
}
......
......@@ -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
......@@ -213,11 +213,7 @@ public:
// for this class, write is used instead
virtual bool writeData(Ostream&) const
{
notImplemented
(
"void objectRegistry::writeData(Ostream&) const: "
"use write() instead"
);
NotImplemented;
return false;
}
......
......@@ -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
......@@ -66,7 +66,7 @@ Foam::cloud::~cloud()
void Foam::cloud::autoMap(const mapPolyMesh&)
{
notImplemented("cloud::autoMap(const mapPolyMesh&)");
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
......@@ -169,7 +169,7 @@ void Foam::csvTableReader<Type>::operator()
List<Tuple2<scalar, List<Tuple2<scalar, Type> > > >& data
)
{
notImplemented("csvTableReader<Type>::operator()");
NotImplemented;
}
......
......@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2012 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2012-2015 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
......@@ -100,10 +100,7 @@ public:
scalarField& weights
) const
{
notImplemented
(
"splineInterpolationWeights::integrationWeights(..)"
);
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
......@@ -84,7 +84,7 @@ public:
autoPtr<procLduInterface> clone()
{
notImplemented("procLduInterface::clone()");
NotImplemented;
return autoPtr<procLduInterface>(NULL);
}
......
......@@ -449,11 +449,7 @@ public:
const Field<Type>& rT
) const
{
notImplemented
(
type() +"::preconditionT"
"(Field<Type>& wT, const Field<Type>& rT)"
);
NotImplemented;
}
};
......
......@@ -500,12 +500,7 @@ public:
const direction cmpt=0
) const
{
notImplemented
(
type() +"::preconditionT"
"(scalarField& wT, const scalarField& rT, "
"const direction cmpt)"
);
NotImplemented;
}
};
......
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