Commit e580e288 authored by Santiago Ospina's avatar Santiago Ospina
Browse files

[Flux Reconstruction] Throw an error when engine is not available

parent c958467f
......@@ -106,9 +106,16 @@ RichardsSimulation<Traits>::RichardsSimulation (
this->_log->info("Setup complete");
if ((enable_fluxrc or enable_lifting) and not enable_rt_engine)
this->_log->warn("Flux reconstruction and Local Lifting are not available "
"for this configuration. Option will be ignored.");
if ((enable_fluxrc or enable_lifting) and not enable_rt_engine) {
if (enable_fluxrc)
this->_log->error(
" Flux reconstruction is not available for this configuration.");
if (enable_lifting)
this->_log->error(
" Local lifting is not available for this configuration.");
DUNE_THROW(Dune::NotImplemented,
"Flux reconstruction engine not implemented!");
}
}
template<typename Traits>
......
Supports Markdown
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