Fixed type of gpu_mode when HAVE_CUDA is false

This commit is contained in:
T.D. (Tongdong) Qiu 2020-06-24 15:55:03 +02:00
parent e4417fdc01
commit 26133c4fd7

View File

@ -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");
}