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

Unused parameters

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