Merge pull request #4894 from akva2/janitoring

fixed: quell unused variable warning without OpenCL
This commit is contained in:
Markus Blatt 2023-09-26 14:25:46 +02:00 committed by GitHub
commit 2f0e167d2c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -181,8 +181,9 @@ public:
void prepare(const Matrix& M, Vector& b)
{
OPM_TIMEBLOCK(prepare);
const bool firstcall = (this->matrix_ == nullptr);
[[maybe_unused]] const bool firstcall = (this->matrix_ == nullptr);
ParentType::prepare(M,b);
#if HAVE_OPENCL
// update matrix entries for solvers.
if (firstcall && bdaBridge_) {