Commit 9c484490 authored by Alexey Matveichev's avatar Alexey Matveichev
Browse files

Unused parameters

Commenting out unused parameters to get rid of warnings.
parent c25c80a7
...@@ -176,7 +176,7 @@ void boxScaling::boundingPlanes(PtrList<plane>&pl) const ...@@ -176,7 +176,7 @@ void boxScaling::boundingPlanes(PtrList<plane>&pl) const
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dictionary boxScaling::dict(bool ignoreType) const dictionary boxScaling::dict(bool /*ignoreType*/) const
{ {
dictionary dict; dictionary dict;
......
...@@ -46,7 +46,7 @@ coordinateModification::coordinateModification() ...@@ -46,7 +46,7 @@ coordinateModification::coordinateModification()
coordinateModification::coordinateModification coordinateModification::coordinateModification
( (
const word& name, const word& name,
const dictionary& dict const dictionary& /*dict*/
) )
: :
name_(name) name_(name)
......
...@@ -153,7 +153,7 @@ void planeScaling::boundingPlanes(PtrList<plane>& pl) const ...@@ -153,7 +153,7 @@ void planeScaling::boundingPlanes(PtrList<plane>& pl) const
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dictionary planeScaling::dict(bool ignoreType) const dictionary planeScaling::dict(bool /*ignoreType*/) const
{ {
dictionary dict; dictionary dict;
......
...@@ -686,7 +686,7 @@ void boundaryLayers::createNewPartitionVerticesParallel ...@@ -686,7 +686,7 @@ void boundaryLayers::createNewPartitionVerticesParallel
( (
const labelLongList& procPoints, const labelLongList& procPoints,
const List<direction>& pVertices, const List<direction>& pVertices,
const boolList& treatPatches const boolList& /*treatPatches*/
) )
{ {
if( !Pstream::parRun() ) if( !Pstream::parRun() )
......
...@@ -860,7 +860,7 @@ void checkMeshDict::updatePatchCellSize ...@@ -860,7 +860,7 @@ void checkMeshDict::updatePatchCellSize
void checkMeshDict::updateSubsetCellSize void checkMeshDict::updateSubsetCellSize
( (
const std::map<word, wordList>& patchesFromPatch const std::map<word, wordList>& /*patchesFromPatch*/
) )
{ {
...@@ -1028,7 +1028,7 @@ void checkMeshDict::updateRemoveCellsIntersectingPatches ...@@ -1028,7 +1028,7 @@ void checkMeshDict::updateRemoveCellsIntersectingPatches
void checkMeshDict::updateObjectRefinements void checkMeshDict::updateObjectRefinements
( (
const std::map<word, wordList>& patchesFromPatch const std::map<word, wordList>& /*patchesFromPatch*/
) )
{ {
......
...@@ -162,7 +162,7 @@ void decomposeCells::createPointsAndCellFaces(const boolList& decomposeCell) ...@@ -162,7 +162,7 @@ void decomposeCells::createPointsAndCellFaces(const boolList& decomposeCell)
} }
} }
void decomposeCells::storeBoundaryFaces(const boolList& decomposeCell) void decomposeCells::storeBoundaryFaces(const boolList& /*decomposeCell*/)
{ {
meshSurfaceEngine mse(mesh_); meshSurfaceEngine mse(mesh_);
const faceList::subList& bFaces = mse.boundaryFaces(); const faceList::subList& bFaces = mse.boundaryFaces();
......
...@@ -127,9 +127,9 @@ void decomposeCells::findAddressingForCell ...@@ -127,9 +127,9 @@ void decomposeCells::findAddressingForCell
label decomposeCells::findTopVertex label decomposeCells::findTopVertex
( (
const label cellI, const label cellI,
const DynList<label, 32>& vrt, const DynList<label, 32>& /*vrt*/,
const DynList<edge, 64>& edges, const DynList<edge, 64>& /*edges*/,
const DynList<DynList<label, 2>, 64>& edgeFaces const DynList<DynList<label, 2>, 64>& /*edgeFaces*/
) )
{ {
const cell& c = mesh_.cells()[cellI]; const cell& c = mesh_.cells()[cellI];
......
...@@ -87,7 +87,7 @@ public: ...@@ -87,7 +87,7 @@ public:
return pts_[i]; return pts_[i];
} }
inline bool operator !=(const parPartTet& ptf) const inline bool operator !=(const parPartTet& /*ptf*/) const
{ {
Serr << "Not implemented" << endl; Serr << "Not implemented" << endl;
::exit(1); ::exit(1);
......
...@@ -99,12 +99,10 @@ class parTriFace ...@@ -99,12 +99,10 @@ class parTriFace
// Member operators // Member operators
inline bool operator !=(const parTriFace& ptf) const inline bool operator !=(const parTriFace& /*ptf*/) const
{ {
Serr << "parTriFace::operator!= Not implemented" << endl; Serr << "parTriFace::operator!= Not implemented" << endl;
::exit(1); ::exit(1);
return true;
} }
// Friend operators // Friend operators
......
...@@ -46,8 +46,8 @@ namespace Foam ...@@ -46,8 +46,8 @@ namespace Foam
void partTetMesh::createParallelAddressing void partTetMesh::createParallelAddressing
( (
const labelLongList& nodeLabelForPoint, const labelLongList& nodeLabelForPoint,
const labelLongList& nodeLabelForFace, const labelLongList& /*nodeLabelForFace*/,
const labelLongList& nodeLabelForCell const labelLongList& /*nodeLabelForCell*/
) )
{ {
//- vertices marked as SMOOTH and BOUNDARY are used by the smoother //- vertices marked as SMOOTH and BOUNDARY are used by the smoother
......
...@@ -47,7 +47,7 @@ namespace Foam ...@@ -47,7 +47,7 @@ namespace Foam
void partTriMesh::createParallelAddressing void partTriMesh::createParallelAddressing
( (
const labelList& nodeLabelForPoint, const labelList& nodeLabelForPoint,
const labelList& nodeLabelForFace const labelList& /*nodeLabelForFace*/
) )
{ {
const meshSurfaceEngine& mse = mPart_.surfaceEngine(); const meshSurfaceEngine& mse = mPart_.surfaceEngine();
......
...@@ -90,7 +90,7 @@ void processorBoundaryPatch::write(Ostream& os) const ...@@ -90,7 +90,7 @@ void processorBoundaryPatch::write(Ostream& os) const
this->operator<<(os); this->operator<<(os);
} }
void processorBoundaryPatch::writeDict(Ostream& os) const void processorBoundaryPatch::writeDict(Ostream& /*os*/) const
{ {
} }
......
...@@ -119,8 +119,8 @@ void meshOctreeModifier::refineTreeForCoordinates ...@@ -119,8 +119,8 @@ void meshOctreeModifier::refineTreeForCoordinates
void meshOctreeModifier::refineTreeForCoordinates void meshOctreeModifier::refineTreeForCoordinates
( (
const meshOctreeCubeCoordinates& cc, const meshOctreeCubeCoordinates& cc,
const labelList& containedTriangles, const labelList& /*containedTriangles*/,
const labelList& containedEdges, const labelList& /*containedEdges*/,
const short procNo, const short procNo,
const direction cubeType const direction cubeType
) )
......
...@@ -94,7 +94,7 @@ bool boxRefinement::intersectsObject(const boundBox& bb) const ...@@ -94,7 +94,7 @@ bool boxRefinement::intersectsObject(const boundBox& bb) const
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dictionary boxRefinement::dict(bool ignoreType) const dictionary boxRefinement::dict(bool /*ignoreType*/) const
{ {
dictionary dict; dictionary dict;
......
...@@ -106,7 +106,7 @@ bool coneRefinement::intersectsObject(const boundBox& bb) const ...@@ -106,7 +106,7 @@ bool coneRefinement::intersectsObject(const boundBox& bb) const
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dictionary coneRefinement::dict(bool ignoreType) const dictionary coneRefinement::dict(bool /*ignoreType*/) const
{ {
dictionary dict; dictionary dict;
......
...@@ -115,7 +115,7 @@ bool hollowConeRefinement::intersectsObject(const boundBox& bb) const ...@@ -115,7 +115,7 @@ bool hollowConeRefinement::intersectsObject(const boundBox& bb) const
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dictionary hollowConeRefinement::dict(bool ignoreType) const dictionary hollowConeRefinement::dict(bool /*ignoreType*/) const
{ {
dictionary dict; dictionary dict;
......
...@@ -206,7 +206,7 @@ bool lineRefinement::intersectsObject(const boundBox& bb) const ...@@ -206,7 +206,7 @@ bool lineRefinement::intersectsObject(const boundBox& bb) const
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dictionary lineRefinement::dict(bool ignoreType) const dictionary lineRefinement::dict(bool /*ignoreType*/) const
{ {
dictionary dict; dictionary dict;
......
...@@ -87,7 +87,7 @@ bool sphereRefinement::intersectsObject(const boundBox& bb) const ...@@ -87,7 +87,7 @@ bool sphereRefinement::intersectsObject(const boundBox& bb) const
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dictionary sphereRefinement::dict(bool ignoreType) const dictionary sphereRefinement::dict(bool /*ignoreType*/) const
{ {
dictionary dict; dictionary dict;
......
...@@ -107,7 +107,7 @@ label meshOptimizer::findBadFaces ...@@ -107,7 +107,7 @@ label meshOptimizer::findBadFaces
label meshOptimizer::findLowQualityFaces label meshOptimizer::findLowQualityFaces
( (
labelHashSet& badFaces, labelHashSet& badFaces,
const boolList& changedFace const boolList& /*changedFace*/
) const ) const
{ {
badFaces.clear(); badFaces.clear();
......
...@@ -368,8 +368,8 @@ void meshOptimizer::laplaceSmoother::optimizeLaplacian(const label nIterations) ...@@ -368,8 +368,8 @@ void meshOptimizer::laplaceSmoother::optimizeLaplacian(const label nIterations)
void meshOptimizer::laplaceSmoother::optimizeLaplacian void meshOptimizer::laplaceSmoother::optimizeLaplacian
( (
const labelHashSet& badFaces, const labelHashSet& /*badFaces*/,
const label nIterations const label /*nIterations*/
) )
{ {
FatalError << "Not implemented " << exit(FatalError); FatalError << "Not implemented " << exit(FatalError);
...@@ -377,8 +377,8 @@ void meshOptimizer::laplaceSmoother::optimizeLaplacian ...@@ -377,8 +377,8 @@ void meshOptimizer::laplaceSmoother::optimizeLaplacian
void meshOptimizer::laplaceSmoother::optimizeSurfaceLaplacian void meshOptimizer::laplaceSmoother::optimizeSurfaceLaplacian
( (
const labelHashSet& badFaces, const labelHashSet& /*badFaces*/,
const label nIterations const label /*nIterations*/
) )
{ {
FatalError << "Not implemented " << exit(FatalError); FatalError << "Not implemented " << exit(FatalError);
...@@ -402,8 +402,8 @@ void meshOptimizer::laplaceSmoother::optimizeLaplacianPC ...@@ -402,8 +402,8 @@ void meshOptimizer::laplaceSmoother::optimizeLaplacianPC
void meshOptimizer::laplaceSmoother::optimizeLaplacianPC void meshOptimizer::laplaceSmoother::optimizeLaplacianPC
( (
const labelHashSet& badFaces, const labelHashSet& /*badFaces*/,
const label nIterations const label /*nIterations*/
) )
{ {
FatalError << "Not implemented " << exit(FatalError); FatalError << "Not implemented " << exit(FatalError);
...@@ -427,8 +427,8 @@ void meshOptimizer::laplaceSmoother::optimizeLaplacianWPC ...@@ -427,8 +427,8 @@ void meshOptimizer::laplaceSmoother::optimizeLaplacianWPC
void meshOptimizer::laplaceSmoother::optimizeLaplacianWPC void meshOptimizer::laplaceSmoother::optimizeLaplacianWPC
( (
const labelHashSet& badFaces, const labelHashSet& /*badFaces*/,
const label nIterations const label /*nIterations*/
) )
{ {
FatalError << "Not implemented " << exit(FatalError); FatalError << "Not implemented " << exit(FatalError);
......
...@@ -121,7 +121,7 @@ knuppMetric::~knuppMetric() ...@@ -121,7 +121,7 @@ knuppMetric::~knuppMetric()
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
// Implementation of knupp metric untangling // Implementation of knupp metric untangling
void knuppMetric::optimizeNodePosition(const scalar tolObsolete) void knuppMetric::optimizeNodePosition(const scalar /*tolObsolete*/)
{ {
if( !bb_.contains(p_) ) if( !bb_.contains(p_) )
p_ = 0.5 * (bb_.min() + bb_.max()); p_ = 0.5 * (bb_.min() + bb_.max());
......
...@@ -57,7 +57,7 @@ meshUntangler::~meshUntangler() ...@@ -57,7 +57,7 @@ meshUntangler::~meshUntangler()
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
void meshUntangler::optimizeNodePosition(const scalar tol) void meshUntangler::optimizeNodePosition(const scalar /*tol*/)
{ {
# ifdef DEBUGSmooth # ifdef DEBUGSmooth
Info << "Untangling point " << pointI_ << endl; Info << "Untangling point " << pointI_ << endl;
......
...@@ -101,7 +101,7 @@ quadricMetric::~quadricMetric() ...@@ -101,7 +101,7 @@ quadricMetric::~quadricMetric()
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
// Implementation of knupp metric untangling // Implementation of knupp metric untangling
void quadricMetric::optimizeNodePosition(const scalar tolObsolete) void quadricMetric::optimizeNodePosition(const scalar /*tolObsolete*/)
{ {
if( !bb_.contains(p_) ) if( !bb_.contains(p_) )
p_ = 0.5 * (bb_.min() + bb_.max()); p_ = 0.5 * (bb_.min() + bb_.max());
......
...@@ -425,8 +425,8 @@ void meshSurfaceOptimizer::edgeNodeDisplacementParallel ...@@ -425,8 +425,8 @@ void meshSurfaceOptimizer::edgeNodeDisplacementParallel
void meshSurfaceOptimizer::exchangeData void meshSurfaceOptimizer::exchangeData
( (
const labelLongList& nodesToSmooth, const labelLongList& /*nodesToSmooth*/,
std::map<label, DynList<parTriFace> >& m std::map<label, DynList<parTriFace> >& /*m*/
) const ) const
{ {
/* /*
......
...@@ -171,7 +171,7 @@ public: ...@@ -171,7 +171,7 @@ public:
meshConnectionsSelectorOperator() meshConnectionsSelectorOperator()
{} {}
bool operator()(const label cellI) const bool operator()(const label /*cellI*/) const
{ {
return true; return true;
} }
......
...@@ -178,7 +178,7 @@ void topologicalCleaner::checkInvalidConnectionsForVerticesCells ...@@ -178,7 +178,7 @@ void topologicalCleaner::checkInvalidConnectionsForVerticesCells
void topologicalCleaner::checkInvalidConnectionsForVerticesFaces void topologicalCleaner::checkInvalidConnectionsForVerticesFaces
( (
labelHashSet* irregularNodesPtr labelHashSet* /*irregularNodesPtr*/
) )
{ {
const meshSurfaceEngine mse(mesh_); const meshSurfaceEngine mse(mesh_);
......
...@@ -179,12 +179,11 @@ public: ...@@ -179,12 +179,11 @@ public:
template<class labelListType> template<class labelListType>
void collectGroups void collectGroups
( (
std::map<label, DynList<label> >& neiGroups, std::map<label, DynList<label> >& /*neiGroups*/,
const labelListType& elementInGroup, const labelListType& /*elementInGroup*/,
const DynList<label>& localGroupLabel const DynList<label>& /*localGroupLabel*/
) const ) const
{ {
} }
}; };
...@@ -209,7 +208,7 @@ public: ...@@ -209,7 +208,7 @@ public:
selectOp() selectOp()
{} {}
bool operator()(const label tI) const bool operator()(const label /*tI*/) const
{ {
return true; return true;
} }
...@@ -443,9 +442,9 @@ public: ...@@ -443,9 +442,9 @@ public:
template<class labelListType> template<class labelListType>
void collectGroups void collectGroups
( (
std::map<label, DynList<label> >& neiGroups, std::map<label, DynList<label> >& /*neiGroups*/,
const labelListType& elementInGroup, const labelListType& /*elementInGroup*/,
const DynList<label>& localGroupLabel const DynList<label>& /*localGroupLabel*/
) const ) const
{ {
...@@ -564,9 +563,9 @@ public: ...@@ -564,9 +563,9 @@ public:
template<class labelListType> template<class labelListType>
void collectGroups void collectGroups
( (
std::map<label, DynList<label> >& neiGroups, std::map<label, DynList<label> >& /*neiGroups*/,
const labelListType& elementInGroup, const labelListType& /*elementInGroup*/,
const DynList<label>& localGroupLabel const DynList<label>& /*localGroupLabel*/
) const ) const
{ {
......
...@@ -39,11 +39,10 @@ namespace Foam ...@@ -39,11 +39,10 @@ namespace Foam
void triSurfaceImportSurfaceAsSubset::createOctree void triSurfaceImportSurfaceAsSubset::createOctree
( (
const triSurf& surf, const triSurf& /*surf*/,
meshOctree& octree meshOctree& /*octree*/
) )
{ {
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
......
...@@ -45,7 +45,7 @@ using namespace Foam; ...@@ -45,7 +45,7 @@ using namespace Foam;
void writePointsToVTK void writePointsToVTK
( (
const fileName& fn, const fileName& fn,
const string& title, const string& /*title*/,
const UList<point>& points const UList<point>& points
) )
{ {