mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
fixed: quell unused variable warning without OpenCL
This commit is contained in:
parent
8705cd16ad
commit
eedfafe423
@ -181,8 +181,9 @@ public:
|
|||||||
void prepare(const Matrix& M, Vector& b)
|
void prepare(const Matrix& M, Vector& b)
|
||||||
{
|
{
|
||||||
OPM_TIMEBLOCK(prepare);
|
OPM_TIMEBLOCK(prepare);
|
||||||
const bool firstcall = (this->matrix_ == nullptr);
|
[[maybe_unused]] const bool firstcall = (this->matrix_ == nullptr);
|
||||||
ParentType::prepare(M,b);
|
ParentType::prepare(M,b);
|
||||||
|
|
||||||
#if HAVE_OPENCL
|
#if HAVE_OPENCL
|
||||||
// update matrix entries for solvers.
|
// update matrix entries for solvers.
|
||||||
if (firstcall && bdaBridge_) {
|
if (firstcall && bdaBridge_) {
|
||||||
|
Loading…
Reference in New Issue
Block a user