Merge pull request #4796 from akva2/janitoring

Bda: mark some more parameters maybe_unused
This commit is contained in:
Bård Skaflestad 2023-08-15 13:44:15 +02:00 committed by GitHub
commit 118acff2ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 4 deletions

View File

@ -89,7 +89,7 @@ template<class Matrix, class Vector>
bool BdaSolverInfo<Matrix,Vector>::
apply(Vector& rhs,
const bool useWellConn,
WellContribFunc getContribs,
[[maybe_unused]] WellContribFunc getContribs,
const int rank,
Matrix& matrix,
Vector& x,

View File

@ -61,10 +61,11 @@ namespace Opm
template <class BridgeMatrix, class BridgeVector, int block_size>
BdaBridge<BridgeMatrix, BridgeVector, block_size>::BdaBridge(std::string accelerator_mode_,
int linear_solver_verbosity, int maxit,
double tolerance,
int linear_solver_verbosity,
[[maybe_unused]] int maxit,
[[maybe_unused]] double tolerance,
[[maybe_unused]] unsigned int platformID,
unsigned int deviceID,
[[maybe_unused]] unsigned int deviceID,
[[maybe_unused]] bool opencl_ilu_parallel,
[[maybe_unused]] std::string linsolver)
: verbosity(linear_solver_verbosity), accelerator_mode(accelerator_mode_)