Removed duplicate, inconsistent and spurious comments in .C files

This commit is contained in:
Henry Weller
2016-02-29 18:33:54 +00:00
parent 95d146ecdf
commit 7ba41e0095
67 changed files with 138 additions and 392 deletions

View File

@ -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-2016 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -30,8 +30,6 @@ License
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
//- Calculate map from new patch faces to old patch faces. -1 where
// could not map.
Foam::labelList Foam::fvMeshAdder::calcPatchMap
(
const label oldStart,
@ -61,7 +59,6 @@ Foam::labelList Foam::fvMeshAdder::calcPatchMap
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
// Inplace add mesh1 to mesh0
Foam::autoPtr<Foam::mapAddedPolyMesh> Foam::fvMeshAdder::add
(
fvMesh& mesh0,

View File

@ -39,7 +39,7 @@ License
namespace Foam
{
defineTypeNameAndDebug(meshCutAndRemove, 0);
defineTypeNameAndDebug(meshCutAndRemove, 0);
}
@ -89,7 +89,6 @@ bool Foam::meshCutAndRemove::isIn
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
// Returns the cell in cellLabels that is cut. Or -1.
Foam::label Foam::meshCutAndRemove::findCutCell
(
const cellCuts& cuts,
@ -109,10 +108,6 @@ Foam::label Foam::meshCutAndRemove::findCutCell
}
//- Returns first pointI in pointLabels that uses an internal
// face. Used to find point to inflate cell/face from (has to be
// connected to internal face). Returns -1 (so inflate from nothing) if
// none found.
Foam::label Foam::meshCutAndRemove::findInternalFacePoint
(
const labelList& pointLabels
@ -145,8 +140,6 @@ Foam::label Foam::meshCutAndRemove::findInternalFacePoint
}
// Find point on face that is part of original mesh and that is point connected
// to the patch
Foam::label Foam::meshCutAndRemove::findPatchFacePoint
(
const face& f,
@ -177,8 +170,6 @@ Foam::label Foam::meshCutAndRemove::findPatchFacePoint
}
// Get new owner and neighbour of face. Checks anchor points to see if
// cells have been removed.
void Foam::meshCutAndRemove::faceCells
(
const cellCuts& cuts,
@ -244,7 +235,6 @@ void Foam::meshCutAndRemove::getZoneInfo
}
// Adds a face from point.
void Foam::meshCutAndRemove::addFace
(
polyTopoChange& meshMod,
@ -407,7 +397,6 @@ void Foam::meshCutAndRemove::modFace
}
// Copies face starting from startFp up to and including endFp.
void Foam::meshCutAndRemove::copyFace
(
const face& f,
@ -474,8 +463,6 @@ void Foam::meshCutAndRemove::splitFace
}
// Adds additional vertices (from edge cutting) to face. Used for faces which
// are not split but still might use edge that has been cut.
Foam::face Foam::meshCutAndRemove::addEdgeCutsToFace(const label faceI) const
{
const face& f = mesh().faces()[faceI];

View File

@ -133,7 +133,6 @@ void Foam::motionSmootherAlgo::checkConstraints
}
// Average of connected points.
template<class Type>
Foam::tmp<Foam::GeometricField<Type, Foam::pointPatchField, Foam::pointMesh>>
Foam::motionSmootherAlgo::avg
@ -232,7 +231,6 @@ Foam::motionSmootherAlgo::avg
}
// smooth field (point-jacobi)
template<class Type>
void Foam::motionSmootherAlgo::smooth
(
@ -257,7 +255,6 @@ void Foam::motionSmootherAlgo::smooth
}
//- Test synchronisation of generic field (not positions!) on points
template<class Type, class CombineOp>
void Foam::motionSmootherAlgo::testSyncField
(

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -33,11 +33,7 @@ License
namespace Foam
{
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
defineTypeNameAndDebug(polyMeshGeometry, 0);
defineTypeNameAndDebug(polyMeshGeometry, 0);
}
@ -349,7 +345,6 @@ Foam::polyMeshGeometry::polyMeshGeometry(const polyMesh& mesh)
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
//- Take over properties from mesh
void Foam::polyMeshGeometry::correct()
{
faceAreas_ = mesh_.faceAreas();
@ -359,7 +354,6 @@ void Foam::polyMeshGeometry::correct()
}
//- Recalculate on selected faces
void Foam::polyMeshGeometry::correct
(
const pointField& p,

View File

@ -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-2016 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -50,7 +50,6 @@ Foam::attachPolyTopoChanger::attachPolyTopoChanger
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
//- Attach mesh
void Foam::attachPolyTopoChanger::attach(const bool removeEmptyPatches)
{
if (debug)

View File

@ -34,9 +34,7 @@ License
namespace Foam
{
defineTypeNameAndDebug(refinementHistory, 0);
defineTypeNameAndDebug(refinementHistory, 0);
}
@ -108,7 +106,6 @@ void Foam::refinementHistory::writeDebug
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
//- Construct null
Foam::refinementHistory::splitCell8::splitCell8()
:
parent_(-1),
@ -116,7 +113,6 @@ Foam::refinementHistory::splitCell8::splitCell8()
{}
//- Construct as child element of parent
Foam::refinementHistory::splitCell8::splitCell8(const label parent)
:
parent_(parent),
@ -124,14 +120,12 @@ Foam::refinementHistory::splitCell8::splitCell8(const label parent)
{}
//- Construct from Istream
Foam::refinementHistory::splitCell8::splitCell8(Istream& is)
{
is >> *this;
}
//- Construct as (deep) copy.
Foam::refinementHistory::splitCell8::splitCell8(const splitCell8& sc)
:
parent_(sc.parent_),
@ -362,7 +356,6 @@ Foam::refinementHistory::refinementHistory(const IOobject& io)
}
//- Read or construct
Foam::refinementHistory::refinementHistory
(
const IOobject& io,

View File

@ -42,8 +42,8 @@ namespace Foam
defineTypeNameAndDebug(removePoints, 0);
//- Combine-reduce operator to combine data on faces. Takes care
// of reverse orientation on coupled face.
// Combine-reduce operator to combine data on faces. Takes care
// of reverse orientation on coupled face.
template<class T, template<class> class CombineOp>
class faceEqOp
{
@ -71,31 +71,11 @@ public:
}
};
//// Dummy transform for List. Used in synchronisation.
//template<class T>
//class dummyTransformList
//{
//public:
// void operator()(const coupledPolyPatch&, Field<List<T>>&) const
// {}
//};
//// Dummy template specialisation. Used in synchronisation.
//template<>
//class pTraits<boolList>
//{
//public:
//
// //- Component type
// typedef label cmptType;
//};
}
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
// Change the vertices of the face whilst keeping everything else the same.
void Foam::removePoints::modifyFace
(
const label faceI,
@ -148,7 +128,6 @@ void Foam::removePoints::modifyFace
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
// Construct from mesh
Foam::removePoints::removePoints
(
const polyMesh& mesh,