anonymize unused parameters to quell compiler warnings

This commit is contained in:
Arne Morten Kvarving 2024-07-30 10:55:53 +02:00
parent 2a9077a45c
commit 405a907d63
3 changed files with 3 additions and 3 deletions

View File

@ -103,7 +103,7 @@ public:
// via Lz = y // via Lz = y
// and Ux = z // and Ux = z
void apply(const cl::Buffer& y, cl::Buffer& x) override; void apply(const cl::Buffer& y, cl::Buffer& x) override;
void apply(Scalar& y, Scalar& x) {} void apply(Scalar&, Scalar&) {}
std::tuple<std::vector<int>, std::vector<int>, std::vector<int>> std::tuple<std::vector<int>, std::vector<int>, std::vector<int>>
get_preconditioner_structure() get_preconditioner_structure()

View File

@ -125,7 +125,7 @@ public:
// apply preconditioner, x = prec(y) // apply preconditioner, x = prec(y)
void apply(const cl::Buffer& y, cl::Buffer& x) override; void apply(const cl::Buffer& y, cl::Buffer& x) override;
void apply(Scalar& y, Scalar& x) {} void apply(Scalar&, Scalar&) {}
}; };
/// Similar function to csrPatternToCsc. It gives an offset map from CSR to CSC instead of the full CSR to CSC conversion. /// Similar function to csrPatternToCsc. It gives an offset map from CSR to CSC instead of the full CSR to CSC conversion.

View File

@ -95,7 +95,7 @@ public:
// applies blocked ilu0 // applies blocked ilu0
// also applies amg for pressure component // also applies amg for pressure component
void apply(const cl::Buffer& y, cl::Buffer& x) override; void apply(const cl::Buffer& y, cl::Buffer& x) override;
void apply(Scalar& y, Scalar& x) {} void apply(Scalar&, Scalar&) {}
bool create_preconditioner(BlockedMatrix<Scalar>* mat) override; bool create_preconditioner(BlockedMatrix<Scalar>* mat) override;
bool create_preconditioner(BlockedMatrix<Scalar>* mat, bool create_preconditioner(BlockedMatrix<Scalar>* mat,