From 080236c50b9b009dc5db511e4f2252519aab17c5 Mon Sep 17 00:00:00 2001 From: Viktor UZLOV Date: Wed, 2 Sep 2020 10:26:08 +0300 Subject: [PATCH] fight warnings, c++17. Fix minor warnings. Build MEDCOUPLING finished --- .../Bases/InterpKernelException.cxx | 2 +- .../Bases/InterpKernelException.hxx | 2 +- src/INTERP_KERNEL/CellModel.cxx | 2 +- src/INTERP_KERNEL/CellModel.hxx | 2 +- src/INTERP_KERNEL/ConvexIntersector.txx | 2 +- .../ExprEval/InterpKernelAsmX86.cxx | 24 ++-- .../ExprEval/InterpKernelAsmX86.hxx | 24 ++-- .../ExprEval/InterpKernelExprParser.cxx | 2 +- .../ExprEval/InterpKernelExprParser.hxx | 2 +- .../ExprEval/InterpKernelFunction.cxx | 46 ++++---- .../ExprEval/InterpKernelFunction.hxx | 46 ++++---- .../ExprEval/InterpKernelUnit.cxx | 2 +- .../ExprEval/InterpKernelUnit.hxx | 2 +- .../ExprEval/InterpKernelValue.cxx | 20 ++-- .../ExprEval/InterpKernelValue.hxx | 20 ++-- .../InterpKernelGeo2DEdgeArcCircle.cxx | 2 +- .../InterpKernelGeo2DEdgeArcCircle.hxx | 6 +- .../InterpKernelGeo2DEdgeInfLin.hxx | 4 +- .../Geometric2D/InterpKernelGeo2DEdgeLin.cxx | 2 +- .../Geometric2D/InterpKernelGeo2DEdgeLin.hxx | 4 +- .../InterpKernelGeo2DQuadraticPolygon.cxx | 2 +- .../InterpKernelGeo2DQuadraticPolygon.hxx | 6 +- .../IntegralUniformIntersector.txx | 4 +- .../InterpKernelCellSimplify.cxx | 2 +- .../InterpKernelCellSimplify.hxx | 2 +- src/INTERP_KERNEL/Interpolation2D.hxx | 2 +- src/INTERP_KERNEL/IntersectorCU.hxx | 2 +- src/INTERP_KERNEL/IntersectorCU3D.txx | 4 +- src/INTERP_KERNEL/PolygonAlgorithms.txx | 4 +- .../TriangulationIntersector.txx | 4 +- src/MEDCoupling/MEDCoupling1GTUMesh.cxx | 20 ++-- src/MEDCoupling/MEDCoupling1GTUMesh.hxx | 20 ++-- src/MEDCoupling/MEDCouplingCMesh.cxx | 22 ++-- src/MEDCoupling/MEDCouplingCMesh.hxx | 22 ++-- .../MEDCouplingCartesianAMRMesh.cxx | 6 +- .../MEDCouplingCurveLinearMesh.cxx | 20 ++-- .../MEDCouplingCurveLinearMesh.hxx | 20 ++-- src/MEDCoupling/MEDCouplingDefinitionTime.cxx | 6 +- .../MEDCouplingFieldDiscretization.cxx | 106 +++++++++--------- .../MEDCouplingFieldDiscretization.hxx | 56 ++++----- .../MEDCouplingGaussLocalization.cxx | 2 +- src/MEDCoupling/MEDCouplingIMesh.cxx | 28 ++--- src/MEDCoupling/MEDCouplingIMesh.hxx | 28 ++--- .../MEDCouplingMappedExtrudedMesh.cxx | 34 +++--- src/MEDCoupling/MEDCouplingMemArray.cxx | 6 +- src/MEDCoupling/MEDCouplingMemArray.hxx | 10 +- src/MEDCoupling/MEDCouplingMemArray.txx | 2 +- src/MEDCoupling/MEDCouplingMesh.cxx | 6 +- src/MEDCoupling/MEDCouplingPartDefinition.cxx | 4 +- src/MEDCoupling/MEDCouplingPointSet.cxx | 10 +- src/MEDCoupling/MEDCouplingRefCountObject.cxx | 4 +- src/MEDCoupling/MEDCouplingRefCountObject.hxx | 4 +- src/MEDCoupling/MEDCouplingRemapper.cxx | 2 +- src/MEDCoupling/MEDCouplingStructuredMesh.cxx | 6 +- src/MEDCoupling/MEDCouplingStructuredMesh.hxx | 6 +- .../MEDCouplingTimeDiscretization.cxx | 44 ++++---- .../MEDCouplingTimeDiscretization.hxx | 46 ++++---- src/MEDCoupling/MEDCouplingTimeLabel.cxx | 2 +- src/MEDCoupling/MEDCouplingTimeLabel.hxx | 2 +- src/MEDCoupling/MEDCouplingUMesh.cxx | 2 +- src/MEDCoupling/MEDCouplingUMesh.hxx | 2 +- src/MEDCoupling/MEDCouplingUMesh_internal.cxx | 2 +- src/MEDCoupling/MEDCouplingUMesh_internal.hxx | 8 +- .../MEDCouplingUMesh_intersection.cxx | 4 +- src/MEDCoupling/MEDCouplingVoronoi.cxx | 2 +- src/MEDLoader/MEDFileBasis.hxx | 2 +- src/MEDLoader/MEDFileBlowStrEltUp.cxx | 10 +- src/MEDLoader/MEDFileField.cxx | 8 +- src/MEDLoader/MEDFileField1TS.cxx | 8 +- src/MEDLoader/MEDFileField1TS.hxx | 2 +- src/MEDLoader/MEDFileFieldGlobs.cxx | 2 +- src/MEDLoader/MEDFileFieldInternal.cxx | 12 +- src/MEDLoader/MEDFileFieldInternal.hxx | 2 +- src/MEDLoader/MEDFileFieldOverView.cxx | 4 +- src/MEDLoader/MEDFileMesh.cxx | 12 +- src/MEDLoader/MEDFileMeshElt.cxx | 10 +- src/MEDLoader/MEDFileMeshLL.cxx | 12 +- src/MEDLoader/MEDFileStructureElement.cxx | 8 +- src/MEDLoader/MEDLoader.cxx | 4 +- src/MEDLoader/SauvReader.cxx | 6 +- src/MEDPartitioner/MEDPARTITIONER_Graph.cxx | 2 +- .../MEDPARTITIONER_MeshCollection.cxx | 4 +- .../MEDPARTITIONER_MeshCollectionDriver.cxx | 2 +- .../MEDPARTITIONER_MetisGraph.cxx | 2 +- .../MEDPARTITIONER_ScotchGraph.cxx | 2 +- .../MEDPARTITIONER_UserGraph.cxx | 2 +- 86 files changed, 464 insertions(+), 464 deletions(-) diff --git a/src/INTERP_KERNEL/Bases/InterpKernelException.cxx b/src/INTERP_KERNEL/Bases/InterpKernelException.cxx index fa96780e9..2602856fa 100644 --- a/src/INTERP_KERNEL/Bases/InterpKernelException.cxx +++ b/src/INTERP_KERNEL/Bases/InterpKernelException.cxx @@ -28,7 +28,7 @@ INTERP_KERNEL::Exception::Exception(const std::string& reason):_reason(reason) { } -INTERP_KERNEL::Exception::Exception(const char *reason, const char *file, int line):_reason(reason) +INTERP_KERNEL::Exception::Exception(const char *reason, const char * /*file*/, int /*line*/):_reason(reason) { } diff --git a/src/INTERP_KERNEL/Bases/InterpKernelException.hxx b/src/INTERP_KERNEL/Bases/InterpKernelException.hxx index 6fa0ca29f..4c3864762 100644 --- a/src/INTERP_KERNEL/Bases/InterpKernelException.hxx +++ b/src/INTERP_KERNEL/Bases/InterpKernelException.hxx @@ -33,7 +33,7 @@ namespace INTERP_KERNEL public: INTERPKERNEL_EXPORT Exception(const char *reason); INTERPKERNEL_EXPORT Exception(const std::string& reason); - INTERPKERNEL_EXPORT Exception(const char *reason, const char *file, int line); + INTERPKERNEL_EXPORT Exception(const char *reason, const char * /*file*/, int /*line*/); INTERPKERNEL_EXPORT ~Exception() throw (); INTERPKERNEL_EXPORT const char *what() const throw(); protected: diff --git a/src/INTERP_KERNEL/CellModel.cxx b/src/INTERP_KERNEL/CellModel.cxx index 22bbb5904..517e81aac 100644 --- a/src/INTERP_KERNEL/CellModel.cxx +++ b/src/INTERP_KERNEL/CellModel.cxx @@ -614,7 +614,7 @@ namespace INTERP_KERNEL return fillSonCellNodalConnectivity2(sonId,nodalConn,lgth,sonNodalConn,typeOfSon); } - unsigned CellModel::fillSonEdgesNodalConnectivity3D(int sonId, const mcIdType *nodalConn, mcIdType lgth, mcIdType *sonNodalConn, NormalizedCellType& typeOfSon) const + unsigned CellModel::fillSonEdgesNodalConnectivity3D(int sonId, const mcIdType *nodalConn, mcIdType /*lgth*/, mcIdType *sonNodalConn, NormalizedCellType& typeOfSon) const { if(!isDynamic()) { diff --git a/src/INTERP_KERNEL/CellModel.hxx b/src/INTERP_KERNEL/CellModel.hxx index 6a829a9bc..7004d0be9 100644 --- a/src/INTERP_KERNEL/CellModel.hxx +++ b/src/INTERP_KERNEL/CellModel.hxx @@ -83,7 +83,7 @@ namespace INTERP_KERNEL INTERPKERNEL_EXPORT unsigned fillSonCellNodalConnectivity(int sonId, const mcIdType *nodalConn, mcIdType *sonNodalConn) const; INTERPKERNEL_EXPORT unsigned fillSonCellNodalConnectivity2(int sonId, const mcIdType *nodalConn, mcIdType lgth, mcIdType *sonNodalConn, NormalizedCellType& typeOfSon) const; INTERPKERNEL_EXPORT unsigned fillSonCellNodalConnectivity4(int sonId, const mcIdType *nodalConn, mcIdType lgth, mcIdType *sonNodalConn, NormalizedCellType& typeOfSon) const; - INTERPKERNEL_EXPORT unsigned fillSonEdgesNodalConnectivity3D(int sonId, const mcIdType *nodalConn, mcIdType lgth, mcIdType *sonNodalConn, NormalizedCellType& typeOfSon) const; + INTERPKERNEL_EXPORT unsigned fillSonEdgesNodalConnectivity3D(int sonId, const mcIdType *nodalConn, mcIdType /*lgth*/, mcIdType *sonNodalConn, NormalizedCellType& typeOfSon) const; INTERPKERNEL_EXPORT unsigned fillMicroEdgeNodalConnectivity(int sonId, const mcIdType *nodalConn, mcIdType *sonNodalConn, NormalizedCellType& typeOfSon) const; INTERPKERNEL_EXPORT void changeOrientationOf2D(mcIdType *nodalConn, unsigned int sz) const; INTERPKERNEL_EXPORT void changeOrientationOf1D(mcIdType *nodalConn, unsigned int sz) const; diff --git a/src/INTERP_KERNEL/ConvexIntersector.txx b/src/INTERP_KERNEL/ConvexIntersector.txx index 56b908e7f..870c80082 100644 --- a/src/INTERP_KERNEL/ConvexIntersector.txx +++ b/src/INTERP_KERNEL/ConvexIntersector.txx @@ -92,7 +92,7 @@ namespace INTERP_KERNEL CONVINTERSECTOR_TEMPLATE double CONVEX_INTERSECTOR_::intersectGeometryWithQuadrangle(const double * quadrangle, const std::vector& sourceCoords, - bool isSourceQuad) + bool /*isSourceQuad*/) { double result = 0; int nbOfNodesS=int(sourceCoords.size())/SPACEDIM; diff --git a/src/INTERP_KERNEL/ExprEval/InterpKernelAsmX86.cxx b/src/INTERP_KERNEL/ExprEval/InterpKernelAsmX86.cxx index a246d269c..570ecca36 100644 --- a/src/INTERP_KERNEL/ExprEval/InterpKernelAsmX86.cxx +++ b/src/INTERP_KERNEL/ExprEval/InterpKernelAsmX86.cxx @@ -42,7 +42,7 @@ std::vector INTERP_KERNEL::AsmX86::convertIntoMachineLangage(const std::ve return ret; } -char *INTERP_KERNEL::AsmX86::copyToExecMemZone(const std::vector& ml, unsigned& offset) const +char *INTERP_KERNEL::AsmX86::copyToExecMemZone(const std::vector& ml, unsigned& /*offset*/) const { char *ret=0; std::size_t lgth=ml.size(); @@ -339,55 +339,55 @@ void INTERP_KERNEL::AsmX86::convertFld(const std::string& inst, std::vector& ml) +void INTERP_KERNEL::AsmX86::convertFaddp(const std::string& /*inst*/, std::vector& ml) { const unsigned char ML1[2]={0xde,0xc1}; ml.insert(ml.end(),ML1,ML1+sizeof(ML1)); } -void INTERP_KERNEL::AsmX86::convertFsubp(const std::string& inst, std::vector& ml) +void INTERP_KERNEL::AsmX86::convertFsubp(const std::string& /*inst*/, std::vector& ml) { const unsigned char ML1[2]={0xde,0xe9}; ml.insert(ml.end(),ML1,ML1+sizeof(ML1)); } -void INTERP_KERNEL::AsmX86::convertFmulp(const std::string& inst, std::vector& ml) +void INTERP_KERNEL::AsmX86::convertFmulp(const std::string& /*inst*/, std::vector& ml) { const unsigned char ML1[2]={0xde,0xc9}; ml.insert(ml.end(),ML1,ML1+sizeof(ML1)); } -void INTERP_KERNEL::AsmX86::convertFdivp(const std::string& inst, std::vector& ml) +void INTERP_KERNEL::AsmX86::convertFdivp(const std::string& /*inst*/, std::vector& ml) { const unsigned char ML1[2]={0xde,0xf9}; ml.insert(ml.end(),ML1,ML1+sizeof(ML1)); } -void INTERP_KERNEL::AsmX86::convertFcos(const std::string& inst, std::vector& ml) +void INTERP_KERNEL::AsmX86::convertFcos(const std::string& /*inst*/, std::vector& ml) { const unsigned char ML[2]={0xd9,0xff}; ml.insert(ml.end(),ML,ML+sizeof(ML)); } -void INTERP_KERNEL::AsmX86::convertFsin(const std::string& inst, std::vector& ml) +void INTERP_KERNEL::AsmX86::convertFsin(const std::string& /*inst*/, std::vector& ml) { const unsigned char ML[2]={0xd9,0xfe}; ml.insert(ml.end(),ML,ML+sizeof(ML)); } -void INTERP_KERNEL::AsmX86::convertFabs(const std::string& inst, std::vector& ml) +void INTERP_KERNEL::AsmX86::convertFabs(const std::string& /*inst*/, std::vector& ml) { const unsigned char ML[2]={0xd9,0xe1}; ml.insert(ml.end(),ML,ML+sizeof(ML)); } -void INTERP_KERNEL::AsmX86::convertFchs(const std::string& inst, std::vector& ml) +void INTERP_KERNEL::AsmX86::convertFchs(const std::string& /*inst*/, std::vector& ml) { const unsigned char ML[2]={0xd9,0xe0}; ml.insert(ml.end(),ML,ML+sizeof(ML)); } -void INTERP_KERNEL::AsmX86::convertFsqrt(const std::string& inst, std::vector& ml) +void INTERP_KERNEL::AsmX86::convertFsqrt(const std::string& /*inst*/, std::vector& ml) { const unsigned char ML[2]={0xd9,0xfa}; ml.insert(ml.end(),ML,ML+sizeof(ML)); @@ -431,13 +431,13 @@ void INTERP_KERNEL::AsmX86::convertAdd(const std::string& inst, std::vector& ml) +void INTERP_KERNEL::AsmX86::convertRet(const std::string& /*inst*/, std::vector& ml) { const unsigned char ML[1]={0xc3}; ml.insert(ml.end(),ML,ML+sizeof(ML)); } -void INTERP_KERNEL::AsmX86::convertLeave(const std::string& inst, std::vector& ml) +void INTERP_KERNEL::AsmX86::convertLeave(const std::string& /*inst*/, std::vector& ml) { const unsigned char ML[1]={0xc9}; ml.insert(ml.end(),ML,ML+sizeof(ML)); diff --git a/src/INTERP_KERNEL/ExprEval/InterpKernelAsmX86.hxx b/src/INTERP_KERNEL/ExprEval/InterpKernelAsmX86.hxx index 59a7eff58..e0b6f5a23 100644 --- a/src/INTERP_KERNEL/ExprEval/InterpKernelAsmX86.hxx +++ b/src/INTERP_KERNEL/ExprEval/InterpKernelAsmX86.hxx @@ -33,7 +33,7 @@ namespace INTERP_KERNEL { public: std::vector convertIntoMachineLangage(const std::vector& asmb) const; - char *copyToExecMemZone(const std::vector& ml, unsigned& offset) const; + char *copyToExecMemZone(const std::vector& ml, unsigned& /*offset*/) const; private: void convertOneInstructionInML(const std::string& inst, std::vector& ml) const; private: @@ -41,19 +41,19 @@ namespace INTERP_KERNEL static void convertPush(const std::string& inst, std::vector& ml); static void convertPop(const std::string& inst, std::vector& ml); static void convertFld(const std::string& inst, std::vector& ml); - static void convertFaddp(const std::string& inst, std::vector& ml); - static void convertFsubp(const std::string& inst, std::vector& ml); - static void convertFmulp(const std::string& inst, std::vector& ml); - static void convertFdivp(const std::string& inst, std::vector& ml); - static void convertFcos(const std::string& inst, std::vector& ml); - static void convertFsin(const std::string& inst, std::vector& ml); - static void convertFabs(const std::string& inst, std::vector& ml); - static void convertFchs(const std::string& inst, std::vector& ml); - static void convertFsqrt(const std::string& inst, std::vector& ml); + static void convertFaddp(const std::string& /*inst*/, std::vector& ml); + static void convertFsubp(const std::string& /*inst*/, std::vector& ml); + static void convertFmulp(const std::string& /*inst*/, std::vector& ml); + static void convertFdivp(const std::string& /*inst*/, std::vector& ml); + static void convertFcos(const std::string& /*inst*/, std::vector& ml); + static void convertFsin(const std::string& /*inst*/, std::vector& ml); + static void convertFabs(const std::string& /*inst*/, std::vector& ml); + static void convertFchs(const std::string& /*inst*/, std::vector& ml); + static void convertFsqrt(const std::string& /*inst*/, std::vector& ml); static void convertSub(const std::string& inst, std::vector& ml); static void convertAdd(const std::string& inst, std::vector& ml); - static void convertRet(const std::string& inst, std::vector& ml); - static void convertLeave(const std::string& inst, std::vector& ml); + static void convertRet(const std::string& /*inst*/, std::vector& ml); + static void convertLeave(const std::string& /*inst*/, std::vector& ml); static void convertMovsd(const std::string& inst, std::vector& ml); static void convertFst(const std::string& inst, std::vector& ml); // diff --git a/src/INTERP_KERNEL/ExprEval/InterpKernelExprParser.cxx b/src/INTERP_KERNEL/ExprEval/InterpKernelExprParser.cxx index f9e014ac1..6d0c95f6e 100644 --- a/src/INTERP_KERNEL/ExprEval/InterpKernelExprParser.cxx +++ b/src/INTERP_KERNEL/ExprEval/InterpKernelExprParser.cxx @@ -179,7 +179,7 @@ LeafExprVar *LeafExprVar::deepCopy() const /*! * Nothing to do it is not a bug. */ -void LeafExprVar::replaceValues(const std::vector& valuesInExpr) +void LeafExprVar::replaceValues(const std::vector& /*valuesInExpr*/) { } diff --git a/src/INTERP_KERNEL/ExprEval/InterpKernelExprParser.hxx b/src/INTERP_KERNEL/ExprEval/InterpKernelExprParser.hxx index 5bc7c48ab..44c61906b 100644 --- a/src/INTERP_KERNEL/ExprEval/InterpKernelExprParser.hxx +++ b/src/INTERP_KERNEL/ExprEval/InterpKernelExprParser.hxx @@ -57,7 +57,7 @@ namespace INTERP_KERNEL INTERPKERNEL_EXPORT void compileX86(std::vector& ass) const; INTERPKERNEL_EXPORT void compileX86_64(std::vector& ass) const; INTERPKERNEL_EXPORT void fillValue(Value *val) const; - INTERPKERNEL_EXPORT void replaceValues(const std::vector& valuesInExpr); + INTERPKERNEL_EXPORT void replaceValues(const std::vector& /*valuesInExpr*/); INTERPKERNEL_EXPORT LeafExprVal *deepCopy() const; private: double _value; diff --git a/src/INTERP_KERNEL/ExprEval/InterpKernelFunction.cxx b/src/INTERP_KERNEL/ExprEval/InterpKernelFunction.cxx index f3446520f..345b30af7 100644 --- a/src/INTERP_KERNEL/ExprEval/InterpKernelFunction.cxx +++ b/src/INTERP_KERNEL/ExprEval/InterpKernelFunction.cxx @@ -193,15 +193,15 @@ IdentityFunction::~IdentityFunction() { } -void IdentityFunction::operate(std::vector& stck) const +void IdentityFunction::operate(std::vector& /*stck*/) const { } -void IdentityFunction::operateX86(std::vector& asmb) const +void IdentityFunction::operateX86(std::vector& /*asmb*/) const { } -void IdentityFunction::operateStackOfDouble(std::vector& stck) const +void IdentityFunction::operateStackOfDouble(std::vector& /*stck*/) const { } @@ -224,15 +224,15 @@ int UnaryFunction::getNbInputParams() const return 1; } -void PositiveFunction::operate(std::vector& stck) const +void PositiveFunction::operate(std::vector& /*stck*/) const { } -void PositiveFunction::operateX86(std::vector& asmb) const +void PositiveFunction::operateX86(std::vector& /*asmb*/) const { } -void PositiveFunction::operateStackOfDouble(std::vector& stck) const +void PositiveFunction::operateStackOfDouble(std::vector& /*stck*/) const { } @@ -349,7 +349,7 @@ void TanFunction::operate(std::vector& stck) const val->tan(); } -void TanFunction::operateX86(std::vector& asmb) const +void TanFunction::operateX86(std::vector& /*asmb*/) const { throw INTERP_KERNEL::Exception("Assembly Not implemented yet !"); } @@ -380,7 +380,7 @@ void ACosFunction::operate(std::vector& stck) const val->acos(); } -void ACosFunction::operateX86(std::vector& asmb) const +void ACosFunction::operateX86(std::vector& /*asmb*/) const { throw INTERP_KERNEL::Exception("Assembly Not implemented yet !"); } @@ -419,7 +419,7 @@ void ASinFunction::operate(std::vector& stck) const val->asin(); } -void ASinFunction::operateX86(std::vector& asmb) const +void ASinFunction::operateX86(std::vector& /*asmb*/) const { throw INTERP_KERNEL::Exception("Assembly Not implemented yet !"); } @@ -458,7 +458,7 @@ void ATanFunction::operate(std::vector& stck) const val->atan(); } -void ATanFunction::operateX86(std::vector& asmb) const +void ATanFunction::operateX86(std::vector& /*asmb*/) const { throw INTERP_KERNEL::Exception("Assembly Not implemented yet !"); } @@ -489,7 +489,7 @@ void CoshFunction::operate(std::vector& stck) const val->cosh(); } -void CoshFunction::operateX86(std::vector& asmb) const +void CoshFunction::operateX86(std::vector& /*asmb*/) const { throw INTERP_KERNEL::Exception("Assembly Not implemented yet !"); } @@ -520,7 +520,7 @@ void SinhFunction::operate(std::vector& stck) const val->sinh(); } -void SinhFunction::operateX86(std::vector& asmb) const +void SinhFunction::operateX86(std::vector& /*asmb*/) const { throw INTERP_KERNEL::Exception("Assembly Not implemented yet !"); } @@ -551,7 +551,7 @@ void TanhFunction::operate(std::vector& stck) const val->tanh(); } -void TanhFunction::operateX86(std::vector& asmb) const +void TanhFunction::operateX86(std::vector& /*asmb*/) const { throw INTERP_KERNEL::Exception("Assembly Not implemented yet !"); } @@ -648,7 +648,7 @@ void ExpFunction::operate(std::vector& stck) const val->exp(); } -void ExpFunction::operateX86(std::vector& asmb) const +void ExpFunction::operateX86(std::vector& /*asmb*/) const { throw INTERP_KERNEL::Exception("Assembly Not implemented yet !"); } @@ -679,7 +679,7 @@ void LnFunction::operate(std::vector& stck) const val->ln(); } -void LnFunction::operateX86(std::vector& asmb) const +void LnFunction::operateX86(std::vector& /*asmb*/) const { throw INTERP_KERNEL::Exception("Assembly Not implemented yet !"); } @@ -718,7 +718,7 @@ void LogFunction::operate(std::vector& stck) const val->ln(); } -void LogFunction::operateX86(std::vector& asmb) const +void LogFunction::operateX86(std::vector& /*asmb*/) const { throw INTERP_KERNEL::Exception("Assembly for log Not implemented yet !"); } @@ -757,7 +757,7 @@ void Log10Function::operate(std::vector& stck) const val->log10(); } -void Log10Function::operateX86(std::vector& asmb) const +void Log10Function::operateX86(std::vector& /*asmb*/) const { throw INTERP_KERNEL::Exception("Assembly for log Not implemented yet !"); } @@ -999,7 +999,7 @@ void PowFunction::operate(std::vector& stck) const val2=val3; } -void PowFunction::operateX86(std::vector& asmb) const +void PowFunction::operateX86(std::vector& /*asmb*/) const { throw INTERP_KERNEL::Exception("Assembly Not implemented yet !"); } @@ -1059,7 +1059,7 @@ void MaxFunction::operate(std::vector& stck) const val2=val3; } -void MaxFunction::operateX86(std::vector& asmb) const +void MaxFunction::operateX86(std::vector& /*asmb*/) const { throw INTERP_KERNEL::Exception("Assembly Not implemented yet !"); } @@ -1105,7 +1105,7 @@ void MinFunction::operate(std::vector& stck) const val2=val3; } -void MinFunction::operateX86(std::vector& asmb) const +void MinFunction::operateX86(std::vector& /*asmb*/) const { throw INTERP_KERNEL::Exception("Assembly Not implemented yet !"); } @@ -1151,7 +1151,7 @@ void GreaterThanFunction::operate(std::vector& stck) const val2=val3; } -void GreaterThanFunction::operateX86(std::vector& asmb) const +void GreaterThanFunction::operateX86(std::vector& /*asmb*/) const { throw INTERP_KERNEL::Exception("Assembly Not implemented yet !"); } @@ -1198,7 +1198,7 @@ void LowerThanFunction::operate(std::vector& stck) const val2=val3; } -void LowerThanFunction::operateX86(std::vector& asmb) const +void LowerThanFunction::operateX86(std::vector& /*asmb*/) const { throw INTERP_KERNEL::Exception("Assembly Not implemented yet !"); } @@ -1254,7 +1254,7 @@ void IfFunction::operate(std::vector& stck) const val3=val4; } -void IfFunction::operateX86(std::vector& asmb) const +void IfFunction::operateX86(std::vector& /*asmb*/) const { throw INTERP_KERNEL::Exception("Assembly Not implemented yet !"); } diff --git a/src/INTERP_KERNEL/ExprEval/InterpKernelFunction.hxx b/src/INTERP_KERNEL/ExprEval/InterpKernelFunction.hxx index 6c8c8d62b..1d80c487d 100644 --- a/src/INTERP_KERNEL/ExprEval/InterpKernelFunction.hxx +++ b/src/INTERP_KERNEL/ExprEval/InterpKernelFunction.hxx @@ -66,9 +66,9 @@ namespace INTERP_KERNEL { public: ~IdentityFunction(); - void operate(std::vector& stck) const; - void operateX86(std::vector& asmb) const; - void operateStackOfDouble(std::vector& stck) const; + void operate(std::vector& /*stck*/) const; + void operateX86(std::vector& /*asmb*/) const; + void operateStackOfDouble(std::vector& /*stck*/) const; const char *getRepr() const; bool isACall() const; IdentityFunction *deepCopy() const { return new IdentityFunction; } @@ -80,9 +80,9 @@ namespace INTERP_KERNEL { public: ~PositiveFunction(); - void operate(std::vector& stck) const; - void operateX86(std::vector& asmb) const; - void operateStackOfDouble(std::vector& stck) const; + void operate(std::vector& /*stck*/) const; + void operateX86(std::vector& /*asmb*/) const; + void operateStackOfDouble(std::vector& /*stck*/) const; const char *getRepr() const; bool isACall() const; PositiveFunction *deepCopy() const { return new PositiveFunction; } @@ -137,7 +137,7 @@ namespace INTERP_KERNEL public: ~TanFunction(); void operate(std::vector& stck) const; - void operateX86(std::vector& asmb) const; + void operateX86(std::vector& /*asmb*/) const; void operateStackOfDouble(std::vector& stck) const; const char *getRepr() const; bool isACall() const; @@ -151,7 +151,7 @@ namespace INTERP_KERNEL public: ~ACosFunction(); void operate(std::vector& stck) const; - void operateX86(std::vector& asmb) const; + void operateX86(std::vector& /*asmb*/) const; void operateStackOfDouble(std::vector& stck) const; void operateStackOfDoubleSafe(std::vector& stck) const; const char *getRepr() const; @@ -166,7 +166,7 @@ namespace INTERP_KERNEL public: ~ASinFunction(); void operate(std::vector& stck) const; - void operateX86(std::vector& asmb) const; + void operateX86(std::vector& /*asmb*/) const; void operateStackOfDouble(std::vector& stck) const; void operateStackOfDoubleSafe(std::vector& stck) const; const char *getRepr() const; @@ -181,7 +181,7 @@ namespace INTERP_KERNEL public: ~ATanFunction(); void operate(std::vector& stck) const; - void operateX86(std::vector& asmb) const; + void operateX86(std::vector& /*asmb*/) const; void operateStackOfDouble(std::vector& stck) const; const char *getRepr() const; bool isACall() const; @@ -195,7 +195,7 @@ namespace INTERP_KERNEL public: ~CoshFunction(); void operate(std::vector& stck) const; - void operateX86(std::vector& asmb) const; + void operateX86(std::vector& /*asmb*/) const; void operateStackOfDouble(std::vector& stck) const; const char *getRepr() const; bool isACall() const; @@ -209,7 +209,7 @@ namespace INTERP_KERNEL public: ~SinhFunction(); void operate(std::vector& stck) const; - void operateX86(std::vector& asmb) const; + void operateX86(std::vector& /*asmb*/) const; void operateStackOfDouble(std::vector& stck) const; const char *getRepr() const; bool isACall() const; @@ -223,7 +223,7 @@ namespace INTERP_KERNEL public: ~TanhFunction(); void operate(std::vector& stck) const; - void operateX86(std::vector& asmb) const; + void operateX86(std::vector& /*asmb*/) const; void operateStackOfDouble(std::vector& stck) const; const char *getRepr() const; bool isACall() const; @@ -266,7 +266,7 @@ namespace INTERP_KERNEL public: ~ExpFunction(); void operate(std::vector& stck) const; - void operateX86(std::vector& asmb) const; + void operateX86(std::vector& /*asmb*/) const; void operateStackOfDouble(std::vector& stck) const; const char *getRepr() const; bool isACall() const; @@ -280,7 +280,7 @@ namespace INTERP_KERNEL public: ~LnFunction(); void operate(std::vector& stck) const; - void operateX86(std::vector& asmb) const; + void operateX86(std::vector& /*asmb*/) const; void operateStackOfDouble(std::vector& stck) const; void operateStackOfDoubleSafe(std::vector& stck) const; const char *getRepr() const; @@ -295,7 +295,7 @@ namespace INTERP_KERNEL public: ~LogFunction(); void operate(std::vector& stck) const; - void operateX86(std::vector& asmb) const; + void operateX86(std::vector& /*asmb*/) const; void operateStackOfDouble(std::vector& stck) const; void operateStackOfDoubleSafe(std::vector& stck) const; const char *getRepr() const; @@ -310,7 +310,7 @@ namespace INTERP_KERNEL public: ~Log10Function(); void operate(std::vector& stck) const; - void operateX86(std::vector& asmb) const; + void operateX86(std::vector& /*asmb*/) const; void operateStackOfDouble(std::vector& stck) const; void operateStackOfDoubleSafe(std::vector& stck) const; const char *getRepr() const; @@ -388,7 +388,7 @@ namespace INTERP_KERNEL public: ~PowFunction(); void operate(std::vector& stck) const; - void operateX86(std::vector& asmb) const; + void operateX86(std::vector& /*asmb*/) const; void operateStackOfDouble(std::vector& stck) const; void operateStackOfDoubleSafe(std::vector& stck) const; const char *getRepr() const; @@ -403,7 +403,7 @@ namespace INTERP_KERNEL public: ~MaxFunction(); void operate(std::vector& stck) const; - void operateX86(std::vector& asmb) const; + void operateX86(std::vector& /*asmb*/) const; void operateStackOfDouble(std::vector& stck) const; const char *getRepr() const; bool isACall() const; @@ -417,7 +417,7 @@ namespace INTERP_KERNEL public: ~MinFunction(); void operate(std::vector& stck) const; - void operateX86(std::vector& asmb) const; + void operateX86(std::vector& /*asmb*/) const; void operateStackOfDouble(std::vector& stck) const; const char *getRepr() const; bool isACall() const; @@ -431,7 +431,7 @@ namespace INTERP_KERNEL public: ~GreaterThanFunction(); void operate(std::vector& stck) const; - void operateX86(std::vector& asmb) const; + void operateX86(std::vector& /*asmb*/) const; void operateStackOfDouble(std::vector& stck) const; const char *getRepr() const; bool isACall() const; @@ -445,7 +445,7 @@ namespace INTERP_KERNEL public: ~LowerThanFunction(); void operate(std::vector& stck) const; - void operateX86(std::vector& asmb) const; + void operateX86(std::vector& /*asmb*/) const; void operateStackOfDouble(std::vector& stck) const; const char *getRepr() const; bool isACall() const; @@ -465,7 +465,7 @@ namespace INTERP_KERNEL public: ~IfFunction(); void operate(std::vector& stck) const; - void operateX86(std::vector& asmb) const; + void operateX86(std::vector& /*asmb*/) const; void operateStackOfDouble(std::vector& stck) const; void operateStackOfDoubleSafe(std::vector& stck) const; const char *getRepr() const; diff --git a/src/INTERP_KERNEL/ExprEval/InterpKernelUnit.cxx b/src/INTERP_KERNEL/ExprEval/InterpKernelUnit.cxx index 9b6427c31..667ff34bc 100644 --- a/src/INTERP_KERNEL/ExprEval/InterpKernelUnit.cxx +++ b/src/INTERP_KERNEL/ExprEval/InterpKernelUnit.cxx @@ -320,7 +320,7 @@ Unit::Unit(const char *reprC, bool tryToInterp):_coarse_repr(reprC), tryToInterprate(); } -Unit::Unit(const char *reprFortran, int sizeOfRepr, bool tryToInterp):_coarse_repr(ExprParser::buildStringFromFortran(reprFortran,sizeOfRepr)), +Unit::Unit(const char *reprFortran, int sizeOfRepr, bool /*tryToInterp*/):_coarse_repr(ExprParser::buildStringFromFortran(reprFortran,sizeOfRepr)), _is_interpreted(false), _is_interpretation_ok(false) { diff --git a/src/INTERP_KERNEL/ExprEval/InterpKernelUnit.hxx b/src/INTERP_KERNEL/ExprEval/InterpKernelUnit.hxx index cf8064955..31a34a967 100644 --- a/src/INTERP_KERNEL/ExprEval/InterpKernelUnit.hxx +++ b/src/INTERP_KERNEL/ExprEval/InterpKernelUnit.hxx @@ -100,7 +100,7 @@ namespace INTERP_KERNEL { public: INTERPKERNEL_EXPORT Unit(const char *reprC, bool tryToInterp=true); - INTERPKERNEL_EXPORT Unit(const char *reprFortran, int sizeOfRepr, bool tryToInterp=true); + INTERPKERNEL_EXPORT Unit(const char *reprFortran, int sizeOfRepr, bool /*tryToInterp*/=true); INTERPKERNEL_EXPORT void tryToInterprate() const; INTERPKERNEL_EXPORT bool isInterpretationOK() const; INTERPKERNEL_EXPORT bool isCompatibleWith(const Unit& other) const; diff --git a/src/INTERP_KERNEL/ExprEval/InterpKernelValue.cxx b/src/INTERP_KERNEL/ExprEval/InterpKernelValue.cxx index 499432d9c..3388bd97f 100644 --- a/src/INTERP_KERNEL/ExprEval/InterpKernelValue.cxx +++ b/src/INTERP_KERNEL/ExprEval/InterpKernelValue.cxx @@ -49,7 +49,7 @@ void ValueDouble::setDouble(double val) _data=val; } -void ValueDouble::setVarname(int fastPos, const std::string& var) +void ValueDouble::setVarname(int /*fastPos*/, const std::string& var) { std::string msg("Error var : "); msg+=var; msg+=" not numeric : use another expression evaluator !"; throw INTERP_KERNEL::Exception(msg.c_str()); @@ -226,7 +226,7 @@ void ValueUnit::setDouble(double val) _data.tryToConvertInUnit(val); } -void ValueUnit::setVarname(int fastPos, const std::string& var) +void ValueUnit::setVarname(int /*fastPos*/, const std::string& var) { double add,mul; const short *projInBase=UnitDataBase::_uniqueMapForExpr.getInfoForUnit(var,add,mul); @@ -313,31 +313,31 @@ void ValueUnit::log10() unsupportedOp(Log10Function::REPR); } -Value *ValueUnit::plus(const Value *other) const +Value *ValueUnit::plus(const Value * /*other*/) const { unsupportedOp(PlusFunction::REPR); return 0; } -Value *ValueUnit::minus(const Value *other) const +Value *ValueUnit::minus(const Value * /*other*/) const { unsupportedOp(MinusFunction::REPR); return 0; } -Value *ValueUnit::greaterThan(const Value *other) const +Value *ValueUnit::greaterThan(const Value * /*other*/) const { unsupportedOp(GreaterThanFunction::REPR); return 0; } -Value *ValueUnit::lowerThan(const Value *other) const +Value *ValueUnit::lowerThan(const Value * /*other*/) const { unsupportedOp(LowerThanFunction::REPR); return 0; } -Value *ValueUnit::ifFunc(const Value *the, const Value *els) const +Value *ValueUnit::ifFunc(const Value * /*the*/, const Value * /*els*/) const { unsupportedOp(IfFunction::REPR); return 0; @@ -367,13 +367,13 @@ Value *ValueUnit::pow(const Value *other) const return new ValueUnit(tmp); } -Value *ValueUnit::max(const Value *other) const +Value *ValueUnit::max(const Value * /*other*/) const { unsupportedOp(MaxFunction::REPR); return 0; } -Value *ValueUnit::min(const Value *other) const +Value *ValueUnit::min(const Value * /*other*/) const { unsupportedOp(MinFunction::REPR); return 0; @@ -414,7 +414,7 @@ void ValueDoubleExpr::setDouble(double val) std::fill(_dest_data,_dest_data+_sz_dest_data,val); } -void ValueDoubleExpr::setVarname(int fastPos, const std::string& var) +void ValueDoubleExpr::setVarname(int fastPos, const std::string& /*var*/) { if(fastPos==-2) std::copy(_src_data,_src_data+_sz_dest_data,_dest_data); diff --git a/src/INTERP_KERNEL/ExprEval/InterpKernelValue.hxx b/src/INTERP_KERNEL/ExprEval/InterpKernelValue.hxx index 625a50304..a0915d115 100644 --- a/src/INTERP_KERNEL/ExprEval/InterpKernelValue.hxx +++ b/src/INTERP_KERNEL/ExprEval/InterpKernelValue.hxx @@ -71,7 +71,7 @@ namespace INTERP_KERNEL ValueDouble(); Value *newInstance() const; void setDouble(double val); - void setVarname(int fastPos, const std::string& var); + void setVarname(int /*fastPos*/, const std::string& var); // double getData() const { return _data; } void positive(); @@ -115,7 +115,7 @@ namespace INTERP_KERNEL INTERPKERNEL_EXPORT ValueUnit(); INTERPKERNEL_EXPORT Value *newInstance() const; INTERPKERNEL_EXPORT void setDouble(double val); - INTERPKERNEL_EXPORT void setVarname(int fastPos, const std::string& var); + INTERPKERNEL_EXPORT void setVarname(int /*fastPos*/, const std::string& var); // INTERPKERNEL_EXPORT DecompositionInUnitBase getData() const { return _data; } INTERPKERNEL_EXPORT void positive(); @@ -135,17 +135,17 @@ namespace INTERP_KERNEL INTERPKERNEL_EXPORT void ln(); INTERPKERNEL_EXPORT void log10(); // - INTERPKERNEL_EXPORT Value *plus(const Value *other) const; - INTERPKERNEL_EXPORT Value *minus(const Value *other) const; + INTERPKERNEL_EXPORT Value *plus(const Value * /*other*/) const; + INTERPKERNEL_EXPORT Value *minus(const Value * /*other*/) const; INTERPKERNEL_EXPORT Value *mult(const Value *other) const; INTERPKERNEL_EXPORT Value *div(const Value *other) const; INTERPKERNEL_EXPORT Value *pow(const Value *other) const; - INTERPKERNEL_EXPORT Value *max(const Value *other) const; - INTERPKERNEL_EXPORT Value *min(const Value *other) const; - INTERPKERNEL_EXPORT Value *greaterThan(const Value *other) const; - INTERPKERNEL_EXPORT Value *lowerThan(const Value *other) const; + INTERPKERNEL_EXPORT Value *max(const Value * /*other*/) const; + INTERPKERNEL_EXPORT Value *min(const Value * /*other*/) const; + INTERPKERNEL_EXPORT Value *greaterThan(const Value * /*other*/) const; + INTERPKERNEL_EXPORT Value *lowerThan(const Value * /*other*/) const; // - INTERPKERNEL_EXPORT Value *ifFunc(const Value *the, const Value *els) const; + INTERPKERNEL_EXPORT Value *ifFunc(const Value * /*the*/, const Value * /*els*/) const; private: ValueUnit(const DecompositionInUnitBase& unit); static void unsupportedOp(const char *type); @@ -162,7 +162,7 @@ namespace INTERP_KERNEL double *getData() const { return _dest_data; } Value *newInstance() const; void setDouble(double val); - void setVarname(int fastPos, const std::string& var); + void setVarname(int /*fastPos*/, const std::string& var); // void positive(); void negate(); diff --git a/src/INTERP_KERNEL/Geometric2D/InterpKernelGeo2DEdgeArcCircle.cxx b/src/INTERP_KERNEL/Geometric2D/InterpKernelGeo2DEdgeArcCircle.cxx index bd63fe757..11618d908 100644 --- a/src/INTERP_KERNEL/Geometric2D/InterpKernelGeo2DEdgeArcCircle.cxx +++ b/src/INTERP_KERNEL/Geometric2D/InterpKernelGeo2DEdgeArcCircle.cxx @@ -378,7 +378,7 @@ bool ArcCSegIntersector::areColinears() const return false; } -void ArcCSegIntersector::getPlacements(Node *start, Node *end, TypeOfLocInEdge& whereStart, TypeOfLocInEdge& whereEnd, MergePoints& commonNode) const +void ArcCSegIntersector::getPlacements(Node * /*start*/, Node * /*end*/, TypeOfLocInEdge& /*whereStart*/, TypeOfLocInEdge& /*whereEnd*/, MergePoints& /*commonNode*/) const { throw Exception("Internal error. Should never been called : no overlapping possible between arc of circle and a segment."); } diff --git a/src/INTERP_KERNEL/Geometric2D/InterpKernelGeo2DEdgeArcCircle.hxx b/src/INTERP_KERNEL/Geometric2D/InterpKernelGeo2DEdgeArcCircle.hxx index bdb2264e6..14dec3ffd 100644 --- a/src/INTERP_KERNEL/Geometric2D/InterpKernelGeo2DEdgeArcCircle.hxx +++ b/src/INTERP_KERNEL/Geometric2D/InterpKernelGeo2DEdgeArcCircle.hxx @@ -33,7 +33,7 @@ namespace INTERP_KERNEL ArcCArcCIntersector(const EdgeArcCircle& e1, const EdgeArcCircle& e2); bool haveTheySameDirection() const; bool areColinears() const; - void getPlacements(Node *start, Node *end, TypeOfLocInEdge& whereStart, TypeOfLocInEdge& whereEnd, MergePoints& commonNode) const; + void getPlacements(Node * /*start*/, Node * /*end*/, TypeOfLocInEdge& /*whereStart*/, TypeOfLocInEdge& /*whereEnd*/, MergePoints& /*commonNode*/) const; void areOverlappedOrOnlyColinears(bool& obviousNoIntersection, bool& areOverlapped); std::list< IntersectElement > getIntersectionsCharacteristicVal() const; private: @@ -97,11 +97,11 @@ namespace INTERP_KERNEL double getDistanceToPoint(const double *pt) const; bool isNodeLyingOn(const double *coordOfNode) const; TypeOfFunction getTypeOfFunc() const { return ARC_CIRCLE; } - void dynCastFunction(const EdgeLin * &seg, + void dynCastFunction(const EdgeLin * & /*seg*/, const EdgeArcCircle * &arcSeg) const { arcSeg=this; } const double *getCenter() const { return _center; } void getCenter(double *center) const { center[0]=_center[0]; center[1]=_center[1]; } - bool doIHaveSameDirectionAs(const Edge& other) const { return false; } + bool doIHaveSameDirectionAs(const Edge& /*other*/) const { return false; } void applySimilarity(double xBary, double yBary, double dimChar); void unApplySimilarity(double xBary, double yBary, double dimChar); double getAngle0() const { return _angle0; } diff --git a/src/INTERP_KERNEL/Geometric2D/InterpKernelGeo2DEdgeInfLin.hxx b/src/INTERP_KERNEL/Geometric2D/InterpKernelGeo2DEdgeInfLin.hxx index 9cef22350..5427822ac 100644 --- a/src/INTERP_KERNEL/Geometric2D/InterpKernelGeo2DEdgeInfLin.hxx +++ b/src/INTERP_KERNEL/Geometric2D/InterpKernelGeo2DEdgeInfLin.hxx @@ -30,9 +30,9 @@ namespace INTERP_KERNEL public: EdgeInfLin(Node *start, Node *end):EdgeLin(start,end,true) { } EdgeInfLin(Node *pointPassingThrough, double slope); - bool isIn(double characterVal) const { return true; } + bool isIn(double /*characterVal*/) const { return true; } void dynCastFunction(const EdgeLin * &seg, - const EdgeArcCircle * &arcSeg) const { seg=this; } + const EdgeArcCircle * & /*arcSeg*/) const { seg=this; } protected: ~EdgeInfLin() { } }; diff --git a/src/INTERP_KERNEL/Geometric2D/InterpKernelGeo2DEdgeLin.cxx b/src/INTERP_KERNEL/Geometric2D/InterpKernelGeo2DEdgeLin.cxx index 684255f99..82a9a7534 100644 --- a/src/INTERP_KERNEL/Geometric2D/InterpKernelGeo2DEdgeLin.cxx +++ b/src/INTERP_KERNEL/Geometric2D/InterpKernelGeo2DEdgeLin.cxx @@ -258,7 +258,7 @@ void EdgeLin::dumpInXfigFile(std::ostream& stream, bool direction, int resolutio stream << std::endl; } -void EdgeLin::update(Node *m) +void EdgeLin::update(Node * /*m*/) { updateBounds(); } diff --git a/src/INTERP_KERNEL/Geometric2D/InterpKernelGeo2DEdgeLin.hxx b/src/INTERP_KERNEL/Geometric2D/InterpKernelGeo2DEdgeLin.hxx index 3545bb705..d7b02e80f 100644 --- a/src/INTERP_KERNEL/Geometric2D/InterpKernelGeo2DEdgeLin.hxx +++ b/src/INTERP_KERNEL/Geometric2D/InterpKernelGeo2DEdgeLin.hxx @@ -56,7 +56,7 @@ namespace INTERP_KERNEL ~EdgeLin(); TypeOfFunction getTypeOfFunc() const { return SEG; } void dumpInXfigFile(std::ostream& stream, bool direction, int resolution, const Bounds& box) const; - void update(Node *m); + void update(Node * /*m*/); double getNormSq() const; double getAreaOfZone() const; double getCurveLength() const; @@ -73,7 +73,7 @@ namespace INTERP_KERNEL double getCharactValueEng(const double *node) const; bool doIHaveSameDirectionAs(const Edge& other) const; void dynCastFunction(const EdgeLin * &seg, - const EdgeArcCircle * &arcSeg) const { seg=this; } + const EdgeArcCircle * & /*arcSeg*/) const { seg=this; } protected: EdgeLin() { } void updateBounds(); diff --git a/src/INTERP_KERNEL/Geometric2D/InterpKernelGeo2DQuadraticPolygon.cxx b/src/INTERP_KERNEL/Geometric2D/InterpKernelGeo2DQuadraticPolygon.cxx index ce1f2860e..06c31a3ee 100644 --- a/src/INTERP_KERNEL/Geometric2D/InterpKernelGeo2DQuadraticPolygon.cxx +++ b/src/INTERP_KERNEL/Geometric2D/InterpKernelGeo2DQuadraticPolygon.cxx @@ -445,7 +445,7 @@ void QuadraticPolygon::appendEdgeFromCrudeDataArray(std::size_t edgePos, const s } } -void QuadraticPolygon::appendSubEdgeFromCrudeDataArray(Edge *baseEdge, std::size_t j, bool direct, mcIdType edgeId, const std::vector& subEdge, const std::map& mapp) +void QuadraticPolygon::appendSubEdgeFromCrudeDataArray(Edge *baseEdge, std::size_t j, bool direct, mcIdType /*edgeId*/, const std::vector& subEdge, const std::map& mapp) { std::size_t nbOfSubEdges=subEdge.size()/2; if(!baseEdge) diff --git a/src/INTERP_KERNEL/Geometric2D/InterpKernelGeo2DQuadraticPolygon.hxx b/src/INTERP_KERNEL/Geometric2D/InterpKernelGeo2DQuadraticPolygon.hxx index 3bba1c767..38e93f185 100644 --- a/src/INTERP_KERNEL/Geometric2D/InterpKernelGeo2DQuadraticPolygon.hxx +++ b/src/INTERP_KERNEL/Geometric2D/InterpKernelGeo2DQuadraticPolygon.hxx @@ -77,7 +77,7 @@ namespace INTERP_KERNEL INTERPKERNEL_EXPORT void updateLocOfEdgeFromCrudeDataArray2(const mcIdType *descBg, const mcIdType *descEnd, const std::vector >& intersectEdges, const INTERP_KERNEL::QuadraticPolygon& pol1, const mcIdType *descBg1, const mcIdType *descEnd1, const std::vector >& intersectEdges1, const std::vector< std::vector >& colinear1) const; INTERPKERNEL_EXPORT void appendEdgeFromCrudeDataArray(std::size_t edgeId, const std::map& mapp, bool isQuad, const mcIdType *nodalBg, const double *coords, const mcIdType *descBg, const mcIdType *descEnd, const std::vector >& intersectEdges); - INTERPKERNEL_EXPORT void appendSubEdgeFromCrudeDataArray(Edge *baseEdge, std::size_t j, bool direct, mcIdType edgeId, const std::vector& subEdge, const std::map& mapp); + INTERPKERNEL_EXPORT void appendSubEdgeFromCrudeDataArray(Edge *baseEdge, std::size_t j, bool direct, mcIdType /*edgeId*/, const std::vector& subEdge, const std::map& mapp); INTERPKERNEL_EXPORT void appendCrudeData(const std::map& mapp, double xBary, double yBary, double fact, mcIdType offset, std::vector& addCoordsQuadratic, std::vector& conn, std::vector& connI) const; INTERPKERNEL_EXPORT void buildPartitionsAbs(QuadraticPolygon& other, std::set& edgesThis, std::set& edgesBoundaryOther, const std::map& mapp, mcIdType idThis, mcIdType idOther, mcIdType offset, std::vector& addCoordsQuadratic, std::vector& conn, std::vector& connI, std::vector& nb1, std::vector& nb2); @@ -104,7 +104,7 @@ namespace INTERP_KERNEL static void ClosePolygons(std::list& pol1Zip, const QuadraticPolygon& pol1, const QuadraticPolygon& pol2, std::vector& results); template - static void UpdateNeighbours(const MergePoints& merger, IteratorOnComposedEdge it1, IteratorOnComposedEdge it2, + static void UpdateNeighbours(const MergePoints& /*merger*/, IteratorOnComposedEdge it1, IteratorOnComposedEdge it2, const EDGES *e1, const EDGES *e2); std::list::iterator fillAsMuchAsPossibleWith(const QuadraticPolygon& pol2Splitted, std::list::iterator iStart, @@ -118,7 +118,7 @@ namespace INTERP_KERNEL namespace INTERP_KERNEL { template - void QuadraticPolygon::UpdateNeighbours(const MergePoints& merger, IteratorOnComposedEdge it1, IteratorOnComposedEdge it2, + void QuadraticPolygon::UpdateNeighbours(const MergePoints& /*merger*/, IteratorOnComposedEdge it1, IteratorOnComposedEdge it2, const EDGES *e1, const EDGES *e2) { it1.previousLoop(); it2.previousLoop(); diff --git a/src/INTERP_KERNEL/IntegralUniformIntersector.txx b/src/INTERP_KERNEL/IntegralUniformIntersector.txx index 2ec0ae120..654e2675e 100755 --- a/src/INTERP_KERNEL/IntegralUniformIntersector.txx +++ b/src/INTERP_KERNEL/IntegralUniformIntersector.txx @@ -87,7 +87,7 @@ namespace INTERP_KERNEL } template - void IntegralUniformIntersectorP0::intersectCells(ConnType targetCell, const std::vector& srcCells, MyMatrix& res) + void IntegralUniformIntersectorP0::intersectCells(ConnType /*targetCell*/, const std::vector& /*srcCells*/, MyMatrix& res) { static const NumberingPolicy numPol=MyMeshType::My_numPol; res.resize(getNumberOfRowsOfResMatrix()); @@ -127,7 +127,7 @@ namespace INTERP_KERNEL } template - void IntegralUniformIntersectorP1::intersectCells(ConnType targetCell, const std::vector& srcCells, MyMatrix& res) + void IntegralUniformIntersectorP1::intersectCells(ConnType /*targetCell*/, const std::vector& /*srcCells*/, MyMatrix& res) { static const NumberingPolicy numPol=MyMeshType::My_numPol; res.resize(getNumberOfRowsOfResMatrix()); diff --git a/src/INTERP_KERNEL/InterpKernelCellSimplify.cxx b/src/INTERP_KERNEL/InterpKernelCellSimplify.cxx index 683cce84c..c04435a2c 100644 --- a/src/INTERP_KERNEL/InterpKernelCellSimplify.cxx +++ b/src/INTERP_KERNEL/InterpKernelCellSimplify.cxx @@ -273,7 +273,7 @@ bool CellSimplify::orientOppositeFace(const mcIdType *baseFace, mcIdType *retCon return true; } -bool CellSimplify::isWellOriented(const mcIdType *baseFace, mcIdType *retConn, const mcIdType *sideFace, mcIdType lgthBaseFace) +bool CellSimplify::isWellOriented(const mcIdType * /*baseFace*/, mcIdType * /*retConn*/, const mcIdType * /*sideFace*/, mcIdType /*lgthBaseFace*/) { return true; } diff --git a/src/INTERP_KERNEL/InterpKernelCellSimplify.hxx b/src/INTERP_KERNEL/InterpKernelCellSimplify.hxx index 9ebb66098..428af9e00 100644 --- a/src/INTERP_KERNEL/InterpKernelCellSimplify.hxx +++ b/src/INTERP_KERNEL/InterpKernelCellSimplify.hxx @@ -42,7 +42,7 @@ namespace INTERP_KERNEL static INTERP_KERNEL::NormalizedCellType tryToUnPolyPyra5(const mcIdType *conn, mcIdType nbOfFaces, mcIdType lgth, mcIdType *retConn, mcIdType& retLgth); static INTERP_KERNEL::NormalizedCellType tryToUnPolyTetra4(const mcIdType *conn, mcIdType nbOfFaces, mcIdType lgth, mcIdType *retConn, mcIdType& retLgth); static bool tryToArrangeOppositeFace(const mcIdType *conn, mcIdType lgth, mcIdType lgthBaseFace, const mcIdType *baseFace, const mcIdType *oppFaceId, mcIdType nbOfFaces, mcIdType *retConnOfOppFace); - static bool isWellOriented(const mcIdType *baseFace, mcIdType *retConn, const mcIdType *sideFace, mcIdType lgthBaseFace); + static bool isWellOriented(const mcIdType * /*baseFace*/, mcIdType * /*retConn*/, const mcIdType * /*sideFace*/, mcIdType /*lgthBaseFace*/); static bool orientOppositeFace(const mcIdType *baseFace, mcIdType *retConn, const mcIdType *sideFace, mcIdType lgthBaseFace); static bool isFlatCell(const mcIdType* conn, mcIdType pos, mcIdType lgth, NormalizedCellType type); }; diff --git a/src/INTERP_KERNEL/Interpolation2D.hxx b/src/INTERP_KERNEL/Interpolation2D.hxx index efdf824b3..f94f99df6 100644 --- a/src/INTERP_KERNEL/Interpolation2D.hxx +++ b/src/INTERP_KERNEL/Interpolation2D.hxx @@ -34,7 +34,7 @@ namespace INTERP_KERNEL bool doRotate() const { return false; } double medianPlane() const { return 0.; } template - void performAdjustmentOfBB(PlanarIntersector* intersector, std::vector& bbox) const { } + void performAdjustmentOfBB(PlanarIntersector* /*intersector*/, std::vector& /*bbox*/) const { } }; } diff --git a/src/INTERP_KERNEL/IntersectorCU.hxx b/src/INTERP_KERNEL/IntersectorCU.hxx index 3078f7885..ebbac51b4 100644 --- a/src/INTERP_KERNEL/IntersectorCU.hxx +++ b/src/INTERP_KERNEL/IntersectorCU.hxx @@ -71,7 +71,7 @@ namespace INTERP_KERNEL { public: _StabIntersector(const MyCMeshType& meshS, const MyUMeshType& meshT) : IntersectorCU >(meshS, meshT) {} - double intersectGeometry(typename MyUMeshType::MyConnType icellT, const std::vector& icellC) { throw Exception("You must provide an intersector as the 4-th template argument of IntersectorCU"); return 0; } + double intersectGeometry(typename MyUMeshType::MyConnType /*icellT*/, const std::vector& /*icellC*/) { throw Exception("You must provide an intersector as the 4-th template argument of IntersectorCU"); return 0; } }; } diff --git a/src/INTERP_KERNEL/IntersectorCU3D.txx b/src/INTERP_KERNEL/IntersectorCU3D.txx index 6c6310c4e..e83d104fc 100644 --- a/src/INTERP_KERNEL/IntersectorCU3D.txx +++ b/src/INTERP_KERNEL/IntersectorCU3D.txx @@ -80,8 +80,8 @@ namespace INTERP_KERNEL boundingBox[BoundingBox::ZMIN] = _coordsU[2]; boundingBox[BoundingBox::ZMAX] = _coordsU[2+4*MY_SPACEDIM]; } - NormalizedCellType getTypeOfElement(mcIdType eltId) const { return NORM_HEXA8; } - mcIdType getNumberOfNodesOfElement(mcIdType eltId) const { return 8; } + NormalizedCellType getTypeOfElement(mcIdType /*eltId*/) const { return NORM_HEXA8; } + mcIdType getNumberOfNodesOfElement(mcIdType /*eltId*/) const { return 8; } mcIdType getNumberOfElements() const { return 1; } mcIdType getNumberOfNodes() const { return 8; } const double *getCoordinatesPtr() const { return _coordsU; } diff --git a/src/INTERP_KERNEL/PolygonAlgorithms.txx b/src/INTERP_KERNEL/PolygonAlgorithms.txx index 1d4adc6c8..9124abf4e 100644 --- a/src/INTERP_KERNEL/PolygonAlgorithms.txx +++ b/src/INTERP_KERNEL/PolygonAlgorithms.txx @@ -170,7 +170,7 @@ namespace INTERP_KERNEL /* i is the local index of the current vertex */ /*************************************************************/ template - inline void PolygonAlgorithms::addNewVertex( int i, int i_glob, int i_next_glob, int i_prev_glob, + inline void PolygonAlgorithms::addNewVertex( int i, int i_glob, int i_next_glob, int /*i_prev_glob*/, const double * P) { /* Question:Should we add vertex i to the front or back ? */ @@ -333,7 +333,7 @@ namespace INTERP_KERNEL int& j3, int& j3_glob, int& j4, int& j4_glob, int& i_glob, int& i_next_glob, int& i_prev_glob, const double * P_1, const double * P_2, - int N1, int N2, int sign) + int N1, int N2, int /*sign*/) { int N0, shift; if(i_glob < N1) diff --git a/src/INTERP_KERNEL/TriangulationIntersector.txx b/src/INTERP_KERNEL/TriangulationIntersector.txx index 3705340b7..449be3c0f 100644 --- a/src/INTERP_KERNEL/TriangulationIntersector.txx +++ b/src/INTERP_KERNEL/TriangulationIntersector.txx @@ -100,7 +100,7 @@ namespace INTERP_KERNEL TRI_INTER_TEMPLATE double TRI_INTERSECTOR::intersectGeometryWithQuadrangle(const double * quadrangle, const std::vector& sourceCoords, - bool isSourceQuad) + bool /*isSourceQuad*/) { double result = 0.; ConnType nbNodesS=ToConnType(sourceCoords.size())/SPACEDIM; @@ -181,7 +181,7 @@ namespace INTERP_KERNEL TRI_INTER_TEMPLATE double TRI_INTERSECTOR::intersectGeoBary(const std::vector& targetCell, - bool targetCellQuadratic, + bool /*targetCellQuadratic*/, const double * sourceTria, std::vector& res) { diff --git a/src/MEDCoupling/MEDCoupling1GTUMesh.cxx b/src/MEDCoupling/MEDCoupling1GTUMesh.cxx index 72a4e2395..2ff53aaa1 100644 --- a/src/MEDCoupling/MEDCoupling1GTUMesh.cxx +++ b/src/MEDCoupling/MEDCoupling1GTUMesh.cxx @@ -675,7 +675,7 @@ void MEDCoupling1SGTUMesh::checkConsistencyLight() const checkConsistencyOfConnectivity(); } -void MEDCoupling1SGTUMesh::checkConsistency(double eps) const +void MEDCoupling1SGTUMesh::checkConsistency(double /*eps*/) const { checkConsistencyLight(); const DataArrayIdType *c1(_conn); @@ -712,7 +712,7 @@ mcIdType MEDCoupling1SGTUMesh::getNumberOfCells() const return nbOfTuples/nbOfNodesPerCell; } -mcIdType MEDCoupling1SGTUMesh::getNumberOfNodesInCell(mcIdType cellId) const +mcIdType MEDCoupling1SGTUMesh::getNumberOfNodesInCell(mcIdType /*cellId*/) const { return getNumberOfNodesPerCell(); } @@ -1440,7 +1440,7 @@ void MEDCoupling1SGTUMesh::checkFullyDefined() const /*! * First step of unserialization process. */ -bool MEDCoupling1SGTUMesh::isEmptyMesh(const std::vector& tinyInfo) const +bool MEDCoupling1SGTUMesh::isEmptyMesh(const std::vector& /*tinyInfo*/) const { throw INTERP_KERNEL::Exception("MEDCoupling1SGTUMesh::isEmptyMesh : not implemented yet !"); } @@ -1480,7 +1480,7 @@ void MEDCoupling1SGTUMesh::getTinySerializationInformation(std::vector& tinyInfoD.push_back(time); } -void MEDCoupling1SGTUMesh::resizeForUnserialization(const std::vector& tinyInfo, DataArrayIdType *a1, DataArrayDouble *a2, std::vector& littleStrings) const +void MEDCoupling1SGTUMesh::resizeForUnserialization(const std::vector& tinyInfo, DataArrayIdType *a1, DataArrayDouble *a2, std::vector& /*littleStrings*/) const { std::vector tinyInfo2(tinyInfo.begin()+7,tinyInfo.begin()+7+tinyInfo[5]); std::vector tinyInfo1(tinyInfo.begin()+7+tinyInfo[5],tinyInfo.begin()+7+tinyInfo[5]+tinyInfo[6]); @@ -2079,7 +2079,7 @@ MEDCoupling1DGTUMesh *MEDCoupling1SGTUMesh::computeDualMesh2D() const * \throw If \a this is not fully set (coordinates and connectivity). * \throw If a cell in \a this has no valid nodeId. */ -DataArrayDouble *MEDCoupling1SGTUMesh::getBoundingBoxForBBTree(double arcDetEps) const +DataArrayDouble *MEDCoupling1SGTUMesh::getBoundingBoxForBBTree(double /*arcDetEps*/) const { mcIdType spaceDim(getSpaceDimension()),nbOfCells(getNumberOfCells()),nbOfNodes(getNumberOfNodes()),nbOfNodesPerCell(getNumberOfNodesPerCell()); MCAuto ret(DataArrayDouble::New()); ret->alloc(nbOfCells,2*spaceDim); @@ -2417,7 +2417,7 @@ void MEDCoupling1DGTUMesh::checkConsistencyLight() const checkConsistencyOfConnectivity(); } -void MEDCoupling1DGTUMesh::checkConsistency(double eps) const +void MEDCoupling1DGTUMesh::checkConsistency(double /*eps*/) const { checkConsistencyLight(); const DataArrayIdType *c1(_conn),*c2(_conn_indx); @@ -2797,7 +2797,7 @@ MEDCouplingUMesh *MEDCoupling1DGTUMesh::buildUnstructured() const /*! * Do nothing for the moment, because there is no policy that allows to split polygons, polyhedrons ... into simplexes */ -DataArrayIdType *MEDCoupling1DGTUMesh::simplexize(int policy) +DataArrayIdType *MEDCoupling1DGTUMesh::simplexize(int /*policy*/) { mcIdType nbOfCells=getNumberOfCells(); MCAuto ret=DataArrayIdType::New(); @@ -2952,7 +2952,7 @@ void MEDCoupling1DGTUMesh::checkFullyDefined() const throw INTERP_KERNEL::Exception("MEDCoupling1DGTUMesh::checkFullyDefined : part of this is not fully defined."); } -bool MEDCoupling1DGTUMesh::isEmptyMesh(const std::vector& tinyInfo) const +bool MEDCoupling1DGTUMesh::isEmptyMesh(const std::vector& /*tinyInfo*/) const { throw INTERP_KERNEL::Exception("MEDCoupling1DGTUMesh::isEmptyMesh : not implemented yet !"); } @@ -2998,7 +2998,7 @@ void MEDCoupling1DGTUMesh::getTinySerializationInformation(std::vector& tinyInfoD.push_back(time); } -void MEDCoupling1DGTUMesh::resizeForUnserialization(const std::vector& tinyInfo, DataArrayIdType *a1, DataArrayDouble *a2, std::vector& littleStrings) const +void MEDCoupling1DGTUMesh::resizeForUnserialization(const std::vector& tinyInfo, DataArrayIdType *a1, DataArrayDouble *a2, std::vector& /*littleStrings*/) const { std::vector tinyInfo2(tinyInfo.begin()+9,tinyInfo.begin()+9+tinyInfo[6]); std::vector tinyInfo1(tinyInfo.begin()+9+tinyInfo[6],tinyInfo.begin()+9+tinyInfo[6]+tinyInfo[7]); @@ -3574,7 +3574,7 @@ MEDCoupling1DGTUMesh *MEDCoupling1DGTUMesh::buildSetInstanceFromThis(std::size_t * \throw If \a this is not fully set (coordinates and connectivity). * \throw If a cell in \a this has no valid nodeId. */ -DataArrayDouble *MEDCoupling1DGTUMesh::getBoundingBoxForBBTree(double arcDetEps) const +DataArrayDouble *MEDCoupling1DGTUMesh::getBoundingBoxForBBTree(double /*arcDetEps*/) const { checkFullyDefined(); mcIdType spaceDim(getSpaceDimension()),nbOfCells(getNumberOfCells()),nbOfNodes(getNumberOfNodes()); diff --git a/src/MEDCoupling/MEDCoupling1GTUMesh.hxx b/src/MEDCoupling/MEDCoupling1GTUMesh.hxx index e19089d1d..18d21465f 100644 --- a/src/MEDCoupling/MEDCoupling1GTUMesh.hxx +++ b/src/MEDCoupling/MEDCoupling1GTUMesh.hxx @@ -109,7 +109,7 @@ namespace MEDCoupling MEDCOUPLING_EXPORT bool isEqualWithoutConsideringStr(const MEDCouplingMesh *other, double prec) const; MEDCOUPLING_EXPORT void checkFastEquivalWith(const MEDCouplingMesh *other, double prec) const; MEDCOUPLING_EXPORT void checkConsistencyLight() const; - MEDCOUPLING_EXPORT void checkConsistency(double eps=1e-12) const; + MEDCOUPLING_EXPORT void checkConsistency(double /*eps*/=1e-12) const; MEDCOUPLING_EXPORT mcIdType getNumberOfCells() const; MEDCOUPLING_EXPORT DataArrayIdType *computeNbOfNodesPerCell() const; MEDCOUPLING_EXPORT DataArrayIdType *computeNbOfFacesPerCell() const; @@ -131,7 +131,7 @@ namespace MEDCoupling MEDCOUPLING_EXPORT void computeNodeIdsAlg(std::vector& nodeIdsInUse) const; MEDCOUPLING_EXPORT void getReverseNodalConnectivity(DataArrayIdType *revNodal, DataArrayIdType *revNodalIndx) const; MEDCOUPLING_EXPORT void checkFullyDefined() const; - MEDCOUPLING_EXPORT bool isEmptyMesh(const std::vector& tinyInfo) const; + MEDCOUPLING_EXPORT bool isEmptyMesh(const std::vector& /*tinyInfo*/) const; MEDCOUPLING_EXPORT DataArrayIdType *computeFetchedNodeIds() const; MEDCOUPLING_EXPORT DataArrayIdType *getNodeIdsInUse(mcIdType& nbrOfNodesInUse) const; MEDCOUPLING_EXPORT void renumberNodesWithOffsetInConn(mcIdType offset); @@ -139,8 +139,8 @@ namespace MEDCoupling MEDCOUPLING_EXPORT void renumberNodesInConn(const std::map& newNodeNumbersO2N) override; MEDCOUPLING_EXPORT void renumberNodesInConn(const mcIdType *newNodeNumbersO2N); MEDCOUPLING_EXPORT void fillCellIdsToKeepFromNodeIds(const mcIdType *begin, const mcIdType *end, bool fullyIn, DataArrayIdType *&cellIdsKeptArr) const; - MEDCOUPLING_EXPORT mcIdType getNumberOfNodesInCell(mcIdType cellId) const; - MEDCOUPLING_EXPORT DataArrayDouble *getBoundingBoxForBBTree(double arcDetEps=1e-12) const; + MEDCOUPLING_EXPORT mcIdType getNumberOfNodesInCell(mcIdType /*cellId*/) const; + MEDCOUPLING_EXPORT DataArrayDouble *getBoundingBoxForBBTree(double /*arcDetEps*/=1e-12) const; MEDCOUPLING_EXPORT MEDCouplingFieldDouble *computeDiameterField() const; MEDCOUPLING_EXPORT void invertOrientationOfAllCells(); // overload of MEDCoupling1GTUMesh @@ -161,7 +161,7 @@ namespace MEDCoupling MEDCOUPLING_EXPORT MEDCouplingCMesh *structurizeMe(DataArrayIdType *& cellPerm, DataArrayIdType *& nodePerm, double eps=1e-12) const; public://serialization MEDCOUPLING_EXPORT void getTinySerializationInformation(std::vector& tinyInfoD, std::vector& tinyInfo, std::vector& littleStrings) const; - MEDCOUPLING_EXPORT void resizeForUnserialization(const std::vector& tinyInfo, DataArrayIdType *a1, DataArrayDouble *a2, std::vector& littleStrings) const; + MEDCOUPLING_EXPORT void resizeForUnserialization(const std::vector& tinyInfo, DataArrayIdType *a1, DataArrayDouble *a2, std::vector& /*littleStrings*/) const; MEDCOUPLING_EXPORT void serialize(DataArrayIdType *&a1, DataArrayDouble *&a2) const; MEDCOUPLING_EXPORT void unserialization(const std::vector& tinyInfoD, const std::vector& tinyInfo, const DataArrayIdType *a1, DataArrayDouble *a2, const std::vector& littleStrings); @@ -209,7 +209,7 @@ namespace MEDCoupling MEDCOUPLING_EXPORT bool isEqualWithoutConsideringStr(const MEDCouplingMesh *other, double prec) const; MEDCOUPLING_EXPORT void checkFastEquivalWith(const MEDCouplingMesh *other, double prec) const; MEDCOUPLING_EXPORT void checkConsistencyLight() const; - MEDCOUPLING_EXPORT void checkConsistency(double eps=1e-12) const; + MEDCOUPLING_EXPORT void checkConsistency(double /*eps*/=1e-12) const; MEDCOUPLING_EXPORT mcIdType getNumberOfCells() const; MEDCOUPLING_EXPORT DataArrayIdType *computeNbOfNodesPerCell() const; MEDCOUPLING_EXPORT DataArrayIdType *computeNbOfFacesPerCell() const; @@ -221,7 +221,7 @@ namespace MEDCoupling MEDCOUPLING_EXPORT void renumberCells(const mcIdType *old2NewBg, bool check=true); MEDCOUPLING_EXPORT MEDCouplingMesh *mergeMyselfWith(const MEDCouplingMesh *other) const; MEDCOUPLING_EXPORT MEDCouplingUMesh *buildUnstructured() const; - MEDCOUPLING_EXPORT DataArrayIdType *simplexize(int policy); + MEDCOUPLING_EXPORT DataArrayIdType *simplexize(int /*policy*/); MEDCOUPLING_EXPORT void reprQuickOverview(std::ostream& stream) const; // overload of MEDCouplingPointSet MEDCOUPLING_EXPORT void shallowCopyConnectivityFrom(const MEDCouplingPointSet *other); @@ -231,7 +231,7 @@ namespace MEDCoupling MEDCOUPLING_EXPORT void computeNodeIdsAlg(std::vector& nodeIdsInUse) const; MEDCOUPLING_EXPORT void getReverseNodalConnectivity(DataArrayIdType *revNodal, DataArrayIdType *revNodalIndx) const; MEDCOUPLING_EXPORT void checkFullyDefined() const; - MEDCOUPLING_EXPORT bool isEmptyMesh(const std::vector& tinyInfo) const; + MEDCOUPLING_EXPORT bool isEmptyMesh(const std::vector& /*tinyInfo*/) const; MEDCOUPLING_EXPORT DataArrayIdType *computeFetchedNodeIds() const; MEDCOUPLING_EXPORT DataArrayIdType *getNodeIdsInUse(mcIdType& nbrOfNodesInUse) const; MEDCOUPLING_EXPORT void renumberNodesWithOffsetInConn(mcIdType offset); @@ -240,7 +240,7 @@ namespace MEDCoupling MEDCOUPLING_EXPORT void renumberNodesInConn(const mcIdType *newNodeNumbersO2N); MEDCOUPLING_EXPORT void fillCellIdsToKeepFromNodeIds(const mcIdType *begin, const mcIdType *end, bool fullyIn, DataArrayIdType *&cellIdsKeptArr) const; MEDCOUPLING_EXPORT mcIdType getNumberOfNodesInCell(mcIdType cellId) const; - MEDCOUPLING_EXPORT DataArrayDouble *getBoundingBoxForBBTree(double arcDetEps=1e-12) const; + MEDCOUPLING_EXPORT DataArrayDouble *getBoundingBoxForBBTree(double /*arcDetEps*/=1e-12) const; MEDCOUPLING_EXPORT MEDCouplingFieldDouble *computeDiameterField() const; MEDCOUPLING_EXPORT void invertOrientationOfAllCells(); // overload of MEDCoupling1GTUMesh @@ -262,7 +262,7 @@ namespace MEDCoupling MEDCOUPLING_EXPORT MEDCoupling1DGTUMesh *buildSetInstanceFromThis(std::size_t spaceDim) const; public://serialization MEDCOUPLING_EXPORT void getTinySerializationInformation(std::vector& tinyInfoD, std::vector& tinyInfo, std::vector& littleStrings) const; - MEDCOUPLING_EXPORT void resizeForUnserialization(const std::vector& tinyInfo, DataArrayIdType *a1, DataArrayDouble *a2, std::vector& littleStrings) const; + MEDCOUPLING_EXPORT void resizeForUnserialization(const std::vector& tinyInfo, DataArrayIdType *a1, DataArrayDouble *a2, std::vector& /*littleStrings*/) const; MEDCOUPLING_EXPORT void serialize(DataArrayIdType *&a1, DataArrayDouble *&a2) const; MEDCOUPLING_EXPORT void unserialization(const std::vector& tinyInfoD, const std::vector& tinyInfo, const DataArrayIdType *a1, DataArrayDouble *a2, const std::vector& littleStrings); diff --git a/src/MEDCoupling/MEDCouplingCMesh.cxx b/src/MEDCoupling/MEDCouplingCMesh.cxx index f7e96c121..2dcc0886f 100755 --- a/src/MEDCoupling/MEDCouplingCMesh.cxx +++ b/src/MEDCoupling/MEDCouplingCMesh.cxx @@ -212,8 +212,8 @@ bool MEDCouplingCMesh::isEqualWithoutConsideringStr(const MEDCouplingMesh *other return true; } -void MEDCouplingCMesh::checkDeepEquivalWith(const MEDCouplingMesh *other, int cellCompPol, double prec, - DataArrayIdType *&cellCor, DataArrayIdType *&nodeCor) const +void MEDCouplingCMesh::checkDeepEquivalWith(const MEDCouplingMesh *other, int /*cellCompPol*/, double prec, + DataArrayIdType *& /*cellCor*/, DataArrayIdType *& /*nodeCor*/) const { if(!isEqualWithoutConsideringStr(other,prec)) throw INTERP_KERNEL::Exception("MEDCouplingCMesh::checkDeepEquivalWith : Meshes are not the same !"); @@ -223,8 +223,8 @@ void MEDCouplingCMesh::checkDeepEquivalWith(const MEDCouplingMesh *other, int ce * Nothing is done here (except to check that the other is a MEDCoupling::MEDCouplingCMesh instance too). * The user intend that the nodes are the same, so by construction of MEDCoupling::MEDCouplingCMesh, \a this and \a other are the same ! */ -void MEDCouplingCMesh::checkDeepEquivalOnSameNodesWith(const MEDCouplingMesh *other, int cellCompPol, double prec, - DataArrayIdType *&cellCor) const +void MEDCouplingCMesh::checkDeepEquivalOnSameNodesWith(const MEDCouplingMesh *other, int /*cellCompPol*/, double prec, + DataArrayIdType *& /*cellCor*/) const { if(!isEqualWithoutConsideringStr(other,prec)) throw INTERP_KERNEL::Exception("MEDCouplingCMesh::checkDeepEquivalOnSameNodesWith : Meshes are not the same !"); @@ -561,7 +561,7 @@ void MEDCouplingCMesh::getBoundingBox(double *bbox) const * and one time . The caller is to delete this field using decrRef() as it is no * more needed. */ -MEDCouplingFieldDouble *MEDCouplingCMesh::getMeasureField(bool isAbs) const +MEDCouplingFieldDouble *MEDCouplingCMesh::getMeasureField(bool /*isAbs*/) const { std::string name="MeasureOfMesh_"; name+=getName(); @@ -597,7 +597,7 @@ MEDCouplingFieldDouble *MEDCouplingCMesh::getMeasureField(bool isAbs) const /*! * not implemented yet ! */ -MEDCouplingFieldDouble *MEDCouplingCMesh::getMeasureFieldOnNode(bool isAbs) const +MEDCouplingFieldDouble *MEDCouplingCMesh::getMeasureFieldOnNode(bool /*isAbs*/) const { throw INTERP_KERNEL::Exception("MEDCouplingCMesh::getMeasureFieldOnNode : not implemented yet !"); //return 0; @@ -639,7 +639,7 @@ void MEDCouplingCMesh::getCellsContainingPoint(const double *pos, double eps, st elts.push_back(ret); } -void MEDCouplingCMesh::rotate(const double *center, const double *vector, double angle) +void MEDCouplingCMesh::rotate(const double * /*center*/, const double * /*vector*/, double /*angle*/) { throw INTERP_KERNEL::Exception("No rotation available on CMesh : Traduce it to untructured mesh to apply it !"); } @@ -687,7 +687,7 @@ void MEDCouplingCMesh::scale(const double *point, double factor) updateTime(); } -MEDCouplingMesh *MEDCouplingCMesh::mergeMyselfWith(const MEDCouplingMesh *other) const +MEDCouplingMesh *MEDCouplingCMesh::mergeMyselfWith(const MEDCouplingMesh * /*other*/) const { //not implemented yet ! return 0; @@ -769,7 +769,7 @@ DataArrayDouble *MEDCouplingCMesh::computeIsoBarycenterOfNodesPerCell() const return MEDCouplingCMesh::computeCellCenterOfMass(); } -void MEDCouplingCMesh::renumberCells(const mcIdType *old2NewBg, bool check) +void MEDCouplingCMesh::renumberCells(const mcIdType * /*old2NewBg*/, bool /*check*/) { throw INTERP_KERNEL::Exception("Functionality of renumbering cell not available for CMesh !"); } @@ -802,7 +802,7 @@ void MEDCouplingCMesh::getTinySerializationInformation(std::vector& tiny tinyInfoD.push_back(time); } -void MEDCouplingCMesh::resizeForUnserialization(const std::vector& tinyInfo, DataArrayIdType *a1, DataArrayDouble *a2, std::vector& littleStrings) const +void MEDCouplingCMesh::resizeForUnserialization(const std::vector& tinyInfo, DataArrayIdType *a1, DataArrayDouble *a2, std::vector& /*littleStrings*/) const { a1->alloc(0,1); mcIdType sum=0; @@ -831,7 +831,7 @@ void MEDCouplingCMesh::serialize(DataArrayIdType *&a1, DataArrayDouble *&a2) con a2Ptr=std::copy(thisArr[i]->getConstPointer(),thisArr[i]->getConstPointer()+thisArr[i]->getNumberOfTuples(),a2Ptr); } -void MEDCouplingCMesh::unserialization(const std::vector& tinyInfoD, const std::vector& tinyInfo, const DataArrayIdType *a1, DataArrayDouble *a2, +void MEDCouplingCMesh::unserialization(const std::vector& tinyInfoD, const std::vector& tinyInfo, const DataArrayIdType * /*a1*/, DataArrayDouble *a2, const std::vector& littleStrings) { setName(littleStrings[0]); diff --git a/src/MEDCoupling/MEDCouplingCMesh.hxx b/src/MEDCoupling/MEDCouplingCMesh.hxx index 78901b77b..c445e1aed 100644 --- a/src/MEDCoupling/MEDCouplingCMesh.hxx +++ b/src/MEDCoupling/MEDCouplingCMesh.hxx @@ -45,10 +45,10 @@ namespace MEDCoupling MEDCOUPLING_EXPORT void copyTinyStringsFrom(const MEDCouplingMesh *other); MEDCOUPLING_EXPORT bool isEqualIfNotWhy(const MEDCouplingMesh *other, double prec, std::string& reason) const; MEDCOUPLING_EXPORT bool isEqualWithoutConsideringStr(const MEDCouplingMesh *other, double prec) const; - MEDCOUPLING_EXPORT void checkDeepEquivalWith(const MEDCouplingMesh *other, int cellCompPol, double prec, - DataArrayIdType *&cellCor, DataArrayIdType *&nodeCor) const; - MEDCOUPLING_EXPORT void checkDeepEquivalOnSameNodesWith(const MEDCouplingMesh *other, int cellCompPol, double prec, - DataArrayIdType *&cellCor) const; + MEDCOUPLING_EXPORT void checkDeepEquivalWith(const MEDCouplingMesh *other, int /*cellCompPol*/, double prec, + DataArrayIdType *& /*cellCor*/, DataArrayIdType *& /*nodeCor*/) const; + MEDCOUPLING_EXPORT void checkDeepEquivalOnSameNodesWith(const MEDCouplingMesh *other, int /*cellCompPol*/, double prec, + DataArrayIdType *& /*cellCor*/) const; MEDCOUPLING_EXPORT void checkConsistencyLight() const; MEDCOUPLING_EXPORT void checkConsistency(double eps=1e-12) const; MEDCOUPLING_EXPORT int getSpaceDimension() const; @@ -63,27 +63,27 @@ namespace MEDCoupling const DataArrayDouble *coordsZ=0); // tools MEDCOUPLING_EXPORT void getBoundingBox(double *bbox) const; - MEDCOUPLING_EXPORT MEDCouplingFieldDouble *getMeasureField(bool isAbs) const; - MEDCOUPLING_EXPORT MEDCouplingFieldDouble *getMeasureFieldOnNode(bool isAbs) const; + MEDCOUPLING_EXPORT MEDCouplingFieldDouble *getMeasureField(bool /*isAbs*/) const; + MEDCOUPLING_EXPORT MEDCouplingFieldDouble *getMeasureFieldOnNode(bool /*isAbs*/) const; MEDCOUPLING_EXPORT mcIdType getCellContainingPoint(const double *pos, double eps) const; MEDCOUPLING_EXPORT void getCellsContainingPoint(const double *pos, double eps, std::vector& elts) const; - MEDCOUPLING_EXPORT void rotate(const double *center, const double *vector, double angle); + MEDCOUPLING_EXPORT void rotate(const double * /*center*/, const double * /*vector*/, double /*angle*/); MEDCOUPLING_EXPORT void translate(const double *vector); MEDCOUPLING_EXPORT void scale(const double *point, double factor); - MEDCOUPLING_EXPORT MEDCouplingMesh *mergeMyselfWith(const MEDCouplingMesh *other) const; + MEDCOUPLING_EXPORT MEDCouplingMesh *mergeMyselfWith(const MEDCouplingMesh * /*other*/) const; MEDCOUPLING_EXPORT DataArrayDouble *getCoordinatesAndOwner() const; MEDCOUPLING_EXPORT DataArrayDouble *computeCellCenterOfMass() const; MEDCOUPLING_EXPORT DataArrayDouble *computeIsoBarycenterOfNodesPerCell() const; - MEDCOUPLING_EXPORT void renumberCells(const mcIdType *old2NewBg, bool check=true); + MEDCOUPLING_EXPORT void renumberCells(const mcIdType *old2NewBg, bool /*check*/=true); //some useful methods MEDCOUPLING_EXPORT void getNodeGridStructure(mcIdType *res) const; MEDCOUPLING_EXPORT std::vector getNodeGridStructure() const; MEDCouplingStructuredMesh *buildStructuredSubPart(const std::vector< std::pair >& cellPart) const; //serialisation-unserialization MEDCOUPLING_EXPORT void getTinySerializationInformation(std::vector& tinyInfoD, std::vector& tinyInfo, std::vector& littleStrings) const; - MEDCOUPLING_EXPORT void resizeForUnserialization(const std::vector& tinyInfo, DataArrayIdType *a1, DataArrayDouble *a2, std::vector& littleStrings) const; + MEDCOUPLING_EXPORT void resizeForUnserialization(const std::vector& tinyInfo, DataArrayIdType *a1, DataArrayDouble *a2, std::vector& /*littleStrings*/) const; MEDCOUPLING_EXPORT void serialize(DataArrayIdType *&a1, DataArrayDouble *&a2) const; - MEDCOUPLING_EXPORT void unserialization(const std::vector& tinyInfoD, const std::vector& tinyInfo, const DataArrayIdType *a1, DataArrayDouble *a2, + MEDCOUPLING_EXPORT void unserialization(const std::vector& tinyInfoD, const std::vector& tinyInfo, const DataArrayIdType * /*a1*/, DataArrayDouble *a2, const std::vector& littleStrings); MEDCOUPLING_EXPORT void reprQuickOverview(std::ostream& stream) const; MEDCOUPLING_EXPORT std::string getVTKFileExtension() const; diff --git a/src/MEDCoupling/MEDCouplingCartesianAMRMesh.cxx b/src/MEDCoupling/MEDCouplingCartesianAMRMesh.cxx index f064b8818..1847da64e 100755 --- a/src/MEDCoupling/MEDCouplingCartesianAMRMesh.cxx +++ b/src/MEDCoupling/MEDCouplingCartesianAMRMesh.cxx @@ -388,7 +388,7 @@ void MEDCouplingCartesianAMRPatch::UpdateNeighborsOfOneWithTwoMixedLev(mcIdType * This method has 3 outputs. 2 two first are the resp the position of \a p1 and \a p2 relative to \a p1. And \a factToApplyOn2 is the coeff of refinement to be applied on \a p2 to be virtually * on the same level as \a p1. */ -void MEDCouplingCartesianAMRPatch::ComputeZonesOfTwoRelativeToOneDiffLev(mcIdType ghostLev, const MEDCouplingCartesianAMRPatch *p1, const MEDCouplingCartesianAMRPatch *p2, std::vector< std::pair >& p1Zone, std::vector< std::pair >& p2Zone, std::vector& factToApplyOn2) +void MEDCouplingCartesianAMRPatch::ComputeZonesOfTwoRelativeToOneDiffLev(mcIdType /*ghostLev*/, const MEDCouplingCartesianAMRPatch *p1, const MEDCouplingCartesianAMRPatch *p2, std::vector< std::pair >& p1Zone, std::vector< std::pair >& p2Zone, std::vector& factToApplyOn2) { std::vector ancestorsOfThis; const MEDCouplingCartesianAMRMeshGen *work(p1->getMesh()),*work2(0); @@ -469,7 +469,7 @@ const MEDCouplingCartesianAMRMeshGen *MEDCouplingCartesianAMRPatch::FindCommonAn return f1; } -std::vector MEDCouplingCartesianAMRPatch::ComputeOffsetFromTwoToOne(const MEDCouplingCartesianAMRMeshGen *comAncestor, mcIdType lev, const MEDCouplingCartesianAMRPatch *p1, const MEDCouplingCartesianAMRPatch *p2) +std::vector MEDCouplingCartesianAMRPatch::ComputeOffsetFromTwoToOne(const MEDCouplingCartesianAMRMeshGen * /*comAncestor*/, mcIdType lev, const MEDCouplingCartesianAMRPatch *p1, const MEDCouplingCartesianAMRPatch *p2) { if(lev<=0) throw INTERP_KERNEL::Exception("MEDCouplingCartesianAMRPatch::ComputeOffsetFromTwoToOne : this method is useful only for lev > 0 !"); @@ -1950,7 +1950,7 @@ void MEDCouplingCartesianAMRMesh::createPatchesFromCriterionML(const std::vector } } -void MEDCouplingCartesianAMRMesh::getPositionRelativeToInternal(const MEDCouplingCartesianAMRMeshGen *ref, std::vector& ret) const +void MEDCouplingCartesianAMRMesh::getPositionRelativeToInternal(const MEDCouplingCartesianAMRMeshGen * /*ref*/, std::vector& /*ret*/) const { } diff --git a/src/MEDCoupling/MEDCouplingCurveLinearMesh.cxx b/src/MEDCoupling/MEDCouplingCurveLinearMesh.cxx index ddc2418b5..d33914551 100755 --- a/src/MEDCoupling/MEDCouplingCurveLinearMesh.cxx +++ b/src/MEDCoupling/MEDCouplingCurveLinearMesh.cxx @@ -158,8 +158,8 @@ bool MEDCouplingCurveLinearMesh::isEqualWithoutConsideringStr(const MEDCouplingM return true; } -void MEDCouplingCurveLinearMesh::checkDeepEquivalWith(const MEDCouplingMesh *other, int cellCompPol, double prec, - DataArrayIdType *&cellCor, DataArrayIdType *&nodeCor) const +void MEDCouplingCurveLinearMesh::checkDeepEquivalWith(const MEDCouplingMesh *other, int /*cellCompPol*/, double prec, + DataArrayIdType *& /*cellCor*/, DataArrayIdType *& /*nodeCor*/) const { if(!isEqualWithoutConsideringStr(other,prec)) throw INTERP_KERNEL::Exception("MEDCouplingCurveLinearMesh::checkDeepEquivalWith : Meshes are not the same !"); @@ -169,8 +169,8 @@ void MEDCouplingCurveLinearMesh::checkDeepEquivalWith(const MEDCouplingMesh *oth * Nothing is done here (except to check that the other is a MEDCoupling::MEDCouplingCurveLinearMesh instance too). * The user intend that the nodes are the same, so by construction of MEDCoupling::MEDCouplingCurveLinearMesh, \a this and \a other are the same ! */ -void MEDCouplingCurveLinearMesh::checkDeepEquivalOnSameNodesWith(const MEDCouplingMesh *other, int cellCompPol, double prec, - DataArrayIdType *&cellCor) const +void MEDCouplingCurveLinearMesh::checkDeepEquivalOnSameNodesWith(const MEDCouplingMesh *other, int /*cellCompPol*/, double prec, + DataArrayIdType *& /*cellCor*/) const { if(!isEqualWithoutConsideringStr(other,prec)) throw INTERP_KERNEL::Exception("MEDCouplingCurveLinearMesh::checkDeepEquivalOnSameNodesWith : Meshes are not the same !"); @@ -201,7 +201,7 @@ void MEDCouplingCurveLinearMesh::checkConsistencyLight() const } } -void MEDCouplingCurveLinearMesh::checkConsistency(double eps) const +void MEDCouplingCurveLinearMesh::checkConsistency(double /*eps*/) const { checkConsistencyLight(); } @@ -460,7 +460,7 @@ void MEDCouplingCurveLinearMesh::getMeasureFieldMeshDim3(bool isAbs, MEDCoupling /*! * not implemented yet ! */ -MEDCouplingFieldDouble *MEDCouplingCurveLinearMesh::getMeasureFieldOnNode(bool isAbs) const +MEDCouplingFieldDouble *MEDCouplingCurveLinearMesh::getMeasureFieldOnNode(bool /*isAbs*/) const { throw INTERP_KERNEL::Exception("MEDCouplingCurveLinearMesh::getMeasureFieldOnNode : not implemented yet !"); } @@ -693,7 +693,7 @@ void MEDCouplingCurveLinearMesh::scale(const double *point, double factor) updateTime(); } -MEDCouplingMesh *MEDCouplingCurveLinearMesh::mergeMyselfWith(const MEDCouplingMesh *other) const +MEDCouplingMesh *MEDCouplingCurveLinearMesh::mergeMyselfWith(const MEDCouplingMesh * /*other*/) const { throw INTERP_KERNEL::Exception("MEDCouplingCurveLinearMesh::mergeMyselfWith : not available for CurveLinear Mesh !"); } @@ -793,7 +793,7 @@ void MEDCouplingCurveLinearMesh::getBarycenterAndOwnerMeshDim1(DataArrayDouble * std::transform(bary->begin(),bary->end(),bary->getPointer(),std::bind2nd(std::multiplies(),0.5)); } -void MEDCouplingCurveLinearMesh::renumberCells(const mcIdType *old2NewBg, bool check) +void MEDCouplingCurveLinearMesh::renumberCells(const mcIdType * /*old2NewBg*/, bool /*check*/) { throw INTERP_KERNEL::Exception("Functionality of renumbering cell not available for CurveLinear Mesh !"); } @@ -827,7 +827,7 @@ void MEDCouplingCurveLinearMesh::getTinySerializationInformation(std::vector& tinyInfo, DataArrayIdType *a1, DataArrayDouble *a2, std::vector& littleStrings) const +void MEDCouplingCurveLinearMesh::resizeForUnserialization(const std::vector& tinyInfo, DataArrayIdType *a1, DataArrayDouble *a2, std::vector& /*littleStrings*/) const { a1->alloc(tinyInfo[2],1); std::vector tinyInfo2(tinyInfo.begin()+3+tinyInfo[2],tinyInfo.end()); @@ -851,7 +851,7 @@ void MEDCouplingCurveLinearMesh::serialize(DataArrayIdType *&a1, DataArrayDouble std::copy(_coords->begin(),_coords->end(),a2->getPointer()); } -void MEDCouplingCurveLinearMesh::unserialization(const std::vector& tinyInfoD, const std::vector& tinyInfo, const DataArrayIdType *a1, DataArrayDouble *a2, +void MEDCouplingCurveLinearMesh::unserialization(const std::vector& tinyInfoD, const std::vector& tinyInfo, const DataArrayIdType * /*a1*/, DataArrayDouble *a2, const std::vector& littleStrings) { setName(littleStrings[0]); diff --git a/src/MEDCoupling/MEDCouplingCurveLinearMesh.hxx b/src/MEDCoupling/MEDCouplingCurveLinearMesh.hxx index 1a160a8ec..8f6f5e92d 100644 --- a/src/MEDCoupling/MEDCouplingCurveLinearMesh.hxx +++ b/src/MEDCoupling/MEDCouplingCurveLinearMesh.hxx @@ -42,12 +42,12 @@ namespace MEDCoupling MEDCOUPLING_EXPORT void copyTinyStringsFrom(const MEDCouplingMesh *other); MEDCOUPLING_EXPORT bool isEqualIfNotWhy(const MEDCouplingMesh *other, double prec, std::string& reason) const; MEDCOUPLING_EXPORT bool isEqualWithoutConsideringStr(const MEDCouplingMesh *other, double prec) const; - MEDCOUPLING_EXPORT void checkDeepEquivalWith(const MEDCouplingMesh *other, int cellCompPol, double prec, - DataArrayIdType *&cellCor, DataArrayIdType *&nodeCor) const; - MEDCOUPLING_EXPORT void checkDeepEquivalOnSameNodesWith(const MEDCouplingMesh *other, int cellCompPol, double prec, - DataArrayIdType *&cellCor) const; + MEDCOUPLING_EXPORT void checkDeepEquivalWith(const MEDCouplingMesh *other, int /*cellCompPol*/, double prec, + DataArrayIdType *& /*cellCor*/, DataArrayIdType *& /*nodeCor*/) const; + MEDCOUPLING_EXPORT void checkDeepEquivalOnSameNodesWith(const MEDCouplingMesh *other, int /*cellCompPol*/, double prec, + DataArrayIdType *& /*cellCor*/) const; MEDCOUPLING_EXPORT void checkConsistencyLight() const; - MEDCOUPLING_EXPORT void checkConsistency(double eps=1e-12) const; + MEDCOUPLING_EXPORT void checkConsistency(double /*eps*/=1e-12) const; MEDCOUPLING_EXPORT mcIdType getNumberOfCells() const; MEDCOUPLING_EXPORT mcIdType getNumberOfNodes() const; MEDCOUPLING_EXPORT int getSpaceDimension() const; @@ -64,25 +64,25 @@ namespace MEDCoupling // tools MEDCOUPLING_EXPORT void getBoundingBox(double *bbox) const; MEDCOUPLING_EXPORT MEDCouplingFieldDouble *getMeasureField(bool isAbs) const; - MEDCOUPLING_EXPORT MEDCouplingFieldDouble *getMeasureFieldOnNode(bool isAbs) const; + MEDCOUPLING_EXPORT MEDCouplingFieldDouble *getMeasureFieldOnNode(bool /*isAbs*/) const; MEDCOUPLING_EXPORT MEDCouplingFieldDouble *buildOrthogonalField() const; MEDCOUPLING_EXPORT mcIdType getCellContainingPoint(const double *pos, double eps) const; MEDCOUPLING_EXPORT void getCellsContainingPoint(const double *pos, double eps, std::vector& elts) const; MEDCOUPLING_EXPORT void rotate(const double *center, const double *vector, double angle); MEDCOUPLING_EXPORT void translate(const double *vector); MEDCOUPLING_EXPORT void scale(const double *point, double factor); - MEDCOUPLING_EXPORT MEDCouplingMesh *mergeMyselfWith(const MEDCouplingMesh *other) const; + MEDCOUPLING_EXPORT MEDCouplingMesh *mergeMyselfWith(const MEDCouplingMesh * /*other*/) const; MEDCOUPLING_EXPORT DataArrayDouble *getCoordinatesAndOwner() const; MEDCOUPLING_EXPORT DataArrayDouble *computeCellCenterOfMass() const; MEDCOUPLING_EXPORT DataArrayDouble *computeIsoBarycenterOfNodesPerCell() const; - MEDCOUPLING_EXPORT void renumberCells(const mcIdType *old2NewBg, bool check=true); + MEDCOUPLING_EXPORT void renumberCells(const mcIdType * /*old2NewBg*/, bool /*check*/=true); //some useful methods MEDCOUPLING_EXPORT void getNodeGridStructure(mcIdType *res) const; //serialisation-unserialization MEDCOUPLING_EXPORT void getTinySerializationInformation(std::vector& tinyInfoD, std::vector& tinyInfo, std::vector& littleStrings) const; - MEDCOUPLING_EXPORT void resizeForUnserialization(const std::vector& tinyInfo, DataArrayIdType *a1, DataArrayDouble *a2, std::vector& littleStrings) const; + MEDCOUPLING_EXPORT void resizeForUnserialization(const std::vector& tinyInfo, DataArrayIdType *a1, DataArrayDouble *a2, std::vector& /*littleStrings*/) const; MEDCOUPLING_EXPORT void serialize(DataArrayIdType *&a1, DataArrayDouble *&a2) const; - MEDCOUPLING_EXPORT void unserialization(const std::vector& tinyInfoD, const std::vector& tinyInfo, const DataArrayIdType *a1, DataArrayDouble *a2, + MEDCOUPLING_EXPORT void unserialization(const std::vector& tinyInfoD, const std::vector& tinyInfo, const DataArrayIdType * /*a1*/, DataArrayDouble *a2, const std::vector& littleStrings); MEDCOUPLING_EXPORT void reprQuickOverview(std::ostream& stream) const; MEDCOUPLING_EXPORT std::string getVTKFileExtension() const; diff --git a/src/MEDCoupling/MEDCouplingDefinitionTime.cxx b/src/MEDCoupling/MEDCouplingDefinitionTime.cxx index d75b63cf4..2c5bb5f20 100644 --- a/src/MEDCoupling/MEDCouplingDefinitionTime.cxx +++ b/src/MEDCoupling/MEDCouplingDefinitionTime.cxx @@ -74,7 +74,7 @@ MEDCouplingDefinitionTimeSlice *MEDCouplingDefinitionTimeSlice::New(TypeOfTimeDi } } -bool MEDCouplingDefinitionTimeSlice::isEqual(const MEDCouplingDefinitionTimeSlice& other, double eps) const +bool MEDCouplingDefinitionTimeSlice::isEqual(const MEDCouplingDefinitionTimeSlice& other, double /*eps*/) const { if(_mesh_id!=other._mesh_id) return false; @@ -200,7 +200,7 @@ void MEDCouplingDefinitionTimeSliceInst::getHotSpotsTime(std::vector& re ret[0]=_instant; } -void MEDCouplingDefinitionTimeSliceInst::getIdsOnTime(double tm, double eps, int& meshId, int& arrId, int& arrIdInField, int& fieldId) const +void MEDCouplingDefinitionTimeSliceInst::getIdsOnTime(double /*tm*/, double /*eps*/, int& meshId, int& arrId, int& arrIdInField, int& fieldId) const { meshId=_mesh_id; arrId=_array_id; @@ -270,7 +270,7 @@ void MEDCouplingDefinitionTimeSliceCstOnTI::getHotSpotsTime(std::vector& ret[0]=(_start+_end)/2.; } -void MEDCouplingDefinitionTimeSliceCstOnTI::getIdsOnTime(double tm, double eps, int& meshId, int& arrId, int& arrIdInField, int& fieldId) const +void MEDCouplingDefinitionTimeSliceCstOnTI::getIdsOnTime(double /*tm*/, double /*eps*/, int& meshId, int& arrId, int& arrIdInField, int& fieldId) const { meshId=_mesh_id; arrId=_array_id; diff --git a/src/MEDCoupling/MEDCouplingFieldDiscretization.cxx b/src/MEDCoupling/MEDCouplingFieldDiscretization.cxx index 25fa1696a..b858903c6 100755 --- a/src/MEDCoupling/MEDCouplingFieldDiscretization.cxx +++ b/src/MEDCoupling/MEDCouplingFieldDiscretization.cxx @@ -200,7 +200,7 @@ MEDCouplingFieldDiscretization *MEDCouplingFieldDiscretization::deepCopy() const /*! * For all field discretization excepted GaussPts the [ \a startCellIds, \a endCellIds ) has no impact on the cloned instance. */ -MEDCouplingFieldDiscretization *MEDCouplingFieldDiscretization::clonePart(const mcIdType *startCellIds, const mcIdType *endCellIds) const +MEDCouplingFieldDiscretization *MEDCouplingFieldDiscretization::clonePart(const mcIdType * /*startCellIds*/, const mcIdType * /*endCellIds*/) const { return clone(); } @@ -208,7 +208,7 @@ MEDCouplingFieldDiscretization *MEDCouplingFieldDiscretization::clonePart(const /*! * For all field discretization excepted GaussPts the slice( \a beginCellId, \a endCellIds, \a stepCellId ) has no impact on the cloned instance. */ -MEDCouplingFieldDiscretization *MEDCouplingFieldDiscretization::clonePartRange(mcIdType beginCellIds, mcIdType endCellIds, mcIdType stepCellIds) const +MEDCouplingFieldDiscretization *MEDCouplingFieldDiscretization::clonePartRange(mcIdType /*beginCellIds*/, mcIdType /*endCellIds*/, mcIdType /*stepCellIds*/) const { return clone(); } @@ -319,7 +319,7 @@ void MEDCouplingFieldDiscretization::integral(const MEDCouplingMesh *mesh, const * * \sa MEDCouplingFieldDiscretization::buildSubMeshData */ -MEDCouplingMesh *MEDCouplingFieldDiscretization::buildSubMeshDataRange(const MEDCouplingMesh *mesh, mcIdType beginCellIds, mcIdType endCellIds, mcIdType stepCellIds, mcIdType& beginOut, mcIdType& endOut, mcIdType& stepOut, DataArrayIdType *&di) const +MEDCouplingMesh *MEDCouplingFieldDiscretization::buildSubMeshDataRange(const MEDCouplingMesh *mesh, mcIdType beginCellIds, mcIdType endCellIds, mcIdType stepCellIds, mcIdType& /*beginOut*/, mcIdType& /*endOut*/, mcIdType& /*stepOut*/, DataArrayIdType *&di) const { MCAuto da=DataArrayIdType::Range(beginCellIds,endCellIds,stepCellIds); return buildSubMeshData(mesh,da->begin(),da->end(),di); @@ -333,18 +333,18 @@ void MEDCouplingFieldDiscretization::getSerializationIntArray(DataArrayIdType *& /*! * Empty : Not a bug */ -void MEDCouplingFieldDiscretization::getTinySerializationIntInformation(std::vector& tinyInfo) const +void MEDCouplingFieldDiscretization::getTinySerializationIntInformation(std::vector& /*tinyInfo*/) const { } /*! * Empty : Not a bug */ -void MEDCouplingFieldDiscretization::getTinySerializationDbleInformation(std::vector& tinyInfo) const +void MEDCouplingFieldDiscretization::getTinySerializationDbleInformation(std::vector& /*tinyInfo*/) const { } -void MEDCouplingFieldDiscretization::resizeForUnserialization(const std::vector& tinyInfo, DataArrayIdType *& arr) +void MEDCouplingFieldDiscretization::resizeForUnserialization(const std::vector& /*tinyInfo*/, DataArrayIdType *& arr) { arr=0; } @@ -352,14 +352,14 @@ void MEDCouplingFieldDiscretization::resizeForUnserialization(const std::vector< /*! * Empty : Not a bug */ -void MEDCouplingFieldDiscretization::checkForUnserialization(const std::vector& tinyInfo, const DataArrayIdType *arr) +void MEDCouplingFieldDiscretization::checkForUnserialization(const std::vector& /*tinyInfo*/, const DataArrayIdType * /*arr*/) { } /*! * Empty : Not a bug */ -void MEDCouplingFieldDiscretization::finishUnserialization(const std::vector& tinyInfo) +void MEDCouplingFieldDiscretization::finishUnserialization(const std::vector& /*tinyInfo*/) { } @@ -367,23 +367,23 @@ void MEDCouplingFieldDiscretization::finishUnserialization(const std::vector& refCoo, - const std::vector& gsCoo, const std::vector& wg) +void MEDCouplingFieldDiscretization::setGaussLocalizationOnType(const MEDCouplingMesh * /*m*/, INTERP_KERNEL::NormalizedCellType /*type*/, const std::vector& /*refCoo*/, + const std::vector& /*gsCoo*/, const std::vector& /*wg*/) { throw INTERP_KERNEL::Exception("Invalid method for the corresponding field discretization : available only for GaussPoint discretization !"); } -void MEDCouplingFieldDiscretization::setGaussLocalizationOnCells(const MEDCouplingMesh *m, const mcIdType *begin, const mcIdType *end, const std::vector& refCoo, - const std::vector& gsCoo, const std::vector& wg) +void MEDCouplingFieldDiscretization::setGaussLocalizationOnCells(const MEDCouplingMesh * /*m*/, const mcIdType * /*begin*/, const mcIdType * /*end*/, const std::vector& /*refCoo*/, + const std::vector& /*gsCoo*/, const std::vector& /*wg*/) { throw INTERP_KERNEL::Exception("Invalid method for the corresponding field discretization : available only for GaussPoint discretization !"); } @@ -393,12 +393,12 @@ void MEDCouplingFieldDiscretization::clearGaussLocalizations() throw INTERP_KERNEL::Exception("Invalid method for the corresponding field discretization : available only for GaussPoint discretization !"); } -MEDCouplingGaussLocalization& MEDCouplingFieldDiscretization::getGaussLocalization(mcIdType locId) +MEDCouplingGaussLocalization& MEDCouplingFieldDiscretization::getGaussLocalization(mcIdType /*locId*/) { throw INTERP_KERNEL::Exception("Invalid method for the corresponding field discretization : available only for GaussPoint discretization !"); } -const MEDCouplingGaussLocalization& MEDCouplingFieldDiscretization::getGaussLocalization(mcIdType locId) const +const MEDCouplingGaussLocalization& MEDCouplingFieldDiscretization::getGaussLocalization(mcIdType /*locId*/) const { throw INTERP_KERNEL::Exception("Invalid method for the corresponding field discretization : available only for GaussPoint discretization !"); } @@ -408,22 +408,22 @@ mcIdType MEDCouplingFieldDiscretization::getNbOfGaussLocalization() const throw INTERP_KERNEL::Exception("Invalid method for the corresponding field discretization : available only for GaussPoint discretization !"); } -mcIdType MEDCouplingFieldDiscretization::getGaussLocalizationIdOfOneCell(mcIdType cellId) const +mcIdType MEDCouplingFieldDiscretization::getGaussLocalizationIdOfOneCell(mcIdType /*cellId*/) const { throw INTERP_KERNEL::Exception("Invalid method for the corresponding field discretization : available only for GaussPoint discretization !"); } -mcIdType MEDCouplingFieldDiscretization::getGaussLocalizationIdOfOneType(INTERP_KERNEL::NormalizedCellType type) const +mcIdType MEDCouplingFieldDiscretization::getGaussLocalizationIdOfOneType(INTERP_KERNEL::NormalizedCellType /*type*/) const { throw INTERP_KERNEL::Exception("Invalid method for the corresponding field discretization : available only for GaussPoint discretization !"); } -std::set MEDCouplingFieldDiscretization::getGaussLocalizationIdsOfOneType(INTERP_KERNEL::NormalizedCellType type) const +std::set MEDCouplingFieldDiscretization::getGaussLocalizationIdsOfOneType(INTERP_KERNEL::NormalizedCellType /*type*/) const { throw INTERP_KERNEL::Exception("Invalid method for the corresponding field discretization : available only for GaussPoint discretization !"); } -void MEDCouplingFieldDiscretization::getCellIdsHavingGaussLocalization(mcIdType locId, std::vector& cellIds) const +void MEDCouplingFieldDiscretization::getCellIdsHavingGaussLocalization(mcIdType /*locId*/, std::vector& /*cellIds*/) const { throw INTERP_KERNEL::Exception("Invalid method for the corresponding field discretization : available only for GaussPoint discretization !"); } @@ -466,7 +466,7 @@ void MEDCouplingFieldDiscretization::RenumberEntitiesFromO2NArr(double eps, cons } } -void MEDCouplingFieldDiscretization::RenumberEntitiesFromN2OArr(const mcIdType *new2OldPtr, mcIdType new2OldSz, DataArrayDouble *arr, const std::string& msg) +void MEDCouplingFieldDiscretization::RenumberEntitiesFromN2OArr(const mcIdType *new2OldPtr, mcIdType new2OldSz, DataArrayDouble *arr, const std::string& /*msg*/) { std::size_t nbOfComp=arr->getNumberOfComponents(); MCAuto arrCpy=arr->deepCopy(); @@ -523,7 +523,7 @@ const char *MEDCouplingFieldDiscretizationP0::getRepr() const return REPR; } -bool MEDCouplingFieldDiscretizationP0::isEqualIfNotWhy(const MEDCouplingFieldDiscretization *other, double eps, std::string& reason) const +bool MEDCouplingFieldDiscretizationP0::isEqualIfNotWhy(const MEDCouplingFieldDiscretization *other, double /*eps*/, std::string& reason) const { if(!other) { @@ -642,7 +642,7 @@ void MEDCouplingFieldDiscretizationP0::reprQuickOverview(std::ostream& stream) c stream << "P0 spatial discretization."; } -void MEDCouplingFieldDiscretizationP0::checkCompatibilityWithNature(NatureOfField nat) const +void MEDCouplingFieldDiscretizationP0::checkCompatibilityWithNature(NatureOfField /*nat*/) const { } @@ -713,16 +713,16 @@ DataArrayDouble *MEDCouplingFieldDiscretizationP0::getValueOnMulti(const DataArr /*! * Nothing to do. It's not a bug. */ -void MEDCouplingFieldDiscretizationP0::renumberValuesOnNodes(double , const mcIdType *, mcIdType newNbOfNodes, DataArrayDouble *) const +void MEDCouplingFieldDiscretizationP0::renumberValuesOnNodes(double , const mcIdType *, mcIdType /*newNbOfNodes*/, DataArrayDouble *) const { } -void MEDCouplingFieldDiscretizationP0::renumberValuesOnCells(double epsOnVals, const MEDCouplingMesh *mesh, const mcIdType *old2New, mcIdType newSz, DataArrayDouble *arr) const +void MEDCouplingFieldDiscretizationP0::renumberValuesOnCells(double epsOnVals, const MEDCouplingMesh * /*mesh*/, const mcIdType *old2New, mcIdType newSz, DataArrayDouble *arr) const { RenumberEntitiesFromO2NArr(epsOnVals,old2New,newSz,arr,"Cell"); } -void MEDCouplingFieldDiscretizationP0::renumberValuesOnCellsR(const MEDCouplingMesh *mesh, const mcIdType *new2old, mcIdType newSz, DataArrayDouble *arr) const +void MEDCouplingFieldDiscretizationP0::renumberValuesOnCellsR(const MEDCouplingMesh * /*mesh*/, const mcIdType *new2old, mcIdType newSz, DataArrayDouble *arr) const { RenumberEntitiesFromN2OArr(new2old,newSz,arr,"Cell"); } @@ -735,7 +735,7 @@ void MEDCouplingFieldDiscretizationP0::renumberValuesOnCellsR(const MEDCouplingM * \return a newly allocated array containing ids to select into the DataArrayDouble of the field. * */ -DataArrayIdType *MEDCouplingFieldDiscretizationP0::computeTupleIdsToSelectFromCellIds(const MEDCouplingMesh *mesh, const mcIdType *startCellIds, const mcIdType *endCellIds) const +DataArrayIdType *MEDCouplingFieldDiscretizationP0::computeTupleIdsToSelectFromCellIds(const MEDCouplingMesh * /*mesh*/, const mcIdType *startCellIds, const mcIdType *endCellIds) const { MCAuto ret=DataArrayIdType::New(); ret->alloc(std::distance(startCellIds,endCellIds),1); @@ -841,8 +841,8 @@ mcIdType MEDCouplingFieldDiscretizationOnNodes::getNumberOfMeshPlaces(const MEDC /*! * Nothing to do here. */ -void MEDCouplingFieldDiscretizationOnNodes::renumberArraysForCell(const MEDCouplingMesh *, const std::vector& arrays, - const mcIdType *old2NewBg, bool check) +void MEDCouplingFieldDiscretizationOnNodes::renumberArraysForCell(const MEDCouplingMesh *, const std::vector& /*arrays*/, + const mcIdType * /*old2NewBg*/, bool /*check*/) { } @@ -959,14 +959,14 @@ void MEDCouplingFieldDiscretizationOnNodes::renumberValuesOnNodes(double epsOnVa /*! * Nothing to do it's not a bug. */ -void MEDCouplingFieldDiscretizationOnNodes::renumberValuesOnCells(double epsOnVals, const MEDCouplingMesh *mesh, const mcIdType *old2New, mcIdType newSz, DataArrayDouble *arr) const +void MEDCouplingFieldDiscretizationOnNodes::renumberValuesOnCells(double /*epsOnVals*/, const MEDCouplingMesh * /*mesh*/, const mcIdType * /*old2New*/, mcIdType /*newSz*/, DataArrayDouble * /*arr*/) const { } /*! * Nothing to do it's not a bug. */ -void MEDCouplingFieldDiscretizationOnNodes::renumberValuesOnCellsR(const MEDCouplingMesh *mesh, const mcIdType *new2old, mcIdType newSz, DataArrayDouble *arr) const +void MEDCouplingFieldDiscretizationOnNodes::renumberValuesOnCellsR(const MEDCouplingMesh * /*mesh*/, const mcIdType * /*new2old*/, mcIdType /*newSz*/, DataArrayDouble * /*arr*/) const { } @@ -1004,7 +1004,7 @@ const char *MEDCouplingFieldDiscretizationP1::getRepr() const return REPR; } -bool MEDCouplingFieldDiscretizationP1::isEqualIfNotWhy(const MEDCouplingFieldDiscretization *other, double eps, std::string& reason) const +bool MEDCouplingFieldDiscretizationP1::isEqualIfNotWhy(const MEDCouplingFieldDiscretization *other, double /*eps*/, std::string& reason) const { if(!other) { @@ -1170,7 +1170,7 @@ std::vector MEDCouplingFieldDiscretizationPerCell::getD return ret; } -void MEDCouplingFieldDiscretizationPerCell::checkCoherencyBetween(const MEDCouplingMesh *mesh, const DataArray *da) const +void MEDCouplingFieldDiscretizationPerCell::checkCoherencyBetween(const MEDCouplingMesh *mesh, const DataArray * /*da*/) const { if(!_discr_per_cell) throw INTERP_KERNEL::Exception("MEDCouplingFieldDiscretizationPerCell has no discretization per cell !"); @@ -1181,7 +1181,7 @@ void MEDCouplingFieldDiscretizationPerCell::checkCoherencyBetween(const MEDCoupl throw INTERP_KERNEL::Exception("MEDCouplingFieldDiscretizationPerCell has a discretization per cell but it's not matching the underlying mesh !"); } -bool MEDCouplingFieldDiscretizationPerCell::isEqualIfNotWhy(const MEDCouplingFieldDiscretization *other, double eps, std::string& reason) const +bool MEDCouplingFieldDiscretizationPerCell::isEqualIfNotWhy(const MEDCouplingFieldDiscretization *other, double /*eps*/, std::string& reason) const { if(!other) { @@ -1204,7 +1204,7 @@ bool MEDCouplingFieldDiscretizationPerCell::isEqualIfNotWhy(const MEDCouplingFie return ret; } -bool MEDCouplingFieldDiscretizationPerCell::isEqualWithoutConsideringStr(const MEDCouplingFieldDiscretization *other, double eps) const +bool MEDCouplingFieldDiscretizationPerCell::isEqualWithoutConsideringStr(const MEDCouplingFieldDiscretization *other, double /*eps*/) const { const MEDCouplingFieldDiscretizationPerCell *otherC=dynamic_cast(other); if(!otherC) @@ -1605,7 +1605,7 @@ void MEDCouplingFieldDiscretizationGauss::computeMeshRestrictionFromTupleIds(con /*! * Empty : not a bug */ -void MEDCouplingFieldDiscretizationGauss::checkCompatibilityWithNature(NatureOfField nat) const +void MEDCouplingFieldDiscretizationGauss::checkCompatibilityWithNature(NatureOfField /*nat*/) const { } @@ -1678,7 +1678,7 @@ void MEDCouplingFieldDiscretizationGauss::finishUnserialization(const std::vecto delete [] tmp; } -double MEDCouplingFieldDiscretizationGauss::getIJK(const MEDCouplingMesh *mesh, const DataArrayDouble *da, mcIdType cellId, mcIdType nodeIdInCell, int compoId) const +double MEDCouplingFieldDiscretizationGauss::getIJK(const MEDCouplingMesh * /*mesh*/, const DataArrayDouble *da, mcIdType cellId, mcIdType nodeIdInCell, int compoId) const { mcIdType offset=getOffsetOfCell(cellId); return da->getIJ(offset+nodeIdInCell,compoId); @@ -1770,17 +1770,17 @@ MEDCouplingFieldDouble *MEDCouplingFieldDiscretizationGauss::getMeasureField(con return ret.retn(); } -void MEDCouplingFieldDiscretizationGauss::getValueOn(const DataArrayDouble *arr, const MEDCouplingMesh *mesh, const double *loc, double *res) const +void MEDCouplingFieldDiscretizationGauss::getValueOn(const DataArrayDouble * /*arr*/, const MEDCouplingMesh * /*mesh*/, const double * /*loc*/, double * /*res*/) const { throw INTERP_KERNEL::Exception("Not implemented yet !"); } -void MEDCouplingFieldDiscretizationGauss::getValueOnPos(const DataArrayDouble *arr, const MEDCouplingMesh *mesh, mcIdType i, mcIdType j, mcIdType k, double *res) const +void MEDCouplingFieldDiscretizationGauss::getValueOnPos(const DataArrayDouble * /*arr*/, const MEDCouplingMesh * /*mesh*/, mcIdType /*i*/, mcIdType /*j*/, mcIdType /*k*/, double * /*res*/) const { throw INTERP_KERNEL::Exception("getValueOnPos(i,j,k) : Not applicable for Gauss points !"); } -DataArrayDouble *MEDCouplingFieldDiscretizationGauss::getValueOnMulti(const DataArrayDouble *arr, const MEDCouplingMesh *mesh, const double *loc, mcIdType nbOfPoints) const +DataArrayDouble *MEDCouplingFieldDiscretizationGauss::getValueOnMulti(const DataArrayDouble * /*arr*/, const MEDCouplingMesh * /*mesh*/, const double * /*loc*/, mcIdType /*nbOfPoints*/) const { throw INTERP_KERNEL::Exception("getValueOnMulti : Not implemented yet for gauss points !"); } @@ -1864,16 +1864,16 @@ DataArrayIdType *MEDCouplingFieldDiscretizationGauss::computeTupleIdsToSelectFro /*! * No implementation needed ! */ -void MEDCouplingFieldDiscretizationGauss::renumberValuesOnNodes(double , const mcIdType *, mcIdType newNbOfNodes, DataArrayDouble *) const +void MEDCouplingFieldDiscretizationGauss::renumberValuesOnNodes(double , const mcIdType *, mcIdType /*newNbOfNodes*/, DataArrayDouble *) const { } -void MEDCouplingFieldDiscretizationGauss::renumberValuesOnCells(double epsOnVals, const MEDCouplingMesh *mesh, const mcIdType *old2New, mcIdType newSz, DataArrayDouble *arr) const +void MEDCouplingFieldDiscretizationGauss::renumberValuesOnCells(double /*epsOnVals*/, const MEDCouplingMesh * /*mesh*/, const mcIdType * /*old2New*/, mcIdType /*newSz*/, DataArrayDouble * /*arr*/) const { throw INTERP_KERNEL::Exception("Not implemented yet !"); } -void MEDCouplingFieldDiscretizationGauss::renumberValuesOnCellsR(const MEDCouplingMesh *mesh, const mcIdType *new2old, mcIdType newSz, DataArrayDouble *arr) const +void MEDCouplingFieldDiscretizationGauss::renumberValuesOnCellsR(const MEDCouplingMesh * /*mesh*/, const mcIdType * /*new2old*/, mcIdType /*newSz*/, DataArrayDouble * /*arr*/) const { throw INTERP_KERNEL::Exception("Number of cells has changed and becomes higher with some cells that have been split ! Unable to conserve the Gauss field !"); } @@ -2195,7 +2195,7 @@ const char *MEDCouplingFieldDiscretizationGaussNE::getRepr() const return REPR; } -bool MEDCouplingFieldDiscretizationGaussNE::isEqualIfNotWhy(const MEDCouplingFieldDiscretization *other, double eps, std::string& reason) const +bool MEDCouplingFieldDiscretizationGaussNE::isEqualIfNotWhy(const MEDCouplingFieldDiscretization *other, double /*eps*/, std::string& reason) const { if(!other) { @@ -2654,7 +2654,7 @@ void MEDCouplingFieldDiscretizationGaussNE::computeMeshRestrictionFromTupleIds(c nbOfNodesPerCell->findIdsRangesInListOfIds(tmp,cellRestriction,trueTupleRestriction); } -void MEDCouplingFieldDiscretizationGaussNE::checkCompatibilityWithNature(NatureOfField nat) const +void MEDCouplingFieldDiscretizationGaussNE::checkCompatibilityWithNature(NatureOfField /*nat*/) const { } @@ -2717,17 +2717,17 @@ MEDCouplingFieldDouble *MEDCouplingFieldDiscretizationGaussNE::getMeasureField(c return ret.retn(); } -void MEDCouplingFieldDiscretizationGaussNE::getValueOn(const DataArrayDouble *arr, const MEDCouplingMesh *mesh, const double *loc, double *res) const +void MEDCouplingFieldDiscretizationGaussNE::getValueOn(const DataArrayDouble * /*arr*/, const MEDCouplingMesh * /*mesh*/, const double * /*loc*/, double * /*res*/) const { throw INTERP_KERNEL::Exception("Not implemented yet !"); } -void MEDCouplingFieldDiscretizationGaussNE::getValueOnPos(const DataArrayDouble *arr, const MEDCouplingMesh *mesh, mcIdType i, mcIdType j, mcIdType k, double *res) const +void MEDCouplingFieldDiscretizationGaussNE::getValueOnPos(const DataArrayDouble * /*arr*/, const MEDCouplingMesh * /*mesh*/, mcIdType /*i*/, mcIdType /*j*/, mcIdType /*k*/, double * /*res*/) const { throw INTERP_KERNEL::Exception("getValueOnPos(i,j,k) : Not applicable for Gauss points !"); } -DataArrayDouble *MEDCouplingFieldDiscretizationGaussNE::getValueOnMulti(const DataArrayDouble *arr, const MEDCouplingMesh *mesh, const double *loc, mcIdType nbOfPoints) const +DataArrayDouble *MEDCouplingFieldDiscretizationGaussNE::getValueOnMulti(const DataArrayDouble * /*arr*/, const MEDCouplingMesh * /*mesh*/, const double * /*loc*/, mcIdType /*nbOfPoints*/) const { throw INTERP_KERNEL::Exception("getValueOnMulti : Not implemented for Gauss NE !"); } @@ -2799,11 +2799,11 @@ DataArrayIdType *MEDCouplingFieldDiscretizationGaussNE::computeTupleIdsToSelectF /*! * No implementation needed ! */ -void MEDCouplingFieldDiscretizationGaussNE::renumberValuesOnNodes(double , const mcIdType *, mcIdType newNbOfNodes, DataArrayDouble *) const +void MEDCouplingFieldDiscretizationGaussNE::renumberValuesOnNodes(double , const mcIdType *, mcIdType /*newNbOfNodes*/, DataArrayDouble *) const { } -void MEDCouplingFieldDiscretizationGaussNE::renumberValuesOnCells(double epsOnVals, const MEDCouplingMesh *mesh, const mcIdType *old2New, mcIdType newSz, DataArrayDouble *arr) const +void MEDCouplingFieldDiscretizationGaussNE::renumberValuesOnCells(double /*epsOnVals*/, const MEDCouplingMesh * /*mesh*/, const mcIdType * /*old2New*/, mcIdType /*newSz*/, DataArrayDouble * /*arr*/) const { throw INTERP_KERNEL::Exception("Not implemented yet !"); } @@ -2813,7 +2813,7 @@ MCAuto MEDCouplingFieldDiscretizationGaussNE::ag return EasyAggregate(fds); } -void MEDCouplingFieldDiscretizationGaussNE::renumberValuesOnCellsR(const MEDCouplingMesh *mesh, const mcIdType *new2old, mcIdType newSz, DataArrayDouble *arr) const +void MEDCouplingFieldDiscretizationGaussNE::renumberValuesOnCellsR(const MEDCouplingMesh * /*mesh*/, const mcIdType * /*new2old*/, mcIdType /*newSz*/, DataArrayDouble * /*arr*/) const { throw INTERP_KERNEL::Exception("Not implemented yet !"); } @@ -2858,7 +2858,7 @@ void MEDCouplingFieldDiscretizationKriging::checkCompatibilityWithNature(NatureO throw INTERP_KERNEL::Exception("Invalid nature for Kriging field : expected IntensiveMaximum !"); } -bool MEDCouplingFieldDiscretizationKriging::isEqualIfNotWhy(const MEDCouplingFieldDiscretization *other, double eps, std::string& reason) const +bool MEDCouplingFieldDiscretizationKriging::isEqualIfNotWhy(const MEDCouplingFieldDiscretization *other, double /*eps*/, std::string& reason) const { if(!other) { @@ -2872,7 +2872,7 @@ bool MEDCouplingFieldDiscretizationKriging::isEqualIfNotWhy(const MEDCouplingFie return ret; } -MEDCouplingFieldDouble *MEDCouplingFieldDiscretizationKriging::getMeasureField(const MEDCouplingMesh *mesh, bool isAbs) const +MEDCouplingFieldDouble *MEDCouplingFieldDiscretizationKriging::getMeasureField(const MEDCouplingMesh *mesh, bool /*isAbs*/) const { if(!mesh) throw INTERP_KERNEL::Exception("MEDCouplingFieldDiscretizationKriging::getMeasureField : mesh instance specified is NULL !"); diff --git a/src/MEDCoupling/MEDCouplingFieldDiscretization.hxx b/src/MEDCoupling/MEDCouplingFieldDiscretization.hxx index 989a16408..722777b6b 100644 --- a/src/MEDCoupling/MEDCouplingFieldDiscretization.hxx +++ b/src/MEDCoupling/MEDCouplingFieldDiscretization.hxx @@ -57,8 +57,8 @@ namespace MEDCoupling MEDCOUPLING_EXPORT virtual bool isEqualWithoutConsideringStr(const MEDCouplingFieldDiscretization *other, double eps) const; MEDCOUPLING_EXPORT virtual MEDCouplingFieldDiscretization *deepCopy() const; MEDCOUPLING_EXPORT virtual MEDCouplingFieldDiscretization *clone() const = 0; - MEDCOUPLING_EXPORT virtual MEDCouplingFieldDiscretization *clonePart(const mcIdType *startCellIds, const mcIdType *endCellIds) const; - MEDCOUPLING_EXPORT virtual MEDCouplingFieldDiscretization *clonePartRange(mcIdType beginCellIds, mcIdType endCellIds, mcIdType stepCellIds) const; + MEDCOUPLING_EXPORT virtual MEDCouplingFieldDiscretization *clonePart(const mcIdType * /*startCellIds*/, const mcIdType * /*endCellIds*/) const; + MEDCOUPLING_EXPORT virtual MEDCouplingFieldDiscretization *clonePartRange(mcIdType /*beginCellIds*/, mcIdType /*endCellIds*/, mcIdType /*stepCellIds*/) const; MEDCOUPLING_EXPORT virtual std::string getStringRepr() const = 0; MEDCOUPLING_EXPORT virtual const char *getRepr() const = 0; MEDCOUPLING_EXPORT virtual mcIdType getNumberOfTuplesExpectedRegardingCode(const std::vector& code, const std::vector& idsPerType) const = 0; @@ -72,10 +72,10 @@ namespace MEDCoupling MEDCOUPLING_EXPORT virtual void computeMeshRestrictionFromTupleIds(const MEDCouplingMesh *mesh, const mcIdType *tupleIdsBg, const mcIdType *tupleIdsEnd, DataArrayIdType *&cellRestriction, DataArrayIdType *&trueTupleRestriction) const = 0; MEDCOUPLING_EXPORT virtual void checkCompatibilityWithNature(NatureOfField nat) const = 0; - MEDCOUPLING_EXPORT virtual void renumberCells(const mcIdType *old2NewBg, bool check=true); + MEDCOUPLING_EXPORT virtual void renumberCells(const mcIdType * /*old2NewBg*/, bool /*check*/=true); MEDCOUPLING_EXPORT virtual void renumberArraysForCell(const MEDCouplingMesh *mesh, const std::vector& arrays, const mcIdType *old2NewBg, bool check) = 0; - MEDCOUPLING_EXPORT virtual double getIJK(const MEDCouplingMesh *mesh, const DataArrayDouble *da, mcIdType cellId, mcIdType nodeIdInCell, int compoId) const; + MEDCOUPLING_EXPORT virtual double getIJK(const MEDCouplingMesh * /*mesh*/, const DataArrayDouble * /*da*/, mcIdType /*cellId*/, mcIdType /*nodeIdInCell*/, int /*compoId*/) const; MEDCOUPLING_EXPORT virtual void checkCoherencyBetween(const MEDCouplingMesh *mesh, const DataArray *da) const = 0; MEDCOUPLING_EXPORT virtual MEDCouplingFieldDouble *getMeasureField(const MEDCouplingMesh *mesh, bool isAbs) const = 0; MEDCOUPLING_EXPORT virtual void getValueOn(const DataArrayDouble *arr, const MEDCouplingMesh *mesh, const double *loc, double *res) const = 0; @@ -83,35 +83,35 @@ namespace MEDCoupling MEDCOUPLING_EXPORT virtual DataArrayDouble *getValueOnMulti(const DataArrayDouble *arr, const MEDCouplingMesh *mesh, const double *loc, mcIdType nbOfPoints) const = 0; MEDCOUPLING_EXPORT virtual DataArrayIdType *computeTupleIdsToSelectFromCellIds(const MEDCouplingMesh *mesh, const mcIdType *startCellIds, const mcIdType *endCellIds) const = 0; MEDCOUPLING_EXPORT virtual MEDCouplingMesh *buildSubMeshData(const MEDCouplingMesh *mesh, const mcIdType *start, const mcIdType *end, DataArrayIdType *&di) const = 0; - MEDCOUPLING_EXPORT virtual MEDCouplingMesh *buildSubMeshDataRange(const MEDCouplingMesh *mesh, mcIdType beginCellIds, mcIdType endCellIds, mcIdType stepCellIds, mcIdType& beginOut, mcIdType& endOut, mcIdType& stepOut, DataArrayIdType *&di) const; + MEDCOUPLING_EXPORT virtual MEDCouplingMesh *buildSubMeshDataRange(const MEDCouplingMesh *mesh, mcIdType beginCellIds, mcIdType endCellIds, mcIdType stepCellIds, mcIdType& /*beginOut*/, mcIdType& /*endOut*/, mcIdType& /*stepOut*/, DataArrayIdType *&di) const; MEDCOUPLING_EXPORT virtual void renumberValuesOnNodes(double epsOnVals, const mcIdType *old2New, mcIdType newNbOfNodes, DataArrayDouble *arr) const = 0; MEDCOUPLING_EXPORT virtual void renumberValuesOnCells(double epsOnVals, const MEDCouplingMesh *mesh, const mcIdType *old2New, mcIdType newSz, DataArrayDouble *arr) const = 0; MEDCOUPLING_EXPORT virtual void renumberValuesOnCellsR(const MEDCouplingMesh *mesh, const mcIdType *new2old, mcIdType newSz, DataArrayDouble *arr) const = 0; MEDCOUPLING_EXPORT virtual MCAuto aggregate(std::vector& fds) const = 0; MEDCOUPLING_EXPORT virtual void getSerializationIntArray(DataArrayIdType *& arr) const; - MEDCOUPLING_EXPORT virtual void getTinySerializationIntInformation(std::vector& tinyInfo) const; - MEDCOUPLING_EXPORT virtual void getTinySerializationDbleInformation(std::vector& tinyInfo) const; - MEDCOUPLING_EXPORT virtual void finishUnserialization(const std::vector& tinyInfo); - MEDCOUPLING_EXPORT virtual void resizeForUnserialization(const std::vector& tinyInfo, DataArrayIdType *& arr); - MEDCOUPLING_EXPORT virtual void checkForUnserialization(const std::vector& tinyInfo, const DataArrayIdType *arr); - MEDCOUPLING_EXPORT virtual void setGaussLocalizationOnType(const MEDCouplingMesh *m, INTERP_KERNEL::NormalizedCellType type, const std::vector& refCoo, - const std::vector& gsCoo, const std::vector& wg); - MEDCOUPLING_EXPORT virtual void setGaussLocalizationOnCells(const MEDCouplingMesh *m, const mcIdType *begin, const mcIdType *end, const std::vector& refCoo, - const std::vector& gsCoo, const std::vector& wg); + MEDCOUPLING_EXPORT virtual void getTinySerializationIntInformation(std::vector& /*tinyInfo*/) const; + MEDCOUPLING_EXPORT virtual void getTinySerializationDbleInformation(std::vector& /*tinyInfo*/) const; + MEDCOUPLING_EXPORT virtual void finishUnserialization(const std::vector& /*tinyInfo*/); + MEDCOUPLING_EXPORT virtual void resizeForUnserialization(const std::vector& /*tinyInfo*/, DataArrayIdType *& arr); + MEDCOUPLING_EXPORT virtual void checkForUnserialization(const std::vector& /*tinyInfo*/, const DataArrayIdType * /*arr*/); + MEDCOUPLING_EXPORT virtual void setGaussLocalizationOnType(const MEDCouplingMesh * /*m*/, INTERP_KERNEL::NormalizedCellType /*type*/, const std::vector& /*refCoo*/, + const std::vector& /*gsCoo*/, const std::vector& /*wg*/); + MEDCOUPLING_EXPORT virtual void setGaussLocalizationOnCells(const MEDCouplingMesh * /*m*/, const mcIdType *begin, const mcIdType * /*end*/, const std::vector& /*refCoo*/, + const std::vector& /*gsCoo*/, const std::vector& /*wg*/); MEDCOUPLING_EXPORT virtual void clearGaussLocalizations(); - MEDCOUPLING_EXPORT virtual MEDCouplingGaussLocalization& getGaussLocalization(mcIdType locId); + MEDCOUPLING_EXPORT virtual MEDCouplingGaussLocalization& getGaussLocalization(mcIdType /*locId*/); MEDCOUPLING_EXPORT virtual mcIdType getNbOfGaussLocalization() const; - MEDCOUPLING_EXPORT virtual mcIdType getGaussLocalizationIdOfOneCell(mcIdType cellId) const; - MEDCOUPLING_EXPORT virtual mcIdType getGaussLocalizationIdOfOneType(INTERP_KERNEL::NormalizedCellType type) const; - MEDCOUPLING_EXPORT virtual std::set getGaussLocalizationIdsOfOneType(INTERP_KERNEL::NormalizedCellType type) const; - MEDCOUPLING_EXPORT virtual void getCellIdsHavingGaussLocalization(mcIdType locId, std::vector& cellIds) const; + MEDCOUPLING_EXPORT virtual mcIdType getGaussLocalizationIdOfOneCell(mcIdType /*cellId*/) const; + MEDCOUPLING_EXPORT virtual mcIdType getGaussLocalizationIdOfOneType(INTERP_KERNEL::NormalizedCellType /*type*/) const; + MEDCOUPLING_EXPORT virtual std::set getGaussLocalizationIdsOfOneType(INTERP_KERNEL::NormalizedCellType /*type*/) const; + MEDCOUPLING_EXPORT virtual void getCellIdsHavingGaussLocalization(mcIdType /*locId*/, std::vector& /*cellIds*/) const; MEDCOUPLING_EXPORT virtual const MEDCouplingGaussLocalization& getGaussLocalization(mcIdType locId) const; MEDCOUPLING_EXPORT virtual void reprQuickOverview(std::ostream& stream) const = 0; MEDCOUPLING_EXPORT virtual ~MEDCouplingFieldDiscretization(); protected: MEDCOUPLING_EXPORT MEDCouplingFieldDiscretization(); MEDCOUPLING_EXPORT static void RenumberEntitiesFromO2NArr(double epsOnVals, const mcIdType *old2NewPtr, mcIdType newNbOfEntity, DataArrayDouble *arr, const std::string& msg); - MEDCOUPLING_EXPORT static void RenumberEntitiesFromN2OArr(const mcIdType *new2OldPtr, mcIdType new2OldSz, DataArrayDouble *arr, const std::string& msg); + MEDCOUPLING_EXPORT static void RenumberEntitiesFromN2OArr(const mcIdType *new2OldPtr, mcIdType new2OldSz, DataArrayDouble *arr, const std::string& /*msg*/); template static MCAuto EasyAggregate(std::vector& fds); protected: @@ -127,7 +127,7 @@ namespace MEDCoupling MEDCOUPLING_EXPORT MEDCouplingFieldDiscretization *clone() const; MEDCOUPLING_EXPORT std::string getStringRepr() const; MEDCOUPLING_EXPORT const char *getRepr() const; - MEDCOUPLING_EXPORT bool isEqualIfNotWhy(const MEDCouplingFieldDiscretization *other, double eps, std::string& reason) const; + MEDCOUPLING_EXPORT bool isEqualIfNotWhy(const MEDCouplingFieldDiscretization *other, double /*eps*/, std::string& reason) const; MEDCOUPLING_EXPORT mcIdType getNumberOfTuplesExpectedRegardingCode(const std::vector& code, const std::vector& idsPerType) const; MEDCOUPLING_EXPORT mcIdType getNumberOfTuples(const MEDCouplingMesh *mesh) const; MEDCOUPLING_EXPORT mcIdType getNumberOfMeshPlaces(const MEDCouplingMesh *mesh) const; @@ -135,7 +135,7 @@ namespace MEDCoupling MEDCOUPLING_EXPORT void renumberArraysForCell(const MEDCouplingMesh *mesh, const std::vector& arrays, const mcIdType *old2NewBg, bool check); MEDCOUPLING_EXPORT DataArrayDouble *getLocalizationOfDiscValues(const MEDCouplingMesh *mesh) const; - MEDCOUPLING_EXPORT void checkCompatibilityWithNature(NatureOfField nat) const; + MEDCOUPLING_EXPORT void checkCompatibilityWithNature(NatureOfField /*nat*/) const; MEDCOUPLING_EXPORT void computeMeshRestrictionFromTupleIds(const MEDCouplingMesh *mesh, const mcIdType *tupleIdsBg, const mcIdType *tupleIdsEnd, DataArrayIdType *&cellRestriction, DataArrayIdType *&trueTupleRestriction) const; MEDCOUPLING_EXPORT void checkCoherencyBetween(const MEDCouplingMesh *mesh, const DataArray *da) const; @@ -143,13 +143,13 @@ namespace MEDCoupling MEDCOUPLING_EXPORT void getValueOn(const DataArrayDouble *arr, const MEDCouplingMesh *mesh, const double *loc, double *res) const; MEDCOUPLING_EXPORT void getValueOnPos(const DataArrayDouble *arr, const MEDCouplingMesh *mesh, mcIdType i, mcIdType j, mcIdType k, double *res) const; MEDCOUPLING_EXPORT DataArrayDouble *getValueOnMulti(const DataArrayDouble *arr, const MEDCouplingMesh *mesh, const double *loc, mcIdType nbOfPoints) const; - MEDCOUPLING_EXPORT void renumberValuesOnNodes(double epsOnVals, const mcIdType *old2New, mcIdType newNbOfNodes, DataArrayDouble *arr) const; - MEDCOUPLING_EXPORT void renumberValuesOnCells(double epsOnVals, const MEDCouplingMesh *mesh, const mcIdType *old2New, mcIdType newSz, DataArrayDouble *arr) const; - MEDCOUPLING_EXPORT void renumberValuesOnCellsR(const MEDCouplingMesh *mesh, const mcIdType *new2old, mcIdType newSz, DataArrayDouble *arr) const; + MEDCOUPLING_EXPORT void renumberValuesOnNodes(double epsOnVals, const mcIdType *old2New, mcIdType /*newNbOfNodes*/, DataArrayDouble *arr) const; + MEDCOUPLING_EXPORT void renumberValuesOnCells(double epsOnVals, const MEDCouplingMesh * /*mesh*/, const mcIdType *old2New, mcIdType newSz, DataArrayDouble *arr) const; + MEDCOUPLING_EXPORT void renumberValuesOnCellsR(const MEDCouplingMesh * /*mesh*/, const mcIdType *new2old, mcIdType newSz, DataArrayDouble *arr) const; MEDCOUPLING_EXPORT MCAuto aggregate(std::vector& fds) const override; MEDCOUPLING_EXPORT MEDCouplingMesh *buildSubMeshData(const MEDCouplingMesh *mesh, const mcIdType *start, const mcIdType *end, DataArrayIdType *&di) const; MEDCOUPLING_EXPORT MEDCouplingMesh *buildSubMeshDataRange(const MEDCouplingMesh *mesh, mcIdType beginCellIds, mcIdType endCellIds, mcIdType stepCellIds, mcIdType& beginOut, mcIdType& endOut, mcIdType& stepOut, DataArrayIdType *&di) const; - MEDCOUPLING_EXPORT DataArrayIdType *computeTupleIdsToSelectFromCellIds(const MEDCouplingMesh *mesh, const mcIdType *startCellIds, const mcIdType *endCellIds) const; + MEDCOUPLING_EXPORT DataArrayIdType *computeTupleIdsToSelectFromCellIds(const MEDCouplingMesh * /*mesh*/, const mcIdType *startCellIds, const mcIdType *endCellIds) const; MEDCOUPLING_EXPORT void reprQuickOverview(std::ostream& stream) const; public: static const char REPR[]; @@ -163,8 +163,8 @@ namespace MEDCoupling MEDCOUPLING_EXPORT mcIdType getNumberOfTuplesExpectedRegardingCode(const std::vector& code, const std::vector& idsPerType) const; MEDCOUPLING_EXPORT mcIdType getNumberOfMeshPlaces(const MEDCouplingMesh *mesh) const; MEDCOUPLING_EXPORT DataArrayIdType *getOffsetArr(const MEDCouplingMesh *mesh) const; - MEDCOUPLING_EXPORT void renumberArraysForCell(const MEDCouplingMesh *mesh, const std::vector& arrays, - const mcIdType *old2NewBg, bool check); + MEDCOUPLING_EXPORT void renumberArraysForCell(const MEDCouplingMesh *mesh, const std::vector& /*arrays*/, + const mcIdType * /*old2NewBg*/, bool /*check*/); MEDCOUPLING_EXPORT DataArrayDouble *getLocalizationOfDiscValues(const MEDCouplingMesh *mesh) const; MEDCOUPLING_EXPORT void computeMeshRestrictionFromTupleIds(const MEDCouplingMesh *mesh, const mcIdType *tupleIdsBg, const mcIdType *tupleIdsEnd, DataArrayIdType *&cellRestriction, DataArrayIdType *&trueTupleRestriction) const; diff --git a/src/MEDCoupling/MEDCouplingGaussLocalization.cxx b/src/MEDCoupling/MEDCouplingGaussLocalization.cxx index ebf9cc4a0..145e35cf1 100644 --- a/src/MEDCoupling/MEDCouplingGaussLocalization.cxx +++ b/src/MEDCoupling/MEDCouplingGaussLocalization.cxx @@ -149,7 +149,7 @@ double MEDCouplingGaussLocalization::getGaussCoord(int gaussPtIdInCell, int comp return _gauss_coord[gaussPtIdInCell*dim+comp]; } -double MEDCouplingGaussLocalization::getWeight(int gaussPtIdInCell, double newVal) const +double MEDCouplingGaussLocalization::getWeight(int gaussPtIdInCell, double /*newVal*/) const { checkCoherencyOfRequest(gaussPtIdInCell,0); return _weight[gaussPtIdInCell]; diff --git a/src/MEDCoupling/MEDCouplingIMesh.cxx b/src/MEDCoupling/MEDCouplingIMesh.cxx index d28b5c07b..19468e9b8 100755 --- a/src/MEDCoupling/MEDCouplingIMesh.cxx +++ b/src/MEDCoupling/MEDCouplingIMesh.cxx @@ -925,8 +925,8 @@ bool MEDCouplingIMesh::isEqualWithoutConsideringStrInternal(const MEDCouplingMes return true; } -void MEDCouplingIMesh::checkDeepEquivalWith(const MEDCouplingMesh *other, int cellCompPol, double prec, - DataArrayIdType *&cellCor, DataArrayIdType *&nodeCor) const +void MEDCouplingIMesh::checkDeepEquivalWith(const MEDCouplingMesh *other, int /*cellCompPol*/, double prec, + DataArrayIdType *& /*cellCor*/, DataArrayIdType *& /*nodeCor*/) const { if(!isEqualWithoutConsideringStr(other,prec)) throw INTERP_KERNEL::Exception("MEDCouplingIMesh::checkDeepEquivalWith : Meshes are not the same !"); @@ -936,8 +936,8 @@ void MEDCouplingIMesh::checkDeepEquivalWith(const MEDCouplingMesh *other, int ce * Nothing is done here (except to check that the other is a MEDCoupling::MEDCouplingIMesh instance too). * The user intend that the nodes are the same, so by construction of MEDCoupling::MEDCouplingIMesh, \a this and \a other are the same ! */ -void MEDCouplingIMesh::checkDeepEquivalOnSameNodesWith(const MEDCouplingMesh *other, int cellCompPol, double prec, - DataArrayIdType *&cellCor) const +void MEDCouplingIMesh::checkDeepEquivalOnSameNodesWith(const MEDCouplingMesh *other, int /*cellCompPol*/, double prec, + DataArrayIdType *& /*cellCor*/) const { if(!isEqualWithoutConsideringStr(other,prec)) throw INTERP_KERNEL::Exception("MEDCouplingIMesh::checkDeepEquivalOnSameNodesWith : Meshes are not the same !"); @@ -954,7 +954,7 @@ void MEDCouplingIMesh::checkConsistencyLight() const } } -void MEDCouplingIMesh::checkConsistency(double eps) const +void MEDCouplingIMesh::checkConsistency(double /*eps*/) const { checkConsistencyLight(); } @@ -1082,7 +1082,7 @@ void MEDCouplingIMesh::getBoundingBox(double *bbox) const * and one time . The caller is to delete this field using decrRef() as it is no * more needed. */ -MEDCouplingFieldDouble *MEDCouplingIMesh::getMeasureField(bool isAbs) const +MEDCouplingFieldDouble *MEDCouplingIMesh::getMeasureField(bool /*isAbs*/) const { checkConsistencyLight(); std::string name="MeasureOfMesh_"; @@ -1103,13 +1103,13 @@ MEDCouplingFieldDouble *MEDCouplingIMesh::getMeasureField(bool isAbs) const /*! * not implemented yet ! */ -MEDCouplingFieldDouble *MEDCouplingIMesh::getMeasureFieldOnNode(bool isAbs) const +MEDCouplingFieldDouble *MEDCouplingIMesh::getMeasureFieldOnNode(bool /*isAbs*/) const { throw INTERP_KERNEL::Exception("MEDCouplingIMesh::getMeasureFieldOnNode : not implemented yet !"); //return 0; } -mcIdType MEDCouplingIMesh::getCellContainingPoint(const double *pos, double eps) const +mcIdType MEDCouplingIMesh::getCellContainingPoint(const double *pos, double /*eps*/) const { mcIdType dim(getSpaceDimension()),ret(0),coeff(1); for(mcIdType i=0;i& tiny tinyInfoD.insert(tinyInfoD.end(),_origin,_origin+3); } -void MEDCouplingIMesh::resizeForUnserialization(const std::vector& tinyInfo, DataArrayIdType *a1, DataArrayDouble *a2, std::vector& littleStrings) const +void MEDCouplingIMesh::resizeForUnserialization(const std::vector& /*tinyInfo*/, DataArrayIdType *a1, DataArrayDouble *a2, std::vector& /*littleStrings*/) const { a1->alloc(0,1); a2->alloc(0,1); @@ -1276,7 +1276,7 @@ void MEDCouplingIMesh::serialize(DataArrayIdType *&a1, DataArrayDouble *&a2) con a2->alloc(0,1); } -void MEDCouplingIMesh::unserialization(const std::vector& tinyInfoD, const std::vector& tinyInfo, const DataArrayIdType *a1, DataArrayDouble *a2, +void MEDCouplingIMesh::unserialization(const std::vector& tinyInfoD, const std::vector& tinyInfo, const DataArrayIdType * /*a1*/, DataArrayDouble * /*a2*/, const std::vector& littleStrings) { setName(littleStrings[0]); @@ -1291,7 +1291,7 @@ void MEDCouplingIMesh::unserialization(const std::vector& tinyInfoD, con declareAsNew(); } -void MEDCouplingIMesh::writeVTKLL(std::ostream& ofs, const std::string& cellData, const std::string& pointData, DataArrayByte *byteData) const +void MEDCouplingIMesh::writeVTKLL(std::ostream& ofs, const std::string& cellData, const std::string& pointData, DataArrayByte * /*byteData*/) const { checkConsistencyLight(); std::ostringstream extent,origin,spacing; diff --git a/src/MEDCoupling/MEDCouplingIMesh.hxx b/src/MEDCoupling/MEDCouplingIMesh.hxx index 5a2bf23c7..83be30462 100644 --- a/src/MEDCoupling/MEDCouplingIMesh.hxx +++ b/src/MEDCoupling/MEDCouplingIMesh.hxx @@ -66,39 +66,39 @@ namespace MEDCoupling MEDCOUPLING_EXPORT void copyTinyStringsFrom(const MEDCouplingMesh *other); MEDCOUPLING_EXPORT bool isEqualIfNotWhy(const MEDCouplingMesh *other, double prec, std::string& reason) const; MEDCOUPLING_EXPORT bool isEqualWithoutConsideringStr(const MEDCouplingMesh *other, double prec) const; - MEDCOUPLING_EXPORT void checkDeepEquivalWith(const MEDCouplingMesh *other, int cellCompPol, double prec, - DataArrayIdType *&cellCor, DataArrayIdType *&nodeCor) const; - MEDCOUPLING_EXPORT void checkDeepEquivalOnSameNodesWith(const MEDCouplingMesh *other, int cellCompPol, double prec, - DataArrayIdType *&cellCor) const; + MEDCOUPLING_EXPORT void checkDeepEquivalWith(const MEDCouplingMesh *other, int /*cellCompPol*/, double prec, + DataArrayIdType *& /*cellCor*/, DataArrayIdType *& /*nodeCor*/) const; + MEDCOUPLING_EXPORT void checkDeepEquivalOnSameNodesWith(const MEDCouplingMesh *other, int /*cellCompPol*/, double prec, + DataArrayIdType *& /*cellCor*/) const; MEDCOUPLING_EXPORT void checkConsistencyLight() const; - MEDCOUPLING_EXPORT void checkConsistency(double eps=1e-12) const; + MEDCOUPLING_EXPORT void checkConsistency(double /*eps*/=1e-12) const; MEDCOUPLING_EXPORT int getSpaceDimension() const; MEDCOUPLING_EXPORT void getCoordinatesOfNode(mcIdType nodeId, std::vector& coo) const; MEDCOUPLING_EXPORT std::string simpleRepr() const; MEDCOUPLING_EXPORT std::string advancedRepr() const; // tools MEDCOUPLING_EXPORT void getBoundingBox(double *bbox) const; - MEDCOUPLING_EXPORT MEDCouplingFieldDouble *getMeasureField(bool isAbs) const; - MEDCOUPLING_EXPORT MEDCouplingFieldDouble *getMeasureFieldOnNode(bool isAbs) const; - MEDCOUPLING_EXPORT mcIdType getCellContainingPoint(const double *pos, double eps) const; + MEDCOUPLING_EXPORT MEDCouplingFieldDouble *getMeasureField(bool /*isAbs*/) const; + MEDCOUPLING_EXPORT MEDCouplingFieldDouble *getMeasureFieldOnNode(bool /*isAbs*/) const; + MEDCOUPLING_EXPORT mcIdType getCellContainingPoint(const double *pos, double /*eps*/) const; MEDCOUPLING_EXPORT void getCellsContainingPoint(const double *pos, double eps, std::vector& elts) const; - MEDCOUPLING_EXPORT void rotate(const double *center, const double *vector, double angle); + MEDCOUPLING_EXPORT void rotate(const double * /*center*/, const double * /*vector*/, double /*angle*/); MEDCOUPLING_EXPORT void translate(const double *vector); MEDCOUPLING_EXPORT void scale(const double *point, double factor); - MEDCOUPLING_EXPORT MEDCouplingMesh *mergeMyselfWith(const MEDCouplingMesh *other) const; + MEDCOUPLING_EXPORT MEDCouplingMesh *mergeMyselfWith(const MEDCouplingMesh * /*other*/) const; MEDCOUPLING_EXPORT DataArrayDouble *getCoordinatesAndOwner() const; MEDCOUPLING_EXPORT DataArrayDouble *computeCellCenterOfMass() const; MEDCOUPLING_EXPORT DataArrayDouble *computeIsoBarycenterOfNodesPerCell() const; - MEDCOUPLING_EXPORT void renumberCells(const mcIdType *old2NewBg, bool check=true); + MEDCOUPLING_EXPORT void renumberCells(const mcIdType * /*old2NewBg*/, bool /*check*/=true); //some useful methods MEDCOUPLING_EXPORT void getNodeGridStructure(mcIdType *res) const; MEDCOUPLING_EXPORT std::vector getNodeGridStructure() const; MEDCouplingStructuredMesh *buildStructuredSubPart(const std::vector< std::pair >& cellPart) const; //serialisation-unserialization MEDCOUPLING_EXPORT void getTinySerializationInformation(std::vector& tinyInfoD, std::vector& tinyInfo, std::vector& littleStrings) const; - MEDCOUPLING_EXPORT void resizeForUnserialization(const std::vector& tinyInfo, DataArrayIdType *a1, DataArrayDouble *a2, std::vector& littleStrings) const; + MEDCOUPLING_EXPORT void resizeForUnserialization(const std::vector& /*tinyInfo*/, DataArrayIdType *a1, DataArrayDouble *a2, std::vector& /*littleStrings*/) const; MEDCOUPLING_EXPORT void serialize(DataArrayIdType *&a1, DataArrayDouble *&a2) const; - MEDCOUPLING_EXPORT void unserialization(const std::vector& tinyInfoD, const std::vector& tinyInfo, const DataArrayIdType *a1, DataArrayDouble *a2, + MEDCOUPLING_EXPORT void unserialization(const std::vector& tinyInfoD, const std::vector& tinyInfo, const DataArrayIdType * /*a1*/, DataArrayDouble * /*a2*/, const std::vector& littleStrings); MEDCOUPLING_EXPORT void reprQuickOverview(std::ostream& stream) const; MEDCOUPLING_EXPORT std::string getVTKFileExtension() const; @@ -106,7 +106,7 @@ namespace MEDCoupling MEDCouplingIMesh(); MEDCouplingIMesh(const MEDCouplingIMesh& other, bool deepCopy); ~MEDCouplingIMesh(); - void writeVTKLL(std::ostream& ofs, const std::string& cellData, const std::string& pointData, DataArrayByte *byteData) const; + void writeVTKLL(std::ostream& ofs, const std::string& cellData, const std::string& pointData, DataArrayByte * /*byteData*/) const; std::string getVTKDataSetType() const; bool isEqualWithoutConsideringStrInternal(const MEDCouplingMesh *other, double prec, std::string& reason) const; std::vector buildInfoOnComponents() const; diff --git a/src/MEDCoupling/MEDCouplingMappedExtrudedMesh.cxx b/src/MEDCoupling/MEDCouplingMappedExtrudedMesh.cxx index 45a7bc808..69bafba04 100644 --- a/src/MEDCoupling/MEDCouplingMappedExtrudedMesh.cxx +++ b/src/MEDCoupling/MEDCouplingMappedExtrudedMesh.cxx @@ -234,14 +234,14 @@ bool MEDCouplingMappedExtrudedMesh::isEqualWithoutConsideringStr(const MEDCoupli return true; } -void MEDCouplingMappedExtrudedMesh::checkDeepEquivalWith(const MEDCouplingMesh *other, int cellCompPol, double prec, - DataArrayIdType *&cellCor, DataArrayIdType *&nodeCor) const +void MEDCouplingMappedExtrudedMesh::checkDeepEquivalWith(const MEDCouplingMesh * /*other*/, int /*cellCompPol*/, double /*prec*/, + DataArrayIdType *& /*cellCor*/, DataArrayIdType *& /*nodeCor*/) const { throw INTERP_KERNEL::Exception("MEDCouplingMappedExtrudedMesh::checkDeepEquivalWith : not implemented yet !"); } -void MEDCouplingMappedExtrudedMesh::checkDeepEquivalOnSameNodesWith(const MEDCouplingMesh *other, int cellCompPol, double prec, - DataArrayIdType *&cellCor) const +void MEDCouplingMappedExtrudedMesh::checkDeepEquivalOnSameNodesWith(const MEDCouplingMesh * /*other*/, int /*cellCompPol*/, double /*prec*/, + DataArrayIdType *& /*cellCor*/) const { throw INTERP_KERNEL::Exception("MEDCouplingMappedExtrudedMesh::checkDeepEquivalOnSameNodesWith : not implemented yet !"); } @@ -405,7 +405,7 @@ void MEDCouplingMappedExtrudedMesh::checkConsistencyLight() const { } -void MEDCouplingMappedExtrudedMesh::checkConsistency(double eps) const +void MEDCouplingMappedExtrudedMesh::checkConsistency(double /*eps*/) const { checkConsistencyLight(); } @@ -440,7 +440,7 @@ void MEDCouplingMappedExtrudedMesh::updateTime() const updateTimeWith(*_mesh1D); } -void MEDCouplingMappedExtrudedMesh::renumberCells(const mcIdType *old2NewBg, bool check) +void MEDCouplingMappedExtrudedMesh::renumberCells(const mcIdType * /*old2NewBg*/, bool /*check*/) { throw INTERP_KERNEL::Exception("Functionality of renumbering cells unavailable for ExtrudedMesh"); } @@ -493,7 +493,7 @@ MEDCouplingFieldDouble *MEDCouplingMappedExtrudedMesh::getMeasureField(bool) con return ret.retn(); } -MEDCouplingFieldDouble *MEDCouplingMappedExtrudedMesh::getMeasureFieldOnNode(bool isAbs) const +MEDCouplingFieldDouble *MEDCouplingMappedExtrudedMesh::getMeasureFieldOnNode(bool /*isAbs*/) const { //not implemented yet return 0; @@ -504,12 +504,12 @@ MEDCouplingFieldDouble *MEDCouplingMappedExtrudedMesh::buildOrthogonalField() co throw INTERP_KERNEL::Exception("MEDCouplingMappedExtrudedMesh::buildOrthogonalField : This method has no sense for MEDCouplingMappedExtrudedMesh that is 3D !"); } -mcIdType MEDCouplingMappedExtrudedMesh::getCellContainingPoint(const double *pos, double eps) const +mcIdType MEDCouplingMappedExtrudedMesh::getCellContainingPoint(const double * /*pos*/, double /*eps*/) const { throw INTERP_KERNEL::Exception("MEDCouplingMappedExtrudedMesh::getCellContainingPoint : not implemented yet !"); } -void MEDCouplingMappedExtrudedMesh::getCellsContainingPoint(const double *pos, double eps, std::vector& elts) const +void MEDCouplingMappedExtrudedMesh::getCellsContainingPoint(const double * /*pos*/, double /*eps*/, std::vector& /*elts*/) const { throw INTERP_KERNEL::Exception("MEDCouplingMappedExtrudedMesh::getCellsContainingPoint : not implemented yet !"); } @@ -705,34 +705,34 @@ std::vector MEDCouplingMappedExtrudedMesh::getDistributionOfTypes() co throw INTERP_KERNEL::Exception("Not implemented yet !"); } -DataArrayIdType *MEDCouplingMappedExtrudedMesh::checkTypeConsistencyAndContig(const std::vector& code, const std::vector& idsPerType) const +DataArrayIdType *MEDCouplingMappedExtrudedMesh::checkTypeConsistencyAndContig(const std::vector& /*code*/, const std::vector& /*idsPerType*/) const { throw INTERP_KERNEL::Exception("Not implemented yet !"); } -void MEDCouplingMappedExtrudedMesh::splitProfilePerType(const DataArrayIdType *profile, std::vector& code, std::vector& idsInPflPerType, std::vector& idsPerType, bool smartPflKiller) const +void MEDCouplingMappedExtrudedMesh::splitProfilePerType(const DataArrayIdType * /*profile*/, std::vector& /*code*/, std::vector& /*idsInPflPerType*/, std::vector& /*idsPerType*/, bool /*smartPflKiller*/) const { throw INTERP_KERNEL::Exception("Not implemented yet !"); } -MEDCouplingMesh *MEDCouplingMappedExtrudedMesh::buildPart(const mcIdType *start, const mcIdType *end) const +MEDCouplingMesh *MEDCouplingMappedExtrudedMesh::buildPart(const mcIdType * /*start*/, const mcIdType * /*end*/) const { // not implemented yet ! return 0; } -MEDCouplingMesh *MEDCouplingMappedExtrudedMesh::buildPartAndReduceNodes(const mcIdType *start, const mcIdType *end, DataArrayIdType*& arr) const +MEDCouplingMesh *MEDCouplingMappedExtrudedMesh::buildPartAndReduceNodes(const mcIdType * /*start*/, const mcIdType * /*end*/, DataArrayIdType*& /*arr*/) const { // not implemented yet ! return 0; } -DataArrayIdType *MEDCouplingMappedExtrudedMesh::simplexize(int policy) +DataArrayIdType *MEDCouplingMappedExtrudedMesh::simplexize(int /*policy*/) { throw INTERP_KERNEL::Exception("MEDCouplingMappedExtrudedMesh::simplexize : unavailable for such a type of mesh : Extruded !"); } -MEDCouplingMesh *MEDCouplingMappedExtrudedMesh::mergeMyselfWith(const MEDCouplingMesh *other) const +MEDCouplingMesh *MEDCouplingMappedExtrudedMesh::mergeMyselfWith(const MEDCouplingMesh * /*other*/) const { // not implemented yet ! return 0; @@ -824,7 +824,7 @@ void MEDCouplingMappedExtrudedMesh::computeExtrusionAlg(const MEDCouplingUMesh * } } -void MEDCouplingMappedExtrudedMesh::getTinySerializationInformation(std::vector& tinyInfoD, std::vector& tinyInfo, std::vector& littleStrings) const +void MEDCouplingMappedExtrudedMesh::getTinySerializationInformation(std::vector& /*tinyInfoD*/, std::vector& tinyInfo, std::vector& littleStrings) const { std::vector tinyInfo1; std::vector ls1; @@ -893,7 +893,7 @@ void MEDCouplingMappedExtrudedMesh::serialize(DataArrayIdType *&a1, DataArrayDou a2_2->decrRef(); } -void MEDCouplingMappedExtrudedMesh::unserialization(const std::vector& tinyInfoD, const std::vector& tinyInfo, const DataArrayIdType *a1, DataArrayDouble *a2, const std::vector& littleStrings) +void MEDCouplingMappedExtrudedMesh::unserialization(const std::vector& /*tinyInfoD*/, const std::vector& tinyInfo, const DataArrayIdType *a1, DataArrayDouble *a2, const std::vector& littleStrings) { setName(littleStrings[littleStrings.size()-2]); setDescription(littleStrings.back()); diff --git a/src/MEDCoupling/MEDCouplingMemArray.cxx b/src/MEDCoupling/MEDCouplingMemArray.cxx index 1b5a457a8..4b7fd907d 100755 --- a/src/MEDCoupling/MEDCouplingMemArray.cxx +++ b/src/MEDCoupling/MEDCouplingMemArray.cxx @@ -101,7 +101,7 @@ void DataArrayDouble::findCommonTuplesAlg(const double *bbox, mcIdType nbNodes, } template -void DataArrayDouble::FindTupleIdsNearTuplesAlg(const BBTreePts& myTree, const double *pos, mcIdType nbOfTuples, double eps, +void DataArrayDouble::FindTupleIdsNearTuplesAlg(const BBTreePts& myTree, const double *pos, mcIdType nbOfTuples, double /*eps*/, DataArrayIdType *c, DataArrayIdType *cI) { for(mcIdType i=0;i -void DataArrayDouble::FindClosestTupleIdAlg(const BBTreePts& myTree, double dist, const double *pos, mcIdType nbOfTuples, const double *thisPt, mcIdType thisNbOfTuples, mcIdType *res) +void DataArrayDouble::FindClosestTupleIdAlg(const BBTreePts& myTree, double dist, const double *pos, mcIdType nbOfTuples, const double * /*thisPt*/, mcIdType /*thisNbOfTuples*/, mcIdType *res) { double distOpt(dist); const double *p(pos); @@ -3437,7 +3437,7 @@ bool DataArrayDouble::resizeForUnserialization(const std::vector& tiny /*! * Useless method for end user. Only for MPI/Corba/File serialsation for multi arrays class. */ -void DataArrayDouble::finishUnserialization(const std::vector& tinyInfoI, const std::vector& tinyInfoS) +void DataArrayDouble::finishUnserialization(const std::vector& /*tinyInfoI*/, const std::vector& tinyInfoS) { setName(tinyInfoS[0]); if(isAllocated()) diff --git a/src/MEDCoupling/MEDCouplingMemArray.hxx b/src/MEDCoupling/MEDCouplingMemArray.hxx index ba49d5084..36c270aa6 100755 --- a/src/MEDCoupling/MEDCouplingMemArray.hxx +++ b/src/MEDCoupling/MEDCouplingMemArray.hxx @@ -110,7 +110,7 @@ namespace MEDCoupling ~MemArray() { destroy(); } public: static void CPPDeallocator(void *pt, void *param); - static void CDeallocator(void *pt, void *param); + static void CDeallocator(void *pt, void * param); static void COffsetDeallocator(void *pt, void *param); private: static void DestroyPointer(T *pt, Deallocator dealloc, void *param); @@ -533,14 +533,14 @@ namespace MEDCoupling void getTinySerializationIntInformation(std::vector& tinyInfo) const; void getTinySerializationStrInformation(std::vector& tinyInfo) const; bool resizeForUnserialization(const std::vector& tinyInfoI); - void finishUnserialization(const std::vector& tinyInfoI, const std::vector& tinyInfoS); + void finishUnserialization(const std::vector& /*tinyInfoI*/, const std::vector& tinyInfoS); public: template void findCommonTuplesAlg(const double *bbox, mcIdType nbNodes, mcIdType limitNodeId, double prec, DataArrayIdType *c, DataArrayIdType *cI) const; template - static void FindClosestTupleIdAlg(const BBTreePts& myTree, double dist, const double *pos, mcIdType nbOfTuples, const double *thisPt, mcIdType thisNbOfTuples, mcIdType *res); + static void FindClosestTupleIdAlg(const BBTreePts& myTree, double dist, const double *pos, mcIdType nbOfTuples, const double * /*thisPt*/, mcIdType /*thisNbOfTuples*/, mcIdType *res); template - static void FindTupleIdsNearTuplesAlg(const BBTreePts& myTree, const double *pos, mcIdType nbOfTuples, double eps, + static void FindTupleIdsNearTuplesAlg(const BBTreePts& myTree, const double *pos, mcIdType nbOfTuples, double /*eps*/, DataArrayIdType *c, DataArrayIdType *cI); private: ~DataArrayDouble() { } @@ -858,7 +858,7 @@ namespace MEDCoupling DataArrayChar *buildEmptySpecializedDAChar() const; DataArrayAsciiCharIterator *iterator(); DataArrayAsciiChar *deepCopy() const; - DataArrayAsciiChar *copySorted(bool asc=true) const override { throw INTERP_KERNEL::Exception("DataArrayAsciiChar::copySorted : not implemented for DataArrayByte"); } + DataArrayAsciiChar *copySorted(bool /*asc*/=true) const override { throw INTERP_KERNEL::Exception("DataArrayAsciiChar::copySorted : not implemented for DataArrayByte"); } DataArrayAsciiChar *performCopyOrIncrRef(bool deepCopy) const; DataArrayAsciiChar *buildNewEmptyInstance() const { return DataArrayAsciiChar::New(); } char asciiCharValue() const; diff --git a/src/MEDCoupling/MEDCouplingMemArray.txx b/src/MEDCoupling/MEDCouplingMemArray.txx index 25148688f..dbccfc92a 100755 --- a/src/MEDCoupling/MEDCouplingMemArray.txx +++ b/src/MEDCoupling/MEDCouplingMemArray.txx @@ -3490,7 +3490,7 @@ struct NotInRange } template - struct ImplReprTraits { static void SetPrecision(std::ostream& oss) { } }; + struct ImplReprTraits { static void SetPrecision(std::ostream& /*oss*/) { } }; template<> struct ImplReprTraits { static void SetPrecision(std::ostream& oss) { oss.precision(17); } }; diff --git a/src/MEDCoupling/MEDCouplingMesh.cxx b/src/MEDCoupling/MEDCouplingMesh.cxx index fd1ef1171..4c8c83a59 100755 --- a/src/MEDCoupling/MEDCouplingMesh.cxx +++ b/src/MEDCoupling/MEDCouplingMesh.cxx @@ -56,7 +56,7 @@ bool MEDCouplingMesh::isStructured() const return getType()==CARTESIAN; } -bool MEDCouplingMesh::isEqualIfNotWhy(const MEDCouplingMesh *other, double prec, std::string& reason) const +bool MEDCouplingMesh::isEqualIfNotWhy(const MEDCouplingMesh *other, double /*prec*/, std::string& reason) const { if(!other) throw INTERP_KERNEL::Exception("MEDCouplingMesh::isEqualIfNotWhy : other instance is NULL !"); @@ -224,7 +224,7 @@ DataArrayIdType *MEDCouplingMesh::getCellIdsFullyIncludedInNodeIds(const mcIdTyp /*! * This method checks fastly that \a this and \a other are equal. All common checks are done here. */ -void MEDCouplingMesh::checkFastEquivalWith(const MEDCouplingMesh *other, double prec) const +void MEDCouplingMesh::checkFastEquivalWith(const MEDCouplingMesh *other, double /*prec*/) const { if(!other) throw INTERP_KERNEL::Exception("MEDCouplingMesh::checkFastEquivalWith : input mesh is null !"); @@ -279,7 +279,7 @@ MEDCouplingMesh *MEDCouplingMesh::buildPartRange(mcIdType beginCellIds, mcIdType * * \sa MEDCouplingMesh::buildPartAndReduceNodes */ -MEDCouplingMesh *MEDCouplingMesh::buildPartRangeAndReduceNodes(mcIdType beginCellIds, mcIdType endCellIds, mcIdType stepCellIds, mcIdType& beginOut, mcIdType& endOut, mcIdType& stepOut, DataArrayIdType*& arr) const +MEDCouplingMesh *MEDCouplingMesh::buildPartRangeAndReduceNodes(mcIdType beginCellIds, mcIdType endCellIds, mcIdType stepCellIds, mcIdType& /*beginOut*/, mcIdType& /*endOut*/, mcIdType& /*stepOut*/, DataArrayIdType*& arr) const { MCAuto cellIds=DataArrayIdType::Range(beginCellIds,endCellIds,stepCellIds); return buildPartAndReduceNodes(cellIds->begin(),cellIds->end(),arr); diff --git a/src/MEDCoupling/MEDCouplingPartDefinition.cxx b/src/MEDCoupling/MEDCouplingPartDefinition.cxx index 55c3422d7..fa9304642 100644 --- a/src/MEDCoupling/MEDCouplingPartDefinition.cxx +++ b/src/MEDCoupling/MEDCouplingPartDefinition.cxx @@ -187,7 +187,7 @@ PartDefinition *DataArrayPartDefinition::tryToSimplify() const } } -void DataArrayPartDefinition::serialize(std::vector& tinyInt, std::vector< MCAuto >& bigArraysI) const +void DataArrayPartDefinition::serialize(std::vector& /*tinyInt*/, std::vector< MCAuto >& bigArraysI) const { bigArraysI.push_back(_arr); } @@ -346,7 +346,7 @@ PartDefinition *SlicePartDefinition::tryToSimplify() const return ret; } -void SlicePartDefinition::serialize(std::vector& tinyInt, std::vector< MCAuto >& bigArraysI) const +void SlicePartDefinition::serialize(std::vector& tinyInt, std::vector< MCAuto >& /*bigArraysI*/) const { tinyInt.push_back(_start); tinyInt.push_back(_stop); diff --git a/src/MEDCoupling/MEDCouplingPointSet.cxx b/src/MEDCoupling/MEDCouplingPointSet.cxx index 80be81941..a80603925 100755 --- a/src/MEDCoupling/MEDCouplingPointSet.cxx +++ b/src/MEDCoupling/MEDCouplingPointSet.cxx @@ -894,7 +894,7 @@ void MEDCouplingPointSet::getTinySerializationInformation(std::vector& t /*! * Third and final step of serialization process. */ -void MEDCouplingPointSet::serialize(DataArrayIdType *&a1, DataArrayDouble *&a2) const +void MEDCouplingPointSet::serialize(DataArrayIdType *& /*a1*/, DataArrayDouble *&a2) const { if(_coords) { @@ -909,7 +909,7 @@ void MEDCouplingPointSet::serialize(DataArrayIdType *&a1, DataArrayDouble *&a2) * Second step of serialization process. * @param tinyInfo must be equal to the result given by getTinySerializationInformation method. */ -void MEDCouplingPointSet::resizeForUnserialization(const std::vector& tinyInfo, DataArrayIdType *a1, DataArrayDouble *a2, std::vector& littleStrings) const +void MEDCouplingPointSet::resizeForUnserialization(const std::vector& tinyInfo, DataArrayIdType * /*a1*/, DataArrayDouble *a2, std::vector& littleStrings) const { if(tinyInfo[2]>=0 && tinyInfo[1]>=1) { @@ -926,7 +926,7 @@ void MEDCouplingPointSet::resizeForUnserialization(const std::vector& * Second and final unserialization process. * @param tinyInfo must be equal to the result given by getTinySerializationInformation method. */ -void MEDCouplingPointSet::unserialization(const std::vector& tinyInfoD, const std::vector& tinyInfo, const DataArrayIdType *a1, DataArrayDouble *a2, const std::vector& littleStrings) +void MEDCouplingPointSet::unserialization(const std::vector& tinyInfoD, const std::vector& tinyInfo, const DataArrayIdType * /*a1*/, DataArrayDouble *a2, const std::vector& littleStrings) { if(tinyInfo[2]>=0 && tinyInfo[1]>=1) { @@ -1116,7 +1116,7 @@ MEDCouplingMesh *MEDCouplingPointSet::buildPartRange(mcIdType beginCellIds, mcId * * \sa MEDCouplingUMesh::buildPartOfMySelfSlice */ -MEDCouplingMesh *MEDCouplingPointSet::buildPartRangeAndReduceNodes(mcIdType beginCellIds, mcIdType endCellIds, mcIdType stepCellIds, mcIdType& beginOut, mcIdType& endOut, mcIdType& stepOut, DataArrayIdType*& arr) const +MEDCouplingMesh *MEDCouplingPointSet::buildPartRangeAndReduceNodes(mcIdType beginCellIds, mcIdType endCellIds, mcIdType stepCellIds, mcIdType& /*beginOut*/, mcIdType& /*endOut*/, mcIdType& /*stepOut*/, DataArrayIdType*& arr) const { MCAuto ret(buildPartOfMySelfSlice(beginCellIds,endCellIds,stepCellIds,true)); arr=ret->zipCoordsTraducer(); @@ -1475,7 +1475,7 @@ void MEDCouplingPointSet::checkDeepEquivalWith(const MEDCouplingMesh *other, int * \ref py_mcumesh_checkDeepEquivalWith "Here is a Python example". * \endif */ -void MEDCouplingPointSet::checkDeepEquivalOnSameNodesWith(const MEDCouplingMesh *other, int cellCompPol, double prec, +void MEDCouplingPointSet::checkDeepEquivalOnSameNodesWith(const MEDCouplingMesh *other, int cellCompPol, double /*prec*/, DataArrayIdType *&cellCor) const { if(!other) diff --git a/src/MEDCoupling/MEDCouplingRefCountObject.cxx b/src/MEDCoupling/MEDCouplingRefCountObject.cxx index a0c28d561..768e9dbf6 100644 --- a/src/MEDCoupling/MEDCouplingRefCountObject.cxx +++ b/src/MEDCoupling/MEDCouplingRefCountObject.cxx @@ -269,7 +269,7 @@ RefCountObjectOnly::RefCountObjectOnly():_cnt(1) { } -RefCountObjectOnly::RefCountObjectOnly(const RefCountObjectOnly& other):_cnt(1) +RefCountObjectOnly::RefCountObjectOnly(const RefCountObjectOnly& /*other*/):_cnt(1) { } @@ -299,7 +299,7 @@ RefCountObjectOnly::~RefCountObjectOnly() * Do nothing here ! It is not a bug ( I hope :) ) because all subclasses that * copies using operator= should not copy the ref counter of \a other ! */ -RefCountObjectOnly& RefCountObjectOnly::operator=(const RefCountObjectOnly& other) +RefCountObjectOnly& RefCountObjectOnly::operator=(const RefCountObjectOnly& /*other*/) { return *this; } diff --git a/src/MEDCoupling/MEDCouplingRefCountObject.hxx b/src/MEDCoupling/MEDCouplingRefCountObject.hxx index 21014123e..475ab0beb 100644 --- a/src/MEDCoupling/MEDCouplingRefCountObject.hxx +++ b/src/MEDCoupling/MEDCouplingRefCountObject.hxx @@ -90,12 +90,12 @@ namespace MEDCoupling { protected: RefCountObjectOnly(); - RefCountObjectOnly(const RefCountObjectOnly& other); + RefCountObjectOnly(const RefCountObjectOnly& /*other*/); public: bool decrRef() const; void incrRef() const; int getRCValue() const; - RefCountObjectOnly& operator=(const RefCountObjectOnly& other); + RefCountObjectOnly& operator=(const RefCountObjectOnly& /*other*/); protected: virtual ~RefCountObjectOnly(); private: diff --git a/src/MEDCoupling/MEDCouplingRemapper.cxx b/src/MEDCoupling/MEDCouplingRemapper.cxx index 822101733..f0fd8df51 100755 --- a/src/MEDCoupling/MEDCouplingRemapper.cxx +++ b/src/MEDCoupling/MEDCouplingRemapper.cxx @@ -1321,7 +1321,7 @@ void MEDCouplingRemapper::ComputeColSumAndRowSum(const std::vector >& m1D, const std::vector< std::map >& m2D, - const mcIdType *corrCellIdSrc, mcIdType nbOf2DCellsSrc, mcIdType nbOf1DCellsSrc, + const mcIdType *corrCellIdSrc, mcIdType nbOf2DCellsSrc, mcIdType /*nbOf1DCellsSrc*/, const mcIdType *corrCellIdTrg) { mcIdType nbOf2DCellsTrg=ToIdType(m2D.size()); diff --git a/src/MEDCoupling/MEDCouplingStructuredMesh.cxx b/src/MEDCoupling/MEDCouplingStructuredMesh.cxx index 3570a3b00..4a81b7376 100755 --- a/src/MEDCoupling/MEDCouplingStructuredMesh.cxx +++ b/src/MEDCoupling/MEDCouplingStructuredMesh.cxx @@ -33,7 +33,7 @@ MEDCouplingStructuredMesh::MEDCouplingStructuredMesh() { } -MEDCouplingStructuredMesh::MEDCouplingStructuredMesh(const MEDCouplingStructuredMesh& other, bool deepCpy):MEDCouplingMesh(other) +MEDCouplingStructuredMesh::MEDCouplingStructuredMesh(const MEDCouplingStructuredMesh& other, bool /*deepCpy*/):MEDCouplingMesh(other) { } @@ -56,7 +56,7 @@ bool MEDCouplingStructuredMesh::isEqualIfNotWhy(const MEDCouplingMesh *other, do return MEDCouplingMesh::isEqualIfNotWhy(other,prec,reason); } -INTERP_KERNEL::NormalizedCellType MEDCouplingStructuredMesh::getTypeOfCell(mcIdType cellId) const +INTERP_KERNEL::NormalizedCellType MEDCouplingStructuredMesh::getTypeOfCell(mcIdType /*cellId*/) const { return GetGeoTypeGivenMeshDimension(getMeshDimension()); } @@ -440,7 +440,7 @@ MEDCouplingMesh *MEDCouplingStructuredMesh::buildPartAndReduceNodes(const mcIdTy } } -DataArrayIdType *MEDCouplingStructuredMesh::simplexize(int policy) +DataArrayIdType *MEDCouplingStructuredMesh::simplexize(int /*policy*/) { throw INTERP_KERNEL::Exception("MEDCouplingStructuredMesh::simplexize : not available for Cartesian mesh !"); } diff --git a/src/MEDCoupling/MEDCouplingStructuredMesh.hxx b/src/MEDCoupling/MEDCouplingStructuredMesh.hxx index 737fd416f..0d845a671 100644 --- a/src/MEDCoupling/MEDCouplingStructuredMesh.hxx +++ b/src/MEDCoupling/MEDCouplingStructuredMesh.hxx @@ -31,7 +31,7 @@ namespace MEDCoupling class MEDCouplingStructuredMesh : public MEDCouplingMesh { public: - MEDCOUPLING_EXPORT INTERP_KERNEL::NormalizedCellType getTypeOfCell(mcIdType cellId) const; + MEDCOUPLING_EXPORT INTERP_KERNEL::NormalizedCellType getTypeOfCell(mcIdType /*cellId*/) const; MEDCOUPLING_EXPORT std::set getAllGeoTypes() const; MEDCOUPLING_EXPORT mcIdType getNumberOfCellsWithType(INTERP_KERNEL::NormalizedCellType type) const; MEDCOUPLING_EXPORT DataArrayIdType *giveCellsWithType(INTERP_KERNEL::NormalizedCellType type) const; @@ -54,7 +54,7 @@ namespace MEDCoupling MEDCOUPLING_EXPORT MEDCouplingUMesh *buildUnstructured() const; MEDCOUPLING_EXPORT MEDCouplingMesh *buildPart(const mcIdType *start, const mcIdType *end) const; MEDCOUPLING_EXPORT MEDCouplingMesh *buildPartAndReduceNodes(const mcIdType *start, const mcIdType *end, DataArrayIdType*& arr) const; - MEDCOUPLING_EXPORT DataArrayIdType *simplexize(int policy); + MEDCOUPLING_EXPORT DataArrayIdType *simplexize(int /*policy*/); MEDCOUPLING_EXPORT MEDCouplingFieldDouble *buildOrthogonalField() const; MEDCOUPLING_EXPORT void getReverseNodalConnectivity(DataArrayIdType *revNodal, DataArrayIdType *revNodalIndx) const; //some useful methods @@ -117,7 +117,7 @@ namespace MEDCoupling static int ZipNodeStructure(const mcIdType *nodeStBg, const mcIdType *nodeStEnd, mcIdType zipNodeSt[3]); protected: MEDCOUPLING_EXPORT MEDCouplingStructuredMesh(); - MEDCOUPLING_EXPORT MEDCouplingStructuredMesh(const MEDCouplingStructuredMesh& other, bool deepCpy); + MEDCOUPLING_EXPORT MEDCouplingStructuredMesh(const MEDCouplingStructuredMesh& other, bool /*deepCpy*/); MEDCOUPLING_EXPORT ~MEDCouplingStructuredMesh(); }; } diff --git a/src/MEDCoupling/MEDCouplingTimeDiscretization.cxx b/src/MEDCoupling/MEDCouplingTimeDiscretization.cxx index 6d19818f2..5dc6547ab 100644 --- a/src/MEDCoupling/MEDCouplingTimeDiscretization.cxx +++ b/src/MEDCoupling/MEDCouplingTimeDiscretization.cxx @@ -830,7 +830,7 @@ std::string MEDCouplingNoTimeLabel::getStringRepr() const return stream.str(); } -void MEDCouplingNoTimeLabel::synchronizeTimeWith(const MEDCouplingMesh *mesh) +void MEDCouplingNoTimeLabel::synchronizeTimeWith(const MEDCouplingMesh * /*mesh*/) { throw INTERP_KERNEL::Exception("MEDCouplingNoTimeLabel::synchronizeTimeWith : impossible to synchronize time with a MEDCouplingMesh because the time discretization is incompatible with it !"); } @@ -1093,87 +1093,87 @@ MEDCouplingTimeDiscretization *MEDCouplingNoTimeLabel::performCopyOrIncrRef(bool return new MEDCouplingNoTimeLabel(*this,deepCopy); } -void MEDCouplingNoTimeLabel::checkTimePresence(double time) const +void MEDCouplingNoTimeLabel::checkTimePresence(double /*time*/) const { throw INTERP_KERNEL::Exception(EXCEPTION_MSG); } -std::vector< const DataArrayDouble *> MEDCouplingNoTimeLabel::getArraysForTime(double time) const +std::vector< const DataArrayDouble *> MEDCouplingNoTimeLabel::getArraysForTime(double /*time*/) const { throw INTERP_KERNEL::Exception(EXCEPTION_MSG); } -void MEDCouplingNoTimeLabel::getValueForTime(double time, const std::vector& vals, double *res) const +void MEDCouplingNoTimeLabel::getValueForTime(double /*time*/, const std::vector& /*vals*/, double * /*res*/) const { throw INTERP_KERNEL::Exception(EXCEPTION_MSG); } -bool MEDCouplingNoTimeLabel::isBefore(const MEDCouplingTimeDiscretization *other) const +bool MEDCouplingNoTimeLabel::isBefore(const MEDCouplingTimeDiscretization * /*other*/) const { throw INTERP_KERNEL::Exception(EXCEPTION_MSG); } -bool MEDCouplingNoTimeLabel::isStrictlyBefore(const MEDCouplingTimeDiscretization *other) const +bool MEDCouplingNoTimeLabel::isStrictlyBefore(const MEDCouplingTimeDiscretization * /*other*/) const { throw INTERP_KERNEL::Exception(EXCEPTION_MSG); } -double MEDCouplingNoTimeLabel::getStartTime(int& iteration, int& order) const +double MEDCouplingNoTimeLabel::getStartTime(int& /*iteration*/, int& /*order*/) const { throw INTERP_KERNEL::Exception(EXCEPTION_MSG); } -double MEDCouplingNoTimeLabel::getEndTime(int& iteration, int& order) const +double MEDCouplingNoTimeLabel::getEndTime(int& /*iteration*/, int& /*order*/) const { throw INTERP_KERNEL::Exception(EXCEPTION_MSG); } -void MEDCouplingNoTimeLabel::setStartIteration(int it) +void MEDCouplingNoTimeLabel::setStartIteration(int /*it*/) { throw INTERP_KERNEL::Exception(EXCEPTION_MSG); } -void MEDCouplingNoTimeLabel::setEndIteration(int it) +void MEDCouplingNoTimeLabel::setEndIteration(int /*it*/) { throw INTERP_KERNEL::Exception(EXCEPTION_MSG); } -void MEDCouplingNoTimeLabel::setStartOrder(int order) +void MEDCouplingNoTimeLabel::setStartOrder(int /*order*/) { throw INTERP_KERNEL::Exception(EXCEPTION_MSG); } -void MEDCouplingNoTimeLabel::setEndOrder(int order) +void MEDCouplingNoTimeLabel::setEndOrder(int /*order*/) { throw INTERP_KERNEL::Exception(EXCEPTION_MSG); } -void MEDCouplingNoTimeLabel::setStartTimeValue(double time) +void MEDCouplingNoTimeLabel::setStartTimeValue(double /*time*/) { throw INTERP_KERNEL::Exception(EXCEPTION_MSG); } -void MEDCouplingNoTimeLabel::setEndTimeValue(double time) +void MEDCouplingNoTimeLabel::setEndTimeValue(double /*time*/) { throw INTERP_KERNEL::Exception(EXCEPTION_MSG); } -void MEDCouplingNoTimeLabel::setStartTime(double time, int iteration, int order) +void MEDCouplingNoTimeLabel::setStartTime(double /*time*/, int /*iteration*/, int /*order*/) { throw INTERP_KERNEL::Exception(EXCEPTION_MSG); } -void MEDCouplingNoTimeLabel::setEndTime(double time, int iteration, int order) +void MEDCouplingNoTimeLabel::setEndTime(double /*time*/, int /*iteration*/, int /*order*/) { throw INTERP_KERNEL::Exception(EXCEPTION_MSG); } -void MEDCouplingNoTimeLabel::getValueOnTime(mcIdType eltId, double time, double *value) const +void MEDCouplingNoTimeLabel::getValueOnTime(mcIdType /*eltId*/, double /*time*/, double * /*value*/) const { throw INTERP_KERNEL::Exception(EXCEPTION_MSG); } -void MEDCouplingNoTimeLabel::getValueOnDiscTime(mcIdType eltId, int iteration, int order, double *value) const +void MEDCouplingNoTimeLabel::getValueOnDiscTime(mcIdType /*eltId*/, int /*iteration*/, int /*order*/, double * /*value*/) const { throw INTERP_KERNEL::Exception(EXCEPTION_MSG); } @@ -1198,7 +1198,7 @@ void MEDCouplingNoTimeLabel::getTinySerializationDbleInformation2(std::vector& tinyInfoI, const std::vector& tinyInfoD) +void MEDCouplingNoTimeLabel::finishUnserialization2(const std::vector& /*tinyInfoI*/, const std::vector& tinyInfoD) { _time_tolerance=tinyInfoD[0]; } @@ -1588,7 +1588,7 @@ std::vector< const DataArrayDouble *> MEDCouplingWithTimeStep::getArraysForTime( throw INTERP_KERNEL::Exception(EXCEPTION_MSG); } -void MEDCouplingWithTimeStep::getValueForTime(double time, const std::vector& vals, double *res) const +void MEDCouplingWithTimeStep::getValueForTime(double /*time*/, const std::vector& vals, double *res) const { std::copy(vals.begin(),vals.end(),res); } @@ -1736,7 +1736,7 @@ std::vector< const DataArrayDouble *> MEDCouplingConstOnTimeInterval::getArraysF throw INTERP_KERNEL::Exception(EXCEPTION_MSG); } -void MEDCouplingConstOnTimeInterval::getValueForTime(double time, const std::vector& vals, double *res) const +void MEDCouplingConstOnTimeInterval::getValueForTime(double /*time*/, const std::vector& vals, double *res) const { std::copy(vals.begin(),vals.end(),res); } @@ -1823,7 +1823,7 @@ void MEDCouplingConstOnTimeInterval::getValueOnTime(mcIdType eltId, double time, throw INTERP_KERNEL::Exception(EXCEPTION_MSG); } -void MEDCouplingConstOnTimeInterval::getValueOnDiscTime(mcIdType eltId, int iteration, int order, double *value) const +void MEDCouplingConstOnTimeInterval::getValueOnDiscTime(mcIdType eltId, int iteration, int /*order*/, double *value) const { if(iteration>=_start.getIteration() && iteration<=_end.getIteration()) if(_array) diff --git a/src/MEDCoupling/MEDCouplingTimeDiscretization.hxx b/src/MEDCoupling/MEDCouplingTimeDiscretization.hxx index 21ca1b23a..9f31a4a0f 100644 --- a/src/MEDCoupling/MEDCouplingTimeDiscretization.hxx +++ b/src/MEDCoupling/MEDCouplingTimeDiscretization.hxx @@ -75,7 +75,7 @@ namespace MEDCoupling MEDCOUPLING_EXPORT virtual void setEndTimeValue(double time) = 0; MEDCOUPLING_EXPORT virtual void setEndTime(double time, int iteration, int order) = 0; - MEDCOUPLING_EXPORT virtual void setEndArray(typename Traits::ArrayType *array, TimeLabel *owner); + MEDCOUPLING_EXPORT virtual void setEndArray(typename Traits::ArrayType * array, TimeLabel * owner); MEDCOUPLING_EXPORT virtual void setArrays(const std::vector< typename Traits::ArrayType *>& arrays, TimeLabel *owner); MEDCOUPLING_EXPORT virtual const typename Traits::ArrayType *getEndArray() const; MEDCOUPLING_EXPORT virtual typename Traits::ArrayType *getEndArray(); @@ -272,7 +272,7 @@ namespace MEDCoupling MEDCOUPLING_EXPORT std::string getStringRepr() const; MEDCOUPLING_EXPORT std::string getClassName() const override { return std::string("MEDCouplingNoTimeLabel"); } MEDCOUPLING_EXPORT TypeOfTimeDiscretization getEnum() const { return DISCRETIZATION; } - MEDCOUPLING_EXPORT void synchronizeTimeWith(const MEDCouplingMesh *mesh); + MEDCOUPLING_EXPORT void synchronizeTimeWith(const MEDCouplingMesh * /*mesh*/); MEDCOUPLING_EXPORT MEDCouplingTimeDiscretization *aggregate(const MEDCouplingTimeDiscretization *other) const; MEDCOUPLING_EXPORT MEDCouplingTimeDiscretization *aggregate(const std::vector& other) const; MEDCOUPLING_EXPORT MEDCouplingTimeDiscretization *meld(const MEDCouplingTimeDiscretization *other) const; @@ -299,26 +299,26 @@ namespace MEDCoupling MEDCOUPLING_EXPORT bool areCompatibleForMeld(const MEDCouplingTimeDiscretization *other) const; MEDCOUPLING_EXPORT MEDCouplingTimeDiscretization *performCopyOrIncrRef(bool deepCopy) const; MEDCOUPLING_EXPORT void checkNoTimePresence() const { } - MEDCOUPLING_EXPORT void checkTimePresence(double time) const; - MEDCOUPLING_EXPORT std::vector< const DataArrayDouble *> getArraysForTime(double time) const; - MEDCOUPLING_EXPORT void getValueForTime(double time, const std::vector& vals, double *res) const; - MEDCOUPLING_EXPORT bool isBefore(const MEDCouplingTimeDiscretization *other) const; - MEDCOUPLING_EXPORT bool isStrictlyBefore(const MEDCouplingTimeDiscretization *other) const; - MEDCOUPLING_EXPORT double getStartTime(int& iteration, int& order) const; - MEDCOUPLING_EXPORT double getEndTime(int& iteration, int& order) const; - MEDCOUPLING_EXPORT void setStartIteration(int it); - MEDCOUPLING_EXPORT void setEndIteration(int it); - MEDCOUPLING_EXPORT void setStartOrder(int order); - MEDCOUPLING_EXPORT void setEndOrder(int order); - MEDCOUPLING_EXPORT void setStartTimeValue(double time); - MEDCOUPLING_EXPORT void setEndTimeValue(double time); - MEDCOUPLING_EXPORT void setStartTime(double time, int iteration, int order); - MEDCOUPLING_EXPORT void setEndTime(double time, int iteration, int order); - MEDCOUPLING_EXPORT void getValueOnTime(mcIdType eltId, double time, double *value) const; - MEDCOUPLING_EXPORT void getValueOnDiscTime(mcIdType eltId, int iteration, int order, double *value) const; + MEDCOUPLING_EXPORT void checkTimePresence(double /*time*/) const; + MEDCOUPLING_EXPORT std::vector< const DataArrayDouble *> getArraysForTime(double /*time*/) const; + MEDCOUPLING_EXPORT void getValueForTime(double /*time*/, const std::vector& /*vals*/, double * /*res*/) const; + MEDCOUPLING_EXPORT bool isBefore(const MEDCouplingTimeDiscretization * /*other*/) const; + MEDCOUPLING_EXPORT bool isStrictlyBefore(const MEDCouplingTimeDiscretization * /*other*/) const; + MEDCOUPLING_EXPORT double getStartTime(int& /*iteration*/, int& /*order*/) const; + MEDCOUPLING_EXPORT double getEndTime(int& /*iteration*/, int& /*order*/) const; + MEDCOUPLING_EXPORT void setStartIteration(int /*it*/); + MEDCOUPLING_EXPORT void setEndIteration(int /*it*/); + MEDCOUPLING_EXPORT void setStartOrder(int /*order*/); + MEDCOUPLING_EXPORT void setEndOrder(int /*order*/); + MEDCOUPLING_EXPORT void setStartTimeValue(double /*time*/); + MEDCOUPLING_EXPORT void setEndTimeValue(double /*time*/); + MEDCOUPLING_EXPORT void setStartTime(double /*time*/, int /*iteration*/, int /*order*/); + MEDCOUPLING_EXPORT void setEndTime(double /*time*/, int /*iteration*/, int /*order*/); + MEDCOUPLING_EXPORT void getValueOnTime(mcIdType /*eltId*/, double /*time*/, double * /*value*/) const; + MEDCOUPLING_EXPORT void getValueOnDiscTime(mcIdType /*eltId*/, int /*iteration*/, int /*order*/, double * /*value*/) const; MEDCOUPLING_EXPORT void getTinySerializationIntInformation2(std::vector& tinyInfo) const; MEDCOUPLING_EXPORT void getTinySerializationDbleInformation2(std::vector& tinyInfo) const; - MEDCOUPLING_EXPORT void finishUnserialization2(const std::vector& tinyInfoI, const std::vector& tinyInfoD); + MEDCOUPLING_EXPORT void finishUnserialization2(const std::vector& /*tinyInfoI*/, const std::vector& tinyInfoD); public: static const TypeOfTimeDiscretization DISCRETIZATION=NO_TIME; MEDCOUPLING_EXPORT static const char REPR[]; @@ -381,7 +381,7 @@ namespace MEDCoupling MEDCOUPLING_EXPORT void setStartTimeValue(double time) { _tk.setTimeValue(time); } MEDCOUPLING_EXPORT void setEndTimeValue(double time) { _tk.setTimeValue(time); } MEDCOUPLING_EXPORT std::vector< const DataArrayDouble *> getArraysForTime(double time) const; - MEDCOUPLING_EXPORT void getValueForTime(double time, const std::vector& vals, double *res) const; + MEDCOUPLING_EXPORT void getValueForTime(double /*time*/, const std::vector& vals, double *res) const; MEDCOUPLING_EXPORT void getValueOnTime(mcIdType eltId, double time, double *value) const; MEDCOUPLING_EXPORT void getValueOnDiscTime(mcIdType eltId, int iteration, int order, double *value) const; public: @@ -416,9 +416,9 @@ namespace MEDCoupling MEDCOUPLING_EXPORT bool isEqualIfNotWhy(const MEDCouplingTimeDiscretizationTemplate *other, double prec, std::string& reason) const; MEDCOUPLING_EXPORT bool isEqualWithoutConsideringStr(const MEDCouplingTimeDiscretizationTemplate *other, double prec) const; MEDCOUPLING_EXPORT std::vector< const DataArrayDouble *> getArraysForTime(double time) const; - MEDCOUPLING_EXPORT void getValueForTime(double time, const std::vector& vals, double *res) const; + MEDCOUPLING_EXPORT void getValueForTime(double /*time*/, const std::vector& vals, double *res) const; MEDCOUPLING_EXPORT void getValueOnTime(mcIdType eltId, double time, double *value) const; - MEDCOUPLING_EXPORT void getValueOnDiscTime(mcIdType eltId, int iteration, int order, double *value) const; + MEDCOUPLING_EXPORT void getValueOnDiscTime(mcIdType eltId, int iteration, int /*order*/, double *value) const; MEDCOUPLING_EXPORT TypeOfTimeDiscretization getEnum() const { return DISCRETIZATION; } MEDCOUPLING_EXPORT void synchronizeTimeWith(const MEDCouplingMesh *mesh); MEDCOUPLING_EXPORT std::string getStringRepr() const; diff --git a/src/MEDCoupling/MEDCouplingTimeLabel.cxx b/src/MEDCoupling/MEDCouplingTimeLabel.cxx index 9933e4d94..a6e3c70e5 100644 --- a/src/MEDCoupling/MEDCouplingTimeLabel.cxx +++ b/src/MEDCoupling/MEDCouplingTimeLabel.cxx @@ -36,7 +36,7 @@ TimeLabel::~TimeLabel() { } -TimeLabel& TimeLabel::operator=(const TimeLabel& other) +TimeLabel& TimeLabel::operator=(const TimeLabel& /*other*/) { _time=GLOBAL_TIME++; return *this; diff --git a/src/MEDCoupling/MEDCouplingTimeLabel.hxx b/src/MEDCoupling/MEDCouplingTimeLabel.hxx index 3da7bef0f..0ff004adb 100644 --- a/src/MEDCoupling/MEDCouplingTimeLabel.hxx +++ b/src/MEDCoupling/MEDCouplingTimeLabel.hxx @@ -36,7 +36,7 @@ namespace MEDCoupling { public: MEDCOUPLING_EXPORT TimeLabel(const TimeLabel& other) = default; - MEDCOUPLING_EXPORT TimeLabel& operator=(const TimeLabel& other); + MEDCOUPLING_EXPORT TimeLabel& operator=(const TimeLabel& /*other*/); //! This method should be called when write access has been done on this. MEDCOUPLING_EXPORT void declareAsNew() const; //! This method should be called on high level classes as Field or Mesh to take into account modifications done in aggregates objects. diff --git a/src/MEDCoupling/MEDCouplingUMesh.cxx b/src/MEDCoupling/MEDCouplingUMesh.cxx index c22552bae..3e0f0f0ab 100755 --- a/src/MEDCoupling/MEDCouplingUMesh.cxx +++ b/src/MEDCoupling/MEDCouplingUMesh.cxx @@ -222,7 +222,7 @@ void MEDCouplingUMesh::checkConsistencyLight() const * \throw If number of nodes defining an element does not correspond to the type of element. * \throw If the nodal connectivity includes an invalid node id. */ -void MEDCouplingUMesh::checkConsistency(double eps) const +void MEDCouplingUMesh::checkConsistency(double /*eps*/) const { checkConsistencyLight(); if(_mesh_dim==-1) diff --git a/src/MEDCoupling/MEDCouplingUMesh.hxx b/src/MEDCoupling/MEDCouplingUMesh.hxx index c09784c41..211ac93d5 100644 --- a/src/MEDCoupling/MEDCouplingUMesh.hxx +++ b/src/MEDCoupling/MEDCouplingUMesh.hxx @@ -56,7 +56,7 @@ namespace MEDCoupling MEDCOUPLING_EXPORT bool isEqualWithoutConsideringStr(const MEDCouplingMesh *other, double prec) const; MEDCOUPLING_EXPORT void checkFastEquivalWith(const MEDCouplingMesh *other, double prec) const; MEDCOUPLING_EXPORT void checkConsistencyLight() const; - MEDCOUPLING_EXPORT void checkConsistency(double eps=1e-12) const; + MEDCOUPLING_EXPORT void checkConsistency(double /*eps*/=1e-12) const; MEDCOUPLING_EXPORT void setMeshDimension(int meshDim); MEDCOUPLING_EXPORT void allocateCells(mcIdType nbOfCells=0); MEDCOUPLING_EXPORT void insertNextCell(INTERP_KERNEL::NormalizedCellType type, mcIdType size, const mcIdType *nodalConnOfCell); diff --git a/src/MEDCoupling/MEDCouplingUMesh_internal.cxx b/src/MEDCoupling/MEDCouplingUMesh_internal.cxx index c918cb650..3cdd52bfe 100755 --- a/src/MEDCoupling/MEDCouplingUMesh_internal.cxx +++ b/src/MEDCoupling/MEDCouplingUMesh_internal.cxx @@ -952,7 +952,7 @@ MEDCouplingUMesh *MEDCouplingUMesh::buildPartOfMySelfKeepCoordsSlice(mcIdType st } -mcIdType MEDCouplingFastNbrer(mcIdType id, mcIdType nb, const INTERP_KERNEL::CellModel& cm, bool compute, const mcIdType *conn1, const mcIdType *conn2) +mcIdType MEDCouplingFastNbrer(mcIdType id, mcIdType /*nb*/, const INTERP_KERNEL::CellModel& /*cm*/, bool /*compute*/, const mcIdType * /*conn1*/, const mcIdType * /*conn2*/) { return id; } diff --git a/src/MEDCoupling/MEDCouplingUMesh_internal.hxx b/src/MEDCoupling/MEDCouplingUMesh_internal.hxx index 278cfb212..45a642e3e 100644 --- a/src/MEDCoupling/MEDCouplingUMesh_internal.hxx +++ b/src/MEDCoupling/MEDCouplingUMesh_internal.hxx @@ -57,8 +57,8 @@ class MicroEdgesGenerator2D { public: MicroEdgesGenerator2D(const INTERP_KERNEL::CellModel& cm):_cm(cm) { } - unsigned getNumberOfSons2(const mcIdType *conn, mcIdType lgth) const { return _cm.getNumberOfMicroEdges(); } - unsigned fillSonCellNodalConnectivity2(int sonId, const mcIdType *nodalConn, mcIdType lgth, mcIdType *sonNodalConn, INTERP_KERNEL::NormalizedCellType& typeOfSon) const { return _cm.fillMicroEdgeNodalConnectivity(sonId,nodalConn,sonNodalConn,typeOfSon); } + unsigned getNumberOfSons2(const mcIdType * /*conn*/, mcIdType /*lgth*/) const { return _cm.getNumberOfMicroEdges(); } + unsigned fillSonCellNodalConnectivity2(int sonId, const mcIdType *nodalConn, mcIdType /*lgth*/, mcIdType *sonNodalConn, INTERP_KERNEL::NormalizedCellType& typeOfSon) const { return _cm.fillMicroEdgeNodalConnectivity(sonId,nodalConn,sonNodalConn,typeOfSon); } static const int DELTA=1; private: const INTERP_KERNEL::CellModel& _cm; @@ -68,8 +68,8 @@ class MicroEdgesGenerator3D { public: MicroEdgesGenerator3D(const INTERP_KERNEL::CellModel& cm):_cm(cm) { } - unsigned getNumberOfSons2(const mcIdType *conn, mcIdType lgth) const { return _cm.getNumberOfMicroEdges(); } - unsigned fillSonCellNodalConnectivity2(int sonId, const mcIdType *nodalConn, mcIdType lgth, mcIdType *sonNodalConn, INTERP_KERNEL::NormalizedCellType& typeOfSon) const { return _cm.fillMicroEdgeNodalConnectivity(sonId,nodalConn,sonNodalConn,typeOfSon); } + unsigned getNumberOfSons2(const mcIdType * /*conn*/, mcIdType /*lgth*/) const { return _cm.getNumberOfMicroEdges(); } + unsigned fillSonCellNodalConnectivity2(int sonId, const mcIdType *nodalConn, mcIdType /*lgth*/, mcIdType *sonNodalConn, INTERP_KERNEL::NormalizedCellType& typeOfSon) const { return _cm.fillMicroEdgeNodalConnectivity(sonId,nodalConn,sonNodalConn,typeOfSon); } static const int DELTA=2; private: const INTERP_KERNEL::CellModel& _cm; diff --git a/src/MEDCoupling/MEDCouplingUMesh_intersection.cxx b/src/MEDCoupling/MEDCouplingUMesh_intersection.cxx index e72c9b5e2..92a6e8d40 100644 --- a/src/MEDCoupling/MEDCouplingUMesh_intersection.cxx +++ b/src/MEDCoupling/MEDCouplingUMesh_intersection.cxx @@ -115,7 +115,7 @@ void EnterTheResultOf2DCellMiddle(const INTERP_KERNEL::Edge *e, int start, int s } } -void EnterTheResultOf2DCellEnd(const INTERP_KERNEL::Edge *e, int start, int stp, int nbOfEdges, bool linOrArc, const double *coords, const mcIdType *connBg, mcIdType offset, DataArrayIdType *newConnOfCell, DataArrayDouble *appendedCoords, std::vector& middles) +void EnterTheResultOf2DCellEnd(const INTERP_KERNEL::Edge *e, int start, int stp, int nbOfEdges, bool linOrArc, const double *coords, const mcIdType *connBg, mcIdType offset, DataArrayIdType * /*newConnOfCell*/, DataArrayDouble *appendedCoords, std::vector& middles) { // only the quadratic point to deal with: if(linOrArc) @@ -1172,7 +1172,7 @@ MEDCouplingUMesh *BuildMesh2DCutInternal(double eps, MEDCouplingUMesh *splitMesh /* * splitMesh1D is an input parameter but might have its cells renumbered. */ -MEDCouplingUMesh *BuildMesh2DCutFrom(double eps, mcIdType cellIdInMesh2D, const MEDCouplingUMesh *mesh2DDesc, MEDCouplingUMesh *splitMesh1D, +MEDCouplingUMesh *BuildMesh2DCutFrom(double eps, mcIdType /*cellIdInMesh2D*/, const MEDCouplingUMesh *mesh2DDesc, MEDCouplingUMesh *splitMesh1D, const mcIdType *descBg, const mcIdType *descEnd, const std::vector< std::vector >& intersectEdge1, mcIdType offset, MCAuto& idsLeftRight) { diff --git a/src/MEDCoupling/MEDCouplingVoronoi.cxx b/src/MEDCoupling/MEDCouplingVoronoi.cxx index 2393d5512..592f5568b 100755 --- a/src/MEDCoupling/MEDCouplingVoronoi.cxx +++ b/src/MEDCoupling/MEDCouplingVoronoi.cxx @@ -100,7 +100,7 @@ MCAuto ComputeBigCellFrom(const double pt1[2], const double pt } -MCAuto MergeVorCells2D(MEDCouplingUMesh *p, double eps, bool isZip) +MCAuto MergeVorCells2D(MEDCouplingUMesh *p, double /*eps*/, bool isZip) { MCAuto edgeToKeep; MCAuto p0; diff --git a/src/MEDLoader/MEDFileBasis.hxx b/src/MEDLoader/MEDFileBasis.hxx index 4ab7b043c..7eb46ba95 100644 --- a/src/MEDLoader/MEDFileBasis.hxx +++ b/src/MEDLoader/MEDFileBasis.hxx @@ -79,7 +79,7 @@ namespace MEDCoupling //DataArrayMedInt *buildNewEmptyInstance() const { return new DataArrayMedInt(); }//ko DataArray *buildNewEmptyInstance() const { if ( sizeof(med_int)==sizeof(int)) return DataArrayInt32::New(); return DataArrayInt64::New(); } public: - DataArrayMedInt *copySorted(bool asc=true) const override { MCAuto ret(this->deepCopy()); ret->sort(); return ret.retn(); } + DataArrayMedInt *copySorted(bool /*asc*/=true) const override { MCAuto ret(this->deepCopy()); ret->sort(); return ret.retn(); } DataArray *selectByTupleId(const mcIdType *new2OldBg, const mcIdType *new2OldEnd) const { return this->mySelectByTupleId(new2OldBg,new2OldEnd); } DataArray *selectByTupleId(const DataArrayIdType& di) const { return this->mySelectByTupleId(di); } DataArray *selectByTupleIdSafe(const mcIdType *new2OldBg, const mcIdType *new2OldEnd) const { return this->mySelectByTupleIdSafe(new2OldBg,new2OldEnd); } diff --git a/src/MEDLoader/MEDFileBlowStrEltUp.cxx b/src/MEDLoader/MEDFileBlowStrEltUp.cxx index f773a32ea..4781055df 100644 --- a/src/MEDLoader/MEDFileBlowStrEltUp.cxx +++ b/src/MEDLoader/MEDFileBlowStrEltUp.cxx @@ -168,7 +168,7 @@ void MEDFileBlowStrEltUp::dealWithSEInFields(const std::string& seName, const ME throw INTERP_KERNEL::Exception("MEDFileBlowStrEltUp::dealWithSEInFields : only MED_BALL is managed for the moment, but if you are interested please send spec to anthony.geay@edf.fr !"); } -void MEDFileBlowStrEltUp::dealWithMEDBALLSInFields(const MEDFileFields *fs, const MEDFileEltStruct4Mesh *zeStr, const MEDFileFields *varAtt, MEDFileFields *zeOutputs) const +void MEDFileBlowStrEltUp::dealWithMEDBALLSInFields(const MEDFileFields *fs, const MEDFileEltStruct4Mesh * /*zeStr*/, const MEDFileFields *varAtt, MEDFileFields *zeOutputs) const { int nbf(fs->getNumberOfFields()); std::vector< MCAuto > elts0; @@ -383,7 +383,7 @@ void LocInfo::checkUniqueLoc(const std::string& loc) const } } -MCAuto LocInfo::BuildMeshCommon(INTERP_KERNEL::NormalizedCellType gt, const std::string& pfl, const MEDFileFieldLoc& loc, const MEDFileEltStruct4Mesh *zeStr, const MEDFileUMesh *mesh, const MEDFileUMesh *section, const MEDFileFieldGlobsReal *globs, MCAuto& ptsForLoc) +MCAuto LocInfo::BuildMeshCommon(INTERP_KERNEL::NormalizedCellType gt, const std::string& pfl, const MEDFileFieldLoc& loc, const MEDFileEltStruct4Mesh *zeStr, const MEDFileUMesh *mesh, const MEDFileUMesh * /*section*/, const MEDFileFieldGlobsReal *globs, MCAuto& ptsForLoc) { MCAuto conn(zeStr->getConn()); conn=conn->deepCopy(); conn->rearrange(1); @@ -709,7 +709,7 @@ class FieldWalker1 public: FieldWalker1(const MEDFileAnyTypeField1TSWithoutSDA *ts):_ts(ts),_pm_pt(0),_nb_mesh(0) { } void newMeshEntry(const MEDFileFieldPerMesh *fpm); - void endMeshEntry(const MEDFileFieldPerMesh *fpm) { } + void endMeshEntry(const MEDFileFieldPerMesh * /*fpm*/) { } void newPerMeshPerTypeEntry(const MEDFileFieldPerMeshPerTypeCommon *pmpt); void endPerMeshPerTypeEntry(const MEDFileFieldPerMeshPerTypeCommon *pmpt); void newPerMeshPerTypePerDisc(const MEDFileFieldPerMeshPerTypePerDisc *pmptpd); @@ -723,7 +723,7 @@ private: int _nb_mesh; }; -void FieldWalker1::newMeshEntry(const MEDFileFieldPerMesh *fpm) +void FieldWalker1::newMeshEntry(const MEDFileFieldPerMesh * /*fpm*/) { if(_nb_mesh++==1) throw INTERP_KERNEL::Exception("FieldWalker1::newMeshEntry : multi mesh not supported !"); @@ -813,7 +813,7 @@ void FieldWalker::newTimeStepEntry(const MEDFileAnyTypeField1TSWithoutSDA *ts) _fw=new FieldWalker1(ts); } -void FieldWalker::endTimeStepEntry(const MEDFileAnyTypeField1TSWithoutSDA *ts) +void FieldWalker::endTimeStepEntry(const MEDFileAnyTypeField1TSWithoutSDA * /*ts*/) { if(_fw_prev.isNull()) _fw_prev=new FieldWalker1(*_fw); diff --git a/src/MEDLoader/MEDFileField.cxx b/src/MEDLoader/MEDFileField.cxx index 4cfee0c64..11ffd6bcd 100644 --- a/src/MEDLoader/MEDFileField.cxx +++ b/src/MEDLoader/MEDFileField.cxx @@ -627,16 +627,16 @@ class MEDFileFieldLin2QuadVisitor : public MEDFileFieldVisitor public: MEDFileFieldLin2QuadVisitor(const MEDFileUMesh *lin, const MEDFileUMesh *quad, const MEDFileFieldGlobsReal *linGlobs, MEDFileFields* outFs):_lin(lin),_quad(quad),_lin_globs(linGlobs),_out_fs(outFs),_gt(INTERP_KERNEL::NORM_ERROR),_1ts_update_requested(false) { } void newFieldEntry(const MEDFileAnyTypeFieldMultiTSWithoutSDA *field) { if(field->getMeshName()!=_lin->getName()) return; _cur_fmts=MEDFileFieldMultiTS::New(); } - void endFieldEntry(const MEDFileAnyTypeFieldMultiTSWithoutSDA *field) { if(_cur_fmts.isNotNull()) { if(_cur_fmts->getNumberOfTS()>0) _out_fs->pushField(_cur_fmts); } } + void endFieldEntry(const MEDFileAnyTypeFieldMultiTSWithoutSDA * /*field*/) { if(_cur_fmts.isNotNull()) { if(_cur_fmts->getNumberOfTS()>0) _out_fs->pushField(_cur_fmts); } } // void newTimeStepEntry(const MEDFileAnyTypeField1TSWithoutSDA *ts); void endTimeStepEntry(const MEDFileAnyTypeField1TSWithoutSDA *ts); // void newMeshEntry(const MEDFileFieldPerMesh *fpm); - void endMeshEntry(const MEDFileFieldPerMesh *fpm) { } + void endMeshEntry(const MEDFileFieldPerMesh * /*fpm*/) { } // void newPerMeshPerTypeEntry(const MEDFileFieldPerMeshPerTypeCommon *pmpt); - void endPerMeshPerTypeEntry(const MEDFileFieldPerMeshPerTypeCommon *pmpt) { } + void endPerMeshPerTypeEntry(const MEDFileFieldPerMeshPerTypeCommon * /*pmpt*/) { } // void newPerMeshPerTypePerDisc(const MEDFileFieldPerMeshPerTypePerDisc *pmptpd); private: @@ -760,7 +760,7 @@ void MEDFileFieldLin2QuadVisitor::newTimeStepEntry(const MEDFileAnyTypeField1TSW _cur_f1ts->deepCpyGlobs(*_lin_globs); } -void MEDFileFieldLin2QuadVisitor::endTimeStepEntry(const MEDFileAnyTypeField1TSWithoutSDA *ts) +void MEDFileFieldLin2QuadVisitor::endTimeStepEntry(const MEDFileAnyTypeField1TSWithoutSDA * /*ts*/) { if(_cur_f1ts.isNull()) return ; diff --git a/src/MEDLoader/MEDFileField1TS.cxx b/src/MEDLoader/MEDFileField1TS.cxx index 085a6d6a8..104575a7b 100644 --- a/src/MEDLoader/MEDFileField1TS.cxx +++ b/src/MEDLoader/MEDFileField1TS.cxx @@ -368,7 +368,7 @@ void MEDFileAnyTypeField1TSWithoutSDA::changeLocsRefsNamesGen2(const std::vector * Length of this and of nested sequences is the same as that of \a typesF. * \throw If no field is lying on \a mname. */ -std::vector< std::vector< std::pair > > MEDFileAnyTypeField1TSWithoutSDA::getFieldSplitedByType(const std::string& mname, std::vector& types, std::vector< std::vector >& typesF, std::vector< std::vector >& pfls, std::vector< std::vector >& locs) const +std::vector< std::vector< std::pair > > MEDFileAnyTypeField1TSWithoutSDA::getFieldSplitedByType(const std::string& /*mname*/, std::vector& types, std::vector< std::vector >& typesF, std::vector< std::vector >& pfls, std::vector< std::vector >& locs) const { if(_field_per_mesh.empty()) throw INTERP_KERNEL::Exception("MEDFileField1TSWithoutSDA::getFieldSplitedByType : This is empty !"); @@ -416,7 +416,7 @@ std::vector< std::vector< std::pair > > MEDFileAnyTypeField1T * \return int - the maximal absolute dimension of elements \a this fields lies on. * \throw If no field is lying on \a mname. */ -int MEDFileAnyTypeField1TSWithoutSDA::getNonEmptyLevels(const std::string& mname, std::vector& levs) const +int MEDFileAnyTypeField1TSWithoutSDA::getNonEmptyLevels(const std::string& /*mname*/, std::vector& levs) const { levs.clear(); std::vector types; @@ -492,7 +492,7 @@ void MEDFileAnyTypeField1TSWithoutSDA::makeReduction(INTERP_KERNEL::NormalizedCe * \param [in] locId is the localization id to find the right MEDFileFieldPerMeshPerTypePerDisc instance to set. It corresponds to the position of * \c pfls[std::distance(types.begin(),std::find(types.begin(),typ)] vector in MEDFileField1TSWithoutSDA::getFieldSplitedByType. For non gausspoints field users, the value is 0. */ -MEDFileFieldPerMeshPerTypePerDisc *MEDFileAnyTypeField1TSWithoutSDA::getLeafGivenMeshAndTypeAndLocId(const std::string& mName, INTERP_KERNEL::NormalizedCellType typ, int locId) +MEDFileFieldPerMeshPerTypePerDisc *MEDFileAnyTypeField1TSWithoutSDA::getLeafGivenMeshAndTypeAndLocId(const std::string& /*mName*/, INTERP_KERNEL::NormalizedCellType typ, int locId) { if(_field_per_mesh.empty()) throw INTERP_KERNEL::Exception("MEDFileAnyTypeField1TSWithoutSDA::getLeafGivenMeshAndTypeAndLocId : This is empty !"); @@ -505,7 +505,7 @@ MEDFileFieldPerMeshPerTypePerDisc *MEDFileAnyTypeField1TSWithoutSDA::getLeafGive * \param [in] locId is the localization id to find the right MEDFileFieldPerMeshPerTypePerDisc instance to set. It corresponds to the position of * \c pfls[std::distance(types.begin(),std::find(types.begin(),typ)] vector in MEDFileField1TSWithoutSDA::getFieldSplitedByType. For non gausspoints field users, the value is 0. */ -const MEDFileFieldPerMeshPerTypePerDisc *MEDFileAnyTypeField1TSWithoutSDA::getLeafGivenMeshAndTypeAndLocId(const std::string& mName, INTERP_KERNEL::NormalizedCellType typ, int locId) const +const MEDFileFieldPerMeshPerTypePerDisc *MEDFileAnyTypeField1TSWithoutSDA::getLeafGivenMeshAndTypeAndLocId(const std::string& /*mName*/, INTERP_KERNEL::NormalizedCellType typ, int locId) const { if(_field_per_mesh.empty()) throw INTERP_KERNEL::Exception("MEDFileAnyTypeField1TSWithoutSDA::getLeafGivenMeshAndTypeAndLocId : This is empty !"); diff --git a/src/MEDLoader/MEDFileField1TS.hxx b/src/MEDLoader/MEDFileField1TS.hxx index 5784c02aa..3508f7641 100644 --- a/src/MEDLoader/MEDFileField1TS.hxx +++ b/src/MEDLoader/MEDFileField1TS.hxx @@ -196,7 +196,7 @@ namespace MEDCoupling MEDLOADER_EXPORT MEDFileField1TSWithoutSDA *convertToDouble() const; protected: MEDFileField1TSNDTemplateWithoutSDA() { } - MEDFileField1TSNDTemplateWithoutSDA(const std::string& fieldName, const std::string& meshName, int csit, int iteration, int order, const std::vector& infos):MEDFileField1TSTemplateWithoutSDA(fieldName,meshName,csit,iteration,order) { } + MEDFileField1TSNDTemplateWithoutSDA(const std::string& fieldName, const std::string& meshName, int csit, int iteration, int order, const std::vector& /*infos*/):MEDFileField1TSTemplateWithoutSDA(fieldName,meshName,csit,iteration,order) { } }; /*! diff --git a/src/MEDLoader/MEDFileFieldGlobs.cxx b/src/MEDLoader/MEDFileFieldGlobs.cxx index a5cbc3643..84cd4c1c0 100644 --- a/src/MEDLoader/MEDFileFieldGlobs.cxx +++ b/src/MEDLoader/MEDFileFieldGlobs.cxx @@ -571,7 +571,7 @@ std::vector< std::vector > MEDFileFieldGlobs::whichAreEqualProfiles() const return ret; } -std::vector< std::vector > MEDFileFieldGlobs::whichAreEqualLocs(double eps) const +std::vector< std::vector > MEDFileFieldGlobs::whichAreEqualLocs(double /*eps*/) const { throw INTERP_KERNEL::Exception("MEDFileFieldGlobs::whichAreEqualLocs : no implemented yet ! Sorry !"); } diff --git a/src/MEDLoader/MEDFileFieldInternal.cxx b/src/MEDLoader/MEDFileFieldInternal.cxx index 399b0ea08..6a6af530d 100644 --- a/src/MEDLoader/MEDFileFieldInternal.cxx +++ b/src/MEDLoader/MEDFileFieldInternal.cxx @@ -487,7 +487,7 @@ void MEDFileFieldPerMeshPerTypePerDisc::assignFieldProfile(bool isPflAlone, mcId start=_end; } -void MEDFileFieldPerMeshPerTypePerDisc::assignNodeFieldNoProfile(mcIdType& start, const MEDCouplingFieldTemplate *field, const DataArray *arrr, MEDFileFieldGlobsReal& glob) +void MEDFileFieldPerMeshPerTypePerDisc::assignNodeFieldNoProfile(mcIdType& start, const MEDCouplingFieldTemplate * /*field*/, const DataArray *arrr, MEDFileFieldGlobsReal& /*glob*/) { _start=start; _nval=arrr->getNumberOfTuples(); @@ -541,7 +541,7 @@ catch(INTERP_KERNEL::Exception& e) throw e; } -MEDFileFieldPerMeshPerTypePerDisc::MEDFileFieldPerMeshPerTypePerDisc(MEDFileFieldPerMeshPerTypeCommon *fath, TypeOfField type, mcIdType locId, const std::string& dummy):_type(type),_father(fath),_loc_id(locId) +MEDFileFieldPerMeshPerTypePerDisc::MEDFileFieldPerMeshPerTypePerDisc(MEDFileFieldPerMeshPerTypeCommon *fath, TypeOfField type, mcIdType locId, const std::string& /*dummy*/):_type(type),_father(fath),_loc_id(locId) { } @@ -1904,12 +1904,12 @@ std::string MEDFileFieldPerMeshPerTypeDyn::getModelName() const return _se->getName(); } -void MEDFileFieldPerMeshPerTypeDyn::getDimension(int& dim) const +void MEDFileFieldPerMeshPerTypeDyn::getDimension(int& /*dim*/) const { throw INTERP_KERNEL::Exception("not implemented yet !"); } -void MEDFileFieldPerMeshPerTypeDyn::entriesForMEDfile(TypeOfField mct, med_geometry_type& gt, med_entity_type& ent) const +void MEDFileFieldPerMeshPerTypeDyn::entriesForMEDfile(TypeOfField /*mct*/, med_geometry_type& gt, med_entity_type& ent) const { gt=getDynGT(); ent=MED_STRUCT_ELEMENT; @@ -1953,7 +1953,7 @@ MEDFileFieldPerMeshPerTypeDyn *MEDFileFieldPerMeshPerTypeDyn::deepCopy(MEDFileFi return ret.retn(); } -void MEDFileFieldPerMeshPerTypeDyn::getFieldAtLevel(int meshDim, TypeOfField type, const MEDFileFieldGlobsReal *glob, std::vector< std::pair >& dads, std::vector& pfls, std::vector& locs, std::vector& geoTypes) const +void MEDFileFieldPerMeshPerTypeDyn::getFieldAtLevel(int /*meshDim*/, TypeOfField /*type*/, const MEDFileFieldGlobsReal * /*glob*/, std::vector< std::pair >& /*dads*/, std::vector& /*pfls*/, std::vector& /*locs*/, std::vector& /*geoTypes*/) const { throw INTERP_KERNEL::Exception("not implemented yet !"); } @@ -2925,7 +2925,7 @@ MEDCouplingFieldDouble *MEDFileFieldPerMesh::finishField(TypeOfField type, const */ MEDCouplingFieldDouble *MEDFileFieldPerMesh::finishField2(TypeOfField type, const MEDFileFieldGlobsReal *glob, const std::vector >& dads, const std::vector& locs, - const std::vector& geoTypes, + const std::vector& /*geoTypes*/, const MEDCouplingMesh *mesh, const DataArrayIdType *da, bool& isPfl, MCAuto& arrOut, const MEDFileFieldNameScope& nasc) const { if(da->isIota(mesh->getNumberOfCells())) diff --git a/src/MEDLoader/MEDFileFieldInternal.hxx b/src/MEDLoader/MEDFileFieldInternal.hxx index 42822c05d..07cd0f522 100644 --- a/src/MEDLoader/MEDFileFieldInternal.hxx +++ b/src/MEDLoader/MEDFileFieldInternal.hxx @@ -410,7 +410,7 @@ namespace MEDCoupling static mcIdType ComputeNbOfElems(const MEDFileFieldGlobsReal *glob, TypeOfField type, const std::vector& geoTypes, const std::vector< std::pair >& dads, const std::vector& locs); MEDFileFieldPerMesh(med_idt fid, MEDFileAnyTypeField1TSWithoutSDA *fath, int meshCsit, int meshIteration, int meshOrder, const MEDFileFieldNameScope& nasc, const MEDFileMesh *mm, const MEDFileEntities *entities); MEDFileFieldPerMesh(MEDFileAnyTypeField1TSWithoutSDA *fath, const MEDCouplingMesh *mesh); - MEDFileFieldPerMesh(MEDFileAnyTypeField1TSWithoutSDA *fath, const std::string& meshName, int meshIt, int meshOrd):_mesh_iteration(meshIt),_mesh_order(meshOrd),_father(fath) { } + MEDFileFieldPerMesh(MEDFileAnyTypeField1TSWithoutSDA *fath, const std::string& /*meshName*/, int meshIt, int meshOrd):_mesh_iteration(meshIt),_mesh_order(meshOrd),_father(fath) { } private: int _mesh_iteration; int _mesh_order; diff --git a/src/MEDLoader/MEDFileFieldOverView.cxx b/src/MEDLoader/MEDFileFieldOverView.cxx index c2b54d60b..a856382c7 100644 --- a/src/MEDLoader/MEDFileFieldOverView.cxx +++ b/src/MEDLoader/MEDFileFieldOverView.cxx @@ -218,7 +218,7 @@ void MEDMeshMultiLev::setCellReduction(const DataArrayIdType *cr) cr->incrRef(); } -bool MEDMeshMultiLev::isFastlyTheSameStruct(const MEDFileField1TSStructItem& fst, const MEDFileFieldGlobsReal *globs) const +bool MEDMeshMultiLev::isFastlyTheSameStruct(const MEDFileField1TSStructItem& fst, const MEDFileFieldGlobsReal * /*globs*/) const { if(fst.getType()==ON_NODES) { @@ -1190,7 +1190,7 @@ void MEDUMeshMultiLev::appendVertices(const DataArrayIdType *verticesToAdd, Data //= -MEDStructuredMeshMultiLev::MEDStructuredMeshMultiLev(const MEDFileStructuredMesh *m, const std::vector& lev):MEDMeshMultiLev(m),_is_internal(true) +MEDStructuredMeshMultiLev::MEDStructuredMeshMultiLev(const MEDFileStructuredMesh *m, const std::vector& /*lev*/):MEDMeshMultiLev(m),_is_internal(true) { initStdFieldOfIntegers(m); } diff --git a/src/MEDLoader/MEDFileMesh.cxx b/src/MEDLoader/MEDFileMesh.cxx index 0d0a16c6f..8a0aa5460 100644 --- a/src/MEDLoader/MEDFileMesh.cxx +++ b/src/MEDLoader/MEDFileMesh.cxx @@ -150,7 +150,7 @@ MEDFileMesh *MEDFileMesh::New(const std::string& fileName, const std::string& mN return New(fid,mName,dt,it,mrs,joints); } -MEDFileMesh *MEDFileMesh::New(med_idt fid, const std::string& mName, int dt, int it, MEDFileMeshReadSelector *mrs, MEDFileJoints* joints) +MEDFileMesh *MEDFileMesh::New(med_idt fid, const std::string& mName, int dt, int it, MEDFileMeshReadSelector *mrs, MEDFileJoints* /*joints*/) { MEDCoupling::MEDCouplingMeshType meshType; int dummy0,dummy1; @@ -1062,7 +1062,7 @@ void MEDFileMesh::changeFamilyName(const std::string& oldName, const std::string * \return bool - \c true if number of families and their ids are the same in the two * meshes. Families with the id == \c 0 are not considered. */ -bool MEDFileMesh::areFamsEqual(const MEDFileMesh *other, std::string& what) const +bool MEDFileMesh::areFamsEqual(const MEDFileMesh *other, std::string& /*what*/) const { if(_families==other->_families) return true; @@ -3456,7 +3456,7 @@ bool MEDFileUMesh::hasImplicitPart() const return false; } -mcIdType MEDFileUMesh::buildImplicitPartIfAny(INTERP_KERNEL::NormalizedCellType gt) const +mcIdType MEDFileUMesh::buildImplicitPartIfAny(INTERP_KERNEL::NormalizedCellType /*gt*/) const { throw INTERP_KERNEL::Exception("MEDFileUMesh::buildImplicitPartIfAny : unstructured meshes do not have implicit part !"); } @@ -6068,7 +6068,7 @@ void MEDFileStructuredMesh::setNameFieldAtLevel(int meshDimRelToMaxExt, DataArra nameArr->incrRef(); } -void MEDFileStructuredMesh::setGlobalNumFieldAtLevel(int meshDimRelToMaxExt, DataArrayIdType *globalNumArr) +void MEDFileStructuredMesh::setGlobalNumFieldAtLevel(int /*meshDimRelToMaxExt*/, DataArrayIdType * /*globalNumArr*/) { throw INTERP_KERNEL::Exception("MEDFileStructuredMesh::setGlobalNumFieldAtLevel : not implemented yet !"); } @@ -6234,7 +6234,7 @@ const DataArrayAsciiChar *MEDFileStructuredMesh::getNameFieldAtLevel(int meshDim } } -MCAuto MEDFileStructuredMesh::getGlobalNumFieldAtLevel(int meshDimRelToMaxExt) const +MCAuto MEDFileStructuredMesh::getGlobalNumFieldAtLevel(int /*meshDimRelToMaxExt*/) const { throw INTERP_KERNEL::Exception("MEDFileStructuredMesh::getGlobalNumFieldAtLevel : not implemented yet for structured mesh !"); } @@ -6414,7 +6414,7 @@ MEDCouplingMesh *MEDFileStructuredMesh::getMeshAtLevel(int meshDimRelToMax, bool } } -std::vector MEDFileStructuredMesh::getFamsNonEmptyLevels(const std::vector& fams) const +std::vector MEDFileStructuredMesh::getFamsNonEmptyLevels(const std::vector& /*fams*/) const { std::vector ret; const DataArrayIdType *famCells(_fam_cells),*famFaces(_fam_faces); diff --git a/src/MEDLoader/MEDFileMeshElt.cxx b/src/MEDLoader/MEDFileMeshElt.cxx index eb755f964..1bcca1191 100644 --- a/src/MEDLoader/MEDFileMeshElt.cxx +++ b/src/MEDLoader/MEDFileMeshElt.cxx @@ -194,7 +194,7 @@ void MEDFileUMeshPerType::loadPart(med_idt fid, const char *mName, int dt, int i throw INTERP_KERNEL::Exception("MEDFileUMeshPerType::loadPart : not implemented yet for the dynamic type !"); } -void MEDFileUMeshPerType::loadFromStaticType(med_idt fid, const char *mName, int dt, int it, int mdim, mcIdType curNbOfElem, med_geometry_type geoElt, INTERP_KERNEL::NormalizedCellType type, +void MEDFileUMeshPerType::loadFromStaticType(med_idt fid, const char *mName, int dt, int it, int /*mdim*/, mcIdType curNbOfElem, med_geometry_type geoElt, INTERP_KERNEL::NormalizedCellType type, med_entity_type entity, MEDFileMeshReadSelector *mrs) { _m=MEDCoupling1SGTUMesh::New(mName,type); @@ -233,7 +233,7 @@ void MEDFileUMeshPerType::loadPartStaticType(med_idt fid, const char *mName, int loadPartOfCellCommonPart(fid,mName,strt,end,step,dt,it,mdim,curNbOfElem,geoElt,entity,mrs); } -void MEDFileUMeshPerType::loadPartOfCellCommonPart(med_idt fid, const char *mName, mcIdType strt, mcIdType stp, mcIdType step, int dt, int it, int mdim, mcIdType curNbOfElem, med_geometry_type geoElt, med_entity_type entity, MEDFileMeshReadSelector *mrs) +void MEDFileUMeshPerType::loadPartOfCellCommonPart(med_idt fid, const char *mName, mcIdType strt, mcIdType stp, mcIdType step, int dt, int it, int /*mdim*/, mcIdType curNbOfElem, med_geometry_type geoElt, med_entity_type entity, MEDFileMeshReadSelector *mrs) { med_bool changement,transformation; _fam=0; @@ -294,7 +294,7 @@ void MEDFileUMeshPerType::loadPartOfCellCommonPart(med_idt fid, const char *mNam } } -void MEDFileUMeshPerType::loadPolyg(med_idt fid, const char *mName, int dt, int it, int mdim, mcIdType arraySize, med_geometry_type geoElt, +void MEDFileUMeshPerType::loadPolyg(med_idt fid, const char *mName, int dt, int it, int /*mdim*/, mcIdType arraySize, med_geometry_type geoElt, med_entity_type entity, MEDFileMeshReadSelector *mrs) { med_bool changement,transformation; @@ -310,7 +310,7 @@ void MEDFileUMeshPerType::loadPolyg(med_idt fid, const char *mName, int dt, int loadCommonPart(fid,mName,dt,it,curNbOfElem,geoElt,entity,mrs); } -void MEDFileUMeshPerType::loadPolyh(med_idt fid, const char *mName, int dt, int it, int mdim, mcIdType connFaceLgth, med_geometry_type geoElt, +void MEDFileUMeshPerType::loadPolyh(med_idt fid, const char *mName, int dt, int it, int /*mdim*/, mcIdType connFaceLgth, med_geometry_type geoElt, med_entity_type entity, MEDFileMeshReadSelector *mrs) { med_bool changement,transformation; @@ -346,7 +346,7 @@ void MEDFileUMeshPerType::loadPolyh(med_idt fid, const char *mName, int dt, int loadCommonPart(fid,mName,dt,it,curNbOfElem,MED_POLYHEDRON,entity,mrs); } -void MEDFileUMeshPerType::Write(med_idt fid, const std::string& mname, int mdim, const MEDCoupling1GTUMesh *m, const DataArrayIdType *fam, const DataArrayIdType *num, const DataArrayAsciiChar *names) +void MEDFileUMeshPerType::Write(med_idt fid, const std::string& mname, int /*mdim*/, const MEDCoupling1GTUMesh *m, const DataArrayIdType *fam, const DataArrayIdType *num, const DataArrayAsciiChar *names) { mcIdType nbOfCells=m->getNumberOfCells(); if(nbOfCells<1) diff --git a/src/MEDLoader/MEDFileMeshLL.cxx b/src/MEDLoader/MEDFileMeshLL.cxx index e9d3f2d14..e2f71e42d 100644 --- a/src/MEDLoader/MEDFileMeshLL.cxx +++ b/src/MEDLoader/MEDFileMeshLL.cxx @@ -124,7 +124,7 @@ double MeshCls::checkMeshTimeStep(med_idt fid, const std::string& mName, int nst return dtt; } -std::vector StructMeshCls::getAxisInfoOnMesh(med_idt fid, const std::string& mName, MEDCoupling::MEDCouplingMeshType& meshType, MEDCoupling::MEDCouplingAxisType& axType, int& nstep, int& Mdim, MEDFileString& description, MEDFileString& dtunit, MEDFileString& univName) const +std::vector StructMeshCls::getAxisInfoOnMesh(med_idt fid, const std::string& /*mName*/, MEDCoupling::MEDCouplingMeshType& meshType, MEDCoupling::MEDCouplingAxisType& axType, int& nstep, int& /*Mdim*/, MEDFileString& description, MEDFileString& dtunit, MEDFileString& univName) const { INTERP_KERNEL::AutoPtr msn(MEDLoaderBase::buildEmptyString(MED_NAME_SIZE)); INTERP_KERNEL::AutoPtr zeDescription(MEDLoaderBase::buildEmptyString(MED_COMMENT_SIZE)); @@ -150,7 +150,7 @@ std::vector StructMeshCls::getAxisInfoOnMesh(med_idt fid, const std return ret; } -double StructMeshCls::checkMeshTimeStep(med_idt fid, const std::string& mName, int nstep, int dt, int it) const +double StructMeshCls::checkMeshTimeStep(med_idt /*fid*/, const std::string& /*mName*/, int /*nstep*/, int /*dt*/, int /*it*/) const { return 0.; } @@ -925,7 +925,7 @@ MEDFileUMeshSplitL1::MEDFileUMeshSplitL1(const MEDFileUMeshSplitL1& other):RefCo { } -MEDFileUMeshSplitL1::MEDFileUMeshSplitL1(const MEDFileUMeshL2& l2, const std::string& mName, int id):_m(this) +MEDFileUMeshSplitL1::MEDFileUMeshSplitL1(const MEDFileUMeshL2& l2, const std::string& /*mName*/, int id):_m(this) { const std::vector< MCAuto >& v=l2.getLev(id); if(v.empty()) @@ -1321,7 +1321,7 @@ void MEDFileUMeshSplitL1::eraseFamilyField() * This method ignores _m and _m_by_types. */ void MEDFileUMeshSplitL1::setGroupsFromScratch(const std::vector& ms, std::map& familyIds, - std::map >& groups) + std::map >& /*groups*/) { std::vector< DataArrayIdType * > corr; _m=MEDCouplingUMesh::FuseUMeshesOnSameCoords(ms,0,corr); @@ -1485,8 +1485,8 @@ std::vector MEDFileUMeshSplitL1::GetNewFamiliesNumber(mcIdType nb, con return ret; } -void MEDFileUMeshSplitL1::TraduceFamilyNumber(const std::vector< std::vector >& fidsGrps, std::map& familyIds, - std::map& famIdTrad, std::map& newfams) +void MEDFileUMeshSplitL1::TraduceFamilyNumber(const std::vector< std::vector >& /*fidsGrps*/, std::map& /*familyIds*/, + std::map& /*famIdTrad*/, std::map& /*newfams*/) { std::set allfids; //tony diff --git a/src/MEDLoader/MEDFileStructureElement.cxx b/src/MEDLoader/MEDFileStructureElement.cxx index a43ad258f..50067beec 100644 --- a/src/MEDLoader/MEDFileStructureElement.cxx +++ b/src/MEDLoader/MEDFileStructureElement.cxx @@ -114,7 +114,7 @@ std::size_t MEDFileSEConstAtt::getHeapMemorySizeWithoutChildren() const return getHeapMemorySizeLoc()+_pfl.capacity(); } -void MEDFileSEConstAtt::writeLL(med_idt fid) const +void MEDFileSEConstAtt::writeLL(med_idt /*fid*/) const { } @@ -161,7 +161,7 @@ std::size_t MEDFileSEVarAtt::getHeapMemorySizeWithoutChildren() const return getHeapMemorySizeLoc(); } -void MEDFileSEVarAtt::writeLL(med_idt fid) const +void MEDFileSEVarAtt::writeLL(med_idt /*fid*/) const { } @@ -213,7 +213,7 @@ std::size_t MEDFileStructureElement::getHeapMemorySizeWithoutChildren() const return _name.capacity()+_cst_att.capacity()*sizeof(MCAuto)+_var_att.capacity()*sizeof(MCAuto); } -void MEDFileStructureElement::writeLL(med_idt fid) const +void MEDFileStructureElement::writeLL(med_idt /*fid*/) const { } @@ -327,7 +327,7 @@ std::size_t MEDFileStructureElements::getHeapMemorySizeWithoutChildren() const return _elems.capacity()*sizeof(MEDFileStructureElement); } -void MEDFileStructureElements::writeLL(med_idt fid) const +void MEDFileStructureElements::writeLL(med_idt /*fid*/) const { } diff --git a/src/MEDLoader/MEDLoader.cxx b/src/MEDLoader/MEDLoader.cxx index 4899e483c..62390a68d 100644 --- a/src/MEDLoader/MEDLoader.cxx +++ b/src/MEDLoader/MEDLoader.cxx @@ -1363,7 +1363,7 @@ std::vector MEDCoupling::ReadFieldsGaussN namespace MEDCoupling { template - MCAuto::FieldType> ReadFieldCellLikeT(typename MLFieldTraits::F1TSType *ff, MEDCoupling::TypeOfField type, const std::string& fileName, const std::string& meshName, int meshDimRelToMax, const std::string& fieldName, int iteration, int order) + MCAuto::FieldType> ReadFieldCellLikeT(typename MLFieldTraits::F1TSType *ff, MEDCoupling::TypeOfField type, const std::string& fileName, const std::string& meshName, int meshDimRelToMax, const std::string& /*fieldName*/, int /*iteration*/, int /*order*/) { MCAuto mm(MEDFileMesh::New(fileName,meshName)); MCAuto muPtr(MEDCoupling::DynamicCast(mm)); @@ -1409,7 +1409,7 @@ namespace MEDCoupling } template - MCAuto::FieldType> ReadFieldNodeT(typename MLFieldTraits::F1TSType *ff, const std::string& fileName, const std::string& meshName, int meshDimRelToMax, const std::string& fieldName, int iteration, int order) + MCAuto::FieldType> ReadFieldNodeT(typename MLFieldTraits::F1TSType *ff, const std::string& fileName, const std::string& meshName, int meshDimRelToMax, const std::string& /*fieldName*/, int /*iteration*/, int /*order*/) { MCAuto mm(MEDFileMesh::New(fileName,meshName)); MCAuto m(mm->getMeshAtLevel(meshDimRelToMax,false)); diff --git a/src/MEDLoader/SauvReader.cxx b/src/MEDLoader/SauvReader.cxx index 3c7f2d60d..22185da5c 100644 --- a/src/MEDLoader/SauvReader.cxx +++ b/src/MEDLoader/SauvReader.cxx @@ -667,7 +667,7 @@ void SauvReader::read_PILE_NOEUDS (const int nbObjects, std::vector */ //================================================================================ -void SauvReader::read_PILE_COORDONNEES (const int nbObjects, std::vector&, std::vector&) +void SauvReader::read_PILE_COORDONNEES (const int /*nbObjects*/, std::vector&, std::vector&) { initIntReading(1); int nbReals = getIntNext(); @@ -1208,8 +1208,8 @@ void SauvReader::read_PILE_TABLES (const int nbObjects, //================================================================================ void SauvReader::read_PILE_STRINGS (const int nbObjects, - std::vector& objectNames, - std::vector& nameIndices) + std::vector& /*objectNames*/, + std::vector& /*nameIndices*/) { // IMP 0020434: mapping GIBI names to MED names initIntReading(2); diff --git a/src/MEDPartitioner/MEDPARTITIONER_Graph.cxx b/src/MEDPartitioner/MEDPARTITIONER_Graph.cxx index d9a7369a8..77099da77 100644 --- a/src/MEDPartitioner/MEDPARTITIONER_Graph.cxx +++ b/src/MEDPartitioner/MEDPARTITIONER_Graph.cxx @@ -63,4 +63,4 @@ namespace MEDPARTITIONER return _graph->getNumberOf(); } -}; +} diff --git a/src/MEDPartitioner/MEDPARTITIONER_MeshCollection.cxx b/src/MEDPartitioner/MEDPARTITIONER_MeshCollection.cxx index f5e6e5f31..07fd82487 100644 --- a/src/MEDPartitioner/MEDPARTITIONER_MeshCollection.cxx +++ b/src/MEDPartitioner/MEDPARTITIONER_MeshCollection.cxx @@ -1903,7 +1903,7 @@ void MEDPARTITIONER::MeshCollection::setTopology(Topology* topo, bool takeOwnesh * \param edgeweight returns the pointer to the table that contains the edgeweights * (only used if indivisible regions are required) */ -void MEDPARTITIONER::MeshCollection::buildCellGraph(MEDCoupling::MEDCouplingSkyLineArray* & array, int *& edgeweights ) +void MEDPARTITIONER::MeshCollection::buildCellGraph(MEDCoupling::MEDCouplingSkyLineArray* & array, int *& /*edgeweights*/ ) { using std::map; @@ -1933,7 +1933,7 @@ void MEDPARTITIONER::MeshCollection::buildCellGraph(MEDCoupling::MEDCouplingSkyL * \param edgeweight returns the pointer to the table that contains the edgeweights * (only used if indivisible regions are required) */ -void MEDPARTITIONER::MeshCollection::buildParallelCellGraph(MEDCoupling::MEDCouplingSkyLineArray* & array, int *& edgeweights ) +void MEDPARTITIONER::MeshCollection::buildParallelCellGraph(MEDCoupling::MEDCouplingSkyLineArray* & array, int *& /*edgeweights*/ ) { using std::multimap; using std::vector; diff --git a/src/MEDPartitioner/MEDPARTITIONER_MeshCollectionDriver.cxx b/src/MEDPartitioner/MEDPARTITIONER_MeshCollectionDriver.cxx index 8b6340e82..3b0889a48 100644 --- a/src/MEDPartitioner/MEDPARTITIONER_MeshCollectionDriver.cxx +++ b/src/MEDPartitioner/MEDPARTITIONER_MeshCollectionDriver.cxx @@ -326,7 +326,7 @@ MEDCoupling::MEDFileMesh* MeshCollectionDriver::getMesh(int idomain) const return mfm; } -MEDCoupling::MEDCouplingFieldDouble* MeshCollectionDriver::getField(std::string key, std::string description, MEDCoupling::DataArrayDouble* data, MEDCoupling::MEDFileMesh* mfm, int idomain) const +MEDCoupling::MEDCouplingFieldDouble* MeshCollectionDriver::getField(std::string /*key*/, std::string description, MEDCoupling::DataArrayDouble* data, MEDCoupling::MEDFileMesh* mfm, int /*idomain*/) const { std::string desc=description; if (MyGlobals::_Verbose>20) diff --git a/src/MEDPartitioner/MEDPARTITIONER_MetisGraph.cxx b/src/MEDPartitioner/MEDPARTITIONER_MetisGraph.cxx index 333bbb42d..fc0495140 100644 --- a/src/MEDPartitioner/MEDPARTITIONER_MetisGraph.cxx +++ b/src/MEDPartitioner/MEDPARTITIONER_MetisGraph.cxx @@ -48,7 +48,7 @@ METISGraph::~METISGraph() void METISGraph::partGraph(int ndomain, const std::string& options_string, - ParaDomainSelector *parallelizer) + ParaDomainSelector * /*parallelizer*/) { using std::vector; if (MyGlobals::_Verbose>10) diff --git a/src/MEDPartitioner/MEDPARTITIONER_ScotchGraph.cxx b/src/MEDPartitioner/MEDPARTITIONER_ScotchGraph.cxx index 1cd742b6d..c41a9f0d2 100644 --- a/src/MEDPartitioner/MEDPARTITIONER_ScotchGraph.cxx +++ b/src/MEDPartitioner/MEDPARTITIONER_ScotchGraph.cxx @@ -47,7 +47,7 @@ SCOTCHGraph::~SCOTCHGraph() { } -void SCOTCHGraph::partGraph(int ndomain, const std::string& options_string, ParaDomainSelector* sel) +void SCOTCHGraph::partGraph(int ndomain, const std::string& options_string, ParaDomainSelector* /*sel*/) { if (MyGlobals::_Verbose>10) std::cout << "proc " << MyGlobals::_Rank << " : SCOTCHGraph::partGraph" << std::endl; diff --git a/src/MEDPartitioner/MEDPARTITIONER_UserGraph.cxx b/src/MEDPartitioner/MEDPARTITIONER_UserGraph.cxx index badb00a96..d11e11789 100644 --- a/src/MEDPartitioner/MEDPARTITIONER_UserGraph.cxx +++ b/src/MEDPartitioner/MEDPARTITIONER_UserGraph.cxx @@ -52,7 +52,7 @@ UserGraph::~UserGraph() { } -void UserGraph::partGraph(int ndomain, const std::string& options, ParaDomainSelector* sel) +void UserGraph::partGraph(int /*ndomain*/, const std::string& /*options*/, ParaDomainSelector* /*sel*/) { std::cerr << "MEDPARTITIONER::UserGraph::partGraph() should not have to be used" << std::endl; } -- 2.39.2