Commit 3a9fee7f authored by Santiago Ospina's avatar Santiago Ospina

Adds meaningful output for invalid state exception of grid functions

Signed-off-by: Santiago Ospina De Los Ríos's avatarSantiago Ospina <santiago.ospina@iup.uni-heidelberg.de>
parent 7eea57f4
......@@ -80,9 +80,11 @@ template<typename Traits>
void TransportSimulation<Traits>::operator_setup ()
{
if (!gf_water_flux)
DUNE_THROW(Dune::Exception," ");
DUNE_THROW(Dune::InvalidStateException,
"Pointer to gf_water_flux is invalid!");
if (!gf_saturation)
DUNE_THROW(Dune::Exception," ");
DUNE_THROW(Dune::InvalidStateException,
"Pointer to gf_saturation is invalid!");
// --- Local Operators ---
double diff_coeff = inifile.get<double>("parameters.molecularDiffusion");
......
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