From a6ed584ae2f438874a379ee170148bc48a75729b Mon Sep 17 00:00:00 2001 From: David Landa Marban Date: Fri, 31 May 2024 09:00:57 +0200 Subject: [PATCH] [FIX]: Build issue if OpenMP is not present --- opm/simulators/linalg/ISTLSolverBda.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/opm/simulators/linalg/ISTLSolverBda.cpp b/opm/simulators/linalg/ISTLSolverBda.cpp index 422905990..29a7e29df 100644 --- a/opm/simulators/linalg/ISTLSolverBda.cpp +++ b/opm/simulators/linalg/ISTLSolverBda.cpp @@ -124,7 +124,9 @@ apply(Vector& rhs, //NOTE: copyThread can safely write to jacMat because in solve_system both matrix and *blockJacobiForGPUILU0_ diagonal entries //are checked and potentially overwritten in replaceZeroDiagonal() by mainThread. However, no matter the thread writing sequence, //the final entry in jacMat is correct. +#if HAVE_OPENMP copyThread = std::make_shared([&](){this->copyMatToBlockJac(matrix, *blockJacobiForGPUILU0_);}); +#endif // HAVE_OPENMP } else { this->copyMatToBlockJac(matrix, *blockJacobiForGPUILU0_);