mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Fixed type of gpu_mode when HAVE_CUDA is false
This commit is contained in:
parent
e4417fdc01
commit
26133c4fd7
@ -327,7 +327,7 @@ protected:
|
|||||||
const int linear_solver_verbosity = parameters_.linear_solver_verbosity_;
|
const int linear_solver_verbosity = parameters_.linear_solver_verbosity_;
|
||||||
bdaBridge.reset(new BdaBridge(gpu_mode, linear_solver_verbosity, maxit, tolerance));
|
bdaBridge.reset(new BdaBridge(gpu_mode, linear_solver_verbosity, maxit, tolerance));
|
||||||
#else
|
#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) {
|
if (gpu_mode.compare("none") != 0) {
|
||||||
OPM_THROW(std::logic_error,"Error cannot use GPU solver since CUDA was not found during compilation");
|
OPM_THROW(std::logic_error,"Error cannot use GPU solver since CUDA was not found during compilation");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user