From 26133c4fd74876d1895929f44250f44b70eb6e5c Mon Sep 17 00:00:00 2001 From: "T.D. (Tongdong) Qiu" Date: Wed, 24 Jun 2020 15:55:03 +0200 Subject: [PATCH] Fixed type of gpu_mode when HAVE_CUDA is false --- opm/simulators/linalg/ISTLSolverEbos.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opm/simulators/linalg/ISTLSolverEbos.hpp b/opm/simulators/linalg/ISTLSolverEbos.hpp index 9a0a0ef79..cd11da8e7 100644 --- a/opm/simulators/linalg/ISTLSolverEbos.hpp +++ b/opm/simulators/linalg/ISTLSolverEbos.hpp @@ -327,7 +327,7 @@ protected: const int linear_solver_verbosity = parameters_.linear_solver_verbosity_; bdaBridge.reset(new BdaBridge(gpu_mode, linear_solver_verbosity, maxit, tolerance)); #else - const bool gpu_mode = EWOMS_GET_PARAM(TypeTag, bool, GpuMode); + const std::string gpu_mode = EWOMS_GET_PARAM(TypeTag, std::string, GpuMode); if (gpu_mode.compare("none") != 0) { OPM_THROW(std::logic_error,"Error cannot use GPU solver since CUDA was not found during compilation"); }