21#include <opm/common/ErrorMacros.hpp>
26namespace Opm::Parameters
37enum class LinearSolverAcceleratorType { GPU = 0, CPU = 1 };
46toString(LinearSolverAcceleratorType type)
49 case LinearSolverAcceleratorType::GPU:
51 case LinearSolverAcceleratorType::CPU:
54 OPM_THROW(std::runtime_error,
"Unknown LinearSolverAcceleratorType");
65inline LinearSolverAcceleratorType
66linearSolverAcceleratorTypeFromString(
const std::string&
str)
71 return LinearSolverAcceleratorType::GPU;
73 return LinearSolverAcceleratorType::CPU;
75 OPM_THROW(std::runtime_error,
"Unknown LinearSolverAcceleratorType: " +
str);
82inline LinearSolverAcceleratorType
83linearSolverAcceleratorTypeFromCLI()
85 return linearSolverAcceleratorTypeFromString(Parameters::Get<LinearSolverAccelerator>());
Declares the parameters for the black oil model.
Declares the properties required by the black oil model.
constexpr auto getPropValue()
get the value data member of a property
Definition propertysystem.hh:240
For the CLI options.
Definition LinearSolverAcceleratorType.hpp:32