Resolved issues with virtual function inheritance and warning from clang

Also removed __GNUC__ conditional compilation statements which are no
longer needed.
This commit is contained in:
Henry Weller
2015-07-17 12:11:37 +01:00
parent f3f35e8f39
commit 94401af010
87 changed files with 428 additions and 325 deletions

View File

@ -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
@ -174,14 +174,14 @@ Foam::wordList Foam::coordinateSystems::toc() const
}
bool Foam::coordinateSystems::writeData(Ostream& os, bool subDict) const
bool Foam::coordinateSystems::writeData(Ostream& os) const
{
os << nl << size() << nl << token::BEGIN_LIST;
forAll(*this, i)
{
os << nl;
operator[](i).writeDict(os, subDict);
operator[](i).writeDict(os, true);
}
os << token::END_LIST << nl;

View File

@ -133,7 +133,7 @@ public:
wordList toc() const;
//- Write data
bool writeData(Ostream&, bool subDict=true) const;
bool writeData(Ostream&) const;
};

View File

@ -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
@ -71,6 +71,9 @@ private:
pointIndexHit& info
) const;
//- Inherit findNearest from searchableSurface
using searchableSurface::findNearest;
//- Returns miss or hit with face (0..5)
pointIndexHit findNearest
(

View File

@ -78,6 +78,9 @@ private:
// Private Member Functions
//- Inherit findNearest from searchableSurface
using searchableSurface::findNearest;
//- Find nearest point on cylinder.
pointIndexHit findNearest
(

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2014 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2014-2015 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -71,6 +71,9 @@ private:
// Private Member Functions
//- Inherit findNearest from searchableSurface
using searchableSurface::findNearest;
//- Find nearest point on disk
pointIndexHit findNearest
(

View File

@ -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
@ -80,6 +80,9 @@ private:
//- Calculate normal direction from span
static direction calcNormal(const point&);
//- Inherit findNearest from searchableSurface
using searchableSurface::findNearest;
pointIndexHit findNearest
(
const point& sample,

View File

@ -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,6 +69,9 @@ private:
// Private Member Functions
//- Inherit findNearest from searchableSurface
using searchableSurface::findNearest;
//- Find nearest point on sphere.
pointIndexHit findNearest
(

View File

@ -88,6 +88,9 @@ private:
// Private Member Functions
//- Inherit findNearest from searchableSurface
using searchableSurface::findNearest;
//- Find point nearest to sample. Updates minDistSqr. Sets nearestInfo
// and surface index
void findNearest