mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Fixes compilation of WellContributions with deactivated OpenCL.
OpenCL header was included and OpenclKernels used unconditionally in WellContributions.cpp. As this file is compiled if CUDA is found, too it lead to undefined references for e.g. cl::CommandQueue if opencl headers were there and compile error if not.
This commit is contained in:
parent
2bd5b30cda
commit
c54e85a8eb
@ -23,13 +23,14 @@
|
||||
#include <opm/common/OpmLog/OpmLog.hpp>
|
||||
#include <opm/common/ErrorMacros.hpp>
|
||||
|
||||
#include <opm/simulators/linalg/bda/openclKernels.hpp>
|
||||
#include <opm/simulators/linalg/bda/WellContributions.hpp>
|
||||
|
||||
namespace Opm
|
||||
{
|
||||
|
||||
#if HAVE_OPENCL
|
||||
using Opm::Accelerator::OpenclKernels;
|
||||
#endif
|
||||
|
||||
WellContributions::WellContributions(std::string accelerator_mode, bool useWellConn){
|
||||
if(accelerator_mode.compare("cusparse") == 0){
|
||||
|
Loading…
Reference in New Issue
Block a user