Commit a72b1824 authored by Dmitry Bagaev's avatar Dmitry Bagaev

Fix warnings for Intel Compilers

warning #858: type qualifier on return type is meaningless
parent 57eb7e0a
......@@ -16,7 +16,7 @@ if(USE_MPI)
endif()
endif(USE_MPI)
set_property(TARGET AdaptiveMeshLib PROPERTY PUBLIC_HEADER "${PROJECT_BINARY_DIR}/Examples/AdaptiveMesh/amesh.h")
set_property(TARGET AdaptiveMeshLib PROPERTY PUBLIC_HEADER "${CMAKE_CURRENT_SOURCE_DIR}/amesh.h")
install(TARGETS AdaptiveMeshLib EXPORT inmost-targets
LIBRARY DESTINATION lib
......
......@@ -332,10 +332,10 @@ namespace INMOST
void SetParameter(std::string name, std::string value);
/// Return the number of iterations performed by the last solution.
/// @see Sparse::Solve
const INMOST_DATA_ENUM_TYPE Iterations() const;
INMOST_DATA_ENUM_TYPE Iterations() const;
/// Return the final residual achieved by the last solution.
/// @see Sparse::Solve
const INMOST_DATA_REAL_TYPE Residual() const;
INMOST_DATA_REAL_TYPE Residual() const;
/// Get the reason of convergence or divergence of the last solution.
/// @see Sparse::Solve
const std::string ReturnReason() const;
......
......@@ -49,9 +49,9 @@ namespace INMOST {
virtual void SetParameter(std::string name, std::string value) = 0;
virtual const INMOST_DATA_ENUM_TYPE Iterations() const = 0;
virtual INMOST_DATA_ENUM_TYPE Iterations() const = 0;
virtual const INMOST_DATA_REAL_TYPE Residual() const = 0;
virtual INMOST_DATA_REAL_TYPE Residual() const = 0;
virtual const std::string ReturnReason() const = 0;
......
......@@ -153,11 +153,11 @@ namespace INMOST {
return solver->SetParameter(name, value);
}
const INMOST_DATA_ENUM_TYPE Solver::Iterations() const {
INMOST_DATA_ENUM_TYPE Solver::Iterations() const {
return solver->Iterations();
}
const INMOST_DATA_REAL_TYPE Solver::Residual() const {
INMOST_DATA_REAL_TYPE Solver::Residual() const {
return solver->Residual();
}
......
......@@ -120,11 +120,11 @@ namespace INMOST {
//throw INMOST::SolverUnsupportedOperation;
}
const INMOST_DATA_ENUM_TYPE SolverANI::Iterations() const {
INMOST_DATA_ENUM_TYPE SolverANI::Iterations() const {
return static_cast<INMOST_DATA_ENUM_TYPE>(solver.ITER);
}
const INMOST_DATA_REAL_TYPE SolverANI::Residual() const {
INMOST_DATA_REAL_TYPE SolverANI::Residual() const {
return solver.RESID;
}
......
......@@ -33,9 +33,9 @@ namespace INMOST {
virtual void SetParameter(std::string name, std::string value);
virtual const INMOST_DATA_ENUM_TYPE Iterations() const;
virtual INMOST_DATA_ENUM_TYPE Iterations() const;
virtual const INMOST_DATA_REAL_TYPE Residual() const;
virtual INMOST_DATA_REAL_TYPE Residual() const;
virtual const std::string ReturnReason() const;
......
......@@ -183,11 +183,11 @@ namespace INMOST {
#endif
}
const INMOST_DATA_ENUM_TYPE SolverFCBIILU2::Iterations() const {
INMOST_DATA_ENUM_TYPE SolverFCBIILU2::Iterations() const {
return static_cast<INMOST_DATA_ENUM_TYPE>(solver_data->ITER);
}
const INMOST_DATA_REAL_TYPE SolverFCBIILU2::Residual() const {
INMOST_DATA_REAL_TYPE SolverFCBIILU2::Residual() const {
return solver_data->RESID;
}
......
......@@ -35,9 +35,9 @@ namespace INMOST {
virtual void SetParameter(std::string name, std::string value);
virtual const INMOST_DATA_ENUM_TYPE Iterations() const;
virtual INMOST_DATA_ENUM_TYPE Iterations() const;
virtual const INMOST_DATA_REAL_TYPE Residual() const;
virtual INMOST_DATA_REAL_TYPE Residual() const;
virtual const std::string ReturnReason() const;
......
......@@ -94,11 +94,11 @@ namespace INMOST {
#endif
}
const INMOST_DATA_ENUM_TYPE SolverInner::Iterations() const {
INMOST_DATA_ENUM_TYPE SolverInner::Iterations() const {
return solver->GetIterations();
}
const INMOST_DATA_REAL_TYPE SolverInner::Residual() const {
INMOST_DATA_REAL_TYPE SolverInner::Residual() const {
return solver->GetResidual();
}
......
......@@ -38,9 +38,9 @@ namespace INMOST {
virtual void SetParameter(std::string name, std::string value);
virtual const INMOST_DATA_ENUM_TYPE Iterations() const;
virtual INMOST_DATA_ENUM_TYPE Iterations() const;
virtual const INMOST_DATA_REAL_TYPE Residual() const;
virtual INMOST_DATA_REAL_TYPE Residual() const;
virtual const std::string ReturnReason() const;
......
......@@ -191,11 +191,11 @@ namespace INMOST {
#endif
}
const INMOST_DATA_ENUM_TYPE SolverK3BIILU2::Iterations() const {
INMOST_DATA_ENUM_TYPE SolverK3BIILU2::Iterations() const {
return static_cast<INMOST_DATA_ENUM_TYPE>(solver_data->istat[2]);
}
const INMOST_DATA_REAL_TYPE SolverK3BIILU2::Residual() const {
INMOST_DATA_REAL_TYPE SolverK3BIILU2::Residual() const {
return solver_data->dstat[2];
}
......
......@@ -35,9 +35,9 @@ namespace INMOST {
virtual void SetParameter(std::string name, std::string value);
virtual const INMOST_DATA_ENUM_TYPE Iterations() const;
virtual INMOST_DATA_ENUM_TYPE Iterations() const;
virtual const INMOST_DATA_REAL_TYPE Residual() const;
virtual INMOST_DATA_REAL_TYPE Residual() const;
virtual const std::string ReturnReason() const;
......
......@@ -254,11 +254,11 @@ namespace INMOST {
#endif
}
const INMOST_DATA_ENUM_TYPE SolverPETSc::Iterations() const {
INMOST_DATA_ENUM_TYPE SolverPETSc::Iterations() const {
return static_cast<INMOST_DATA_ENUM_TYPE>(SolverIterationNumberPetsc(ksp));
}
const INMOST_DATA_REAL_TYPE SolverPETSc::Residual() const {
INMOST_DATA_REAL_TYPE SolverPETSc::Residual() const {
return SolverResidualNormPetsc(ksp);
}
......
......@@ -43,9 +43,9 @@ namespace INMOST {
virtual void SetParameter(std::string name, std::string value);
virtual const INMOST_DATA_ENUM_TYPE Iterations() const;
virtual INMOST_DATA_ENUM_TYPE Iterations() const;
virtual const INMOST_DATA_REAL_TYPE Residual() const;
virtual INMOST_DATA_REAL_TYPE Residual() const;
virtual const std::string ReturnReason() const;
......
......@@ -128,11 +128,11 @@ namespace INMOST {
//throw INMOST::SolverUnsupportedOperation;
}
const INMOST_DATA_ENUM_TYPE SolverSUPERLU::Iterations() const {
INMOST_DATA_ENUM_TYPE SolverSUPERLU::Iterations() const {
return 1;
}
const INMOST_DATA_REAL_TYPE SolverSUPERLU::Residual() const {
INMOST_DATA_REAL_TYPE SolverSUPERLU::Residual() const {
return 0;
}
......
......@@ -36,9 +36,9 @@ namespace INMOST {
virtual void SetParameter(std::string name, std::string value);
virtual const INMOST_DATA_ENUM_TYPE Iterations() const;
virtual INMOST_DATA_ENUM_TYPE Iterations() const;
virtual const INMOST_DATA_REAL_TYPE Residual() const;
virtual INMOST_DATA_REAL_TYPE Residual() const;
virtual const std::string ReturnReason() const;
......
......@@ -143,11 +143,11 @@ namespace INMOST {
#endif
}
const INMOST_DATA_ENUM_TYPE SolverTrilinos::Iterations() const {
INMOST_DATA_ENUM_TYPE SolverTrilinos::Iterations() const {
return lastIterations;
}
const INMOST_DATA_REAL_TYPE SolverTrilinos::Residual() const {
INMOST_DATA_REAL_TYPE SolverTrilinos::Residual() const {
return lastResidual;
}
......
......@@ -70,9 +70,9 @@ namespace INMOST {
virtual void SetParameter(std::string name, std::string value);
virtual const INMOST_DATA_ENUM_TYPE Iterations() const;
virtual INMOST_DATA_ENUM_TYPE Iterations() const;
virtual const INMOST_DATA_REAL_TYPE Residual() const;
virtual INMOST_DATA_REAL_TYPE Residual() const;
virtual const std::string ReturnReason() const;
......
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