Set default value for use_gpu, using Dune would segfault because of the unitialized value

This commit is contained in:
T.D. (Tongdong) Qiu
2020-06-23 18:20:10 +02:00
parent b9e4bd3a95
commit e4417fdc01

View File

@@ -49,7 +49,7 @@ class BdaBridge
private:
std::unique_ptr<bda::BdaSolver> backend;
std::string gpu_mode;
bool use_gpu;
bool use_gpu = false;
public:
/// Construct a BdaBridge