[FIX]: Build issue if OpenMP is not present

This commit is contained in:
David Landa Marban 2024-05-31 09:00:57 +02:00
parent 8b17c18ead
commit a6ed584ae2

View File

@ -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<std::thread>([&](){this->copyMatToBlockJac(matrix, *blockJacobiForGPUILU0_);});
#endif // HAVE_OPENMP
}
else {
this->copyMatToBlockJac(matrix, *blockJacobiForGPUILU0_);