Commit 59797bbb authored by aetcheve's avatar aetcheve

fix some warnings

parent 3205c613
...@@ -135,6 +135,7 @@ protected: ...@@ -135,6 +135,7 @@ protected:
// Manage border limits // Manage border limits
if(arrayIndex == this->leftLeafIndex && arrayIndex == this->rightLeafIndex){ if(arrayIndex == this->leftLeafIndex && arrayIndex == this->rightLeafIndex){
this->rightLeafIndex = -1;
// only one cells, return true // only one cells, return true
return true; return true;
} }
......
...@@ -357,7 +357,7 @@ template <int ORDER, class MatrixKernelClass> ...@@ -357,7 +357,7 @@ template <int ORDER, class MatrixKernelClass>
unsigned int ComputeAndCompress(const MatrixKernelClass *const MatrixKernel, unsigned int ComputeAndCompress(const MatrixKernelClass *const MatrixKernel,
const FReal CellWidth, const FReal CellWidth,
const FReal CellWidthExtension, const FReal CellWidthExtension,
const FReal epsilon, const FReal /*epsilon*/,
FReal* &U, FReal* &U,
FReal** &C, FReal** &C,
FReal* &B) FReal* &B)
......
...@@ -83,7 +83,7 @@ struct FInterpMatrixKernelR : FInterpAbstractMatrixKernel ...@@ -83,7 +83,7 @@ struct FInterpMatrixKernelR : FInterpAbstractMatrixKernel
FInterpMatrixKernelR() {} FInterpMatrixKernelR() {}
// copy ctor // copy ctor
FInterpMatrixKernelR(const FInterpMatrixKernelR& other) FInterpMatrixKernelR(const FInterpMatrixKernelR& /*other*/)
{} {}
// returns position in reduced storage // returns position in reduced storage
...@@ -151,7 +151,7 @@ struct FInterpMatrixKernelRH :FInterpMatrixKernelR{ ...@@ -151,7 +151,7 @@ struct FInterpMatrixKernelRH :FInterpMatrixKernelR{
// copy ctor // copy ctor
FInterpMatrixKernelRH(const FInterpMatrixKernelRH& other) FInterpMatrixKernelRH(const FInterpMatrixKernelRH& other)
: LX(other.LX), LY(other.LY), LZ(other.LZ) :FInterpMatrixKernelR(other), LX(other.LX), LY(other.LY), LZ(other.LZ)
{} {}
// evaluate interaction // evaluate interaction
...@@ -219,7 +219,7 @@ struct FInterpMatrixKernelRR : FInterpAbstractMatrixKernel ...@@ -219,7 +219,7 @@ struct FInterpMatrixKernelRR : FInterpAbstractMatrixKernel
FInterpMatrixKernelRR() {} FInterpMatrixKernelRR() {}
// copy ctor // copy ctor
FInterpMatrixKernelRR(const FInterpMatrixKernelRR& other) FInterpMatrixKernelRR(const FInterpMatrixKernelRR& /*other*/)
{} {}
// returns position in reduced storage // returns position in reduced storage
...@@ -288,7 +288,7 @@ struct FInterpMatrixKernelLJ : FInterpAbstractMatrixKernel ...@@ -288,7 +288,7 @@ struct FInterpMatrixKernelLJ : FInterpAbstractMatrixKernel
FInterpMatrixKernelLJ() {} FInterpMatrixKernelLJ() {}
// copy ctor // copy ctor
FInterpMatrixKernelLJ(const FInterpMatrixKernelLJ& other) FInterpMatrixKernelLJ(const FInterpMatrixKernelLJ& /*other*/)
{} {}
// returns position in reduced storage // returns position in reduced storage
......
...@@ -262,7 +262,7 @@ struct FMath{ ...@@ -262,7 +262,7 @@ struct FMath{
FReal getmax() const{ FReal getmax() const{
return max; return max;
} }
FReal getNbElements() const{ int getNbElements() const{
return nbElements; return nbElements;
} }
void setNbElements(const int & n) { void setNbElements(const int & n) {
......
...@@ -263,31 +263,31 @@ public: ...@@ -263,31 +263,31 @@ public:
// Mpi Types meta function // Mpi Types meta function
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
static const MPI_Datatype GetType(const long long&){ static MPI_Datatype GetType(const long long&){
return MPI_LONG_LONG; return MPI_LONG_LONG;
} }
static const MPI_Datatype GetType(const long int&){ static MPI_Datatype GetType(const long int&){
return MPI_LONG; return MPI_LONG;
} }
static const MPI_Datatype GetType(const double&){ static MPI_Datatype GetType(const double&){
return MPI_DOUBLE; return MPI_DOUBLE;
} }
static const MPI_Datatype GetType(const float&){ static MPI_Datatype GetType(const float&){
return MPI_FLOAT; return MPI_FLOAT;
} }
static const MPI_Datatype GetType(const int&){ static MPI_Datatype GetType(const int&){
return MPI_INT; return MPI_INT;
} }
static const MPI_Datatype GetType(const char&){ static MPI_Datatype GetType(const char&){
return MPI_CHAR; return MPI_CHAR;
} }
static const MPI_Datatype GetType(const FComplexe& a){ static MPI_Datatype GetType(const FComplexe& a){
MPI_Datatype FMpiComplexe; MPI_Datatype FMpiComplexe;
MPI_Type_contiguous(2, GetType(a.getReal()) , &FMpiComplexe); MPI_Type_contiguous(2, GetType(a.getReal()) , &FMpiComplexe);
return FMpiComplexe; return FMpiComplexe;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment