From 84741c890418a61c7dc8a83173aef4a38c7d6949 Mon Sep 17 00:00:00 2001 From: Anna Wellmann <a.wellmann@tu-bs.de> Date: Mon, 27 Jun 2022 15:27:43 +0000 Subject: [PATCH] Do not throw exception for empty config --- src/gpu/VirtualFluids_GPU/Parameter/Parameter.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/gpu/VirtualFluids_GPU/Parameter/Parameter.cpp b/src/gpu/VirtualFluids_GPU/Parameter/Parameter.cpp index 06c849b79..9dec9bd3c 100644 --- a/src/gpu/VirtualFluids_GPU/Parameter/Parameter.cpp +++ b/src/gpu/VirtualFluids_GPU/Parameter/Parameter.cpp @@ -68,16 +68,12 @@ void Parameter::readConfigData(const vf::basics::ConfigurationFile &configData) { if (configData.contains("NumberOfDevices")) this->setMaxDev(configData.getValue<int>("NumberOfDevices")); - ////////////////////////////////////////////////////////////////////////// if (configData.contains("Devices")) this->setDevices(configData.getVector<uint>("Devices")); ////////////////////////////////////////////////////////////////////////// if (configData.contains("Path")) this->setOutputPath(configData.getValue<std::string>("Path")); - else - throw std::runtime_error("<Path> need to be defined in config file!"); - ////////////////////////////////////////////////////////////////////////// if (configData.contains("Prefix")) this->setOutputPrefix(configData.getValue<std::string>("Prefix")); -- GitLab