Commit 9945877f authored by Lukas Riedel's avatar Lukas Riedel

Use logger in FlowBoundary

parent d55c9406
......@@ -40,12 +40,19 @@ namespace Dune{
*/
FlowBoundary(const Dune::ParameterTree& config)
{
const auto log = get_logger("RIC");
const auto filename = config.get<std::string>("boundary.file");
std::string bcFileType = config.get<std::string>("boundary.fileType");
log->info("Reading boundary condition data file: {}", filename);
if(bcFileType == "rectangularGrid") {
log->debug("Using 'rectangularGrid' BC interface");
bcDataHandler = std::make_unique<RectangularGrid<Traits>>(config);
}
else
else {
log->error("Unknown boundary condition file type: {}", bcFileType);
DUNE_THROW(IOError,"unknown bcFileType specified!");
}
}
/// Return next time at which any boundary condition changes. Return -1.0 by default
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment