Skip to content
Snippets Groups Projects
Commit f2ef9470 authored by Martin Schneider's avatar Martin Schneider
Browse files

[2pncmin] Beautifications

parent fb66759c
No related branches found
No related tags found
Loading
......@@ -399,10 +399,8 @@ public:
{
if (phaseIdx < numPhases)
return this->fluidState_.density(phaseIdx);
else if (phaseIdx >= numPhases)
return FluidSystem::precipitateDensity(phaseIdx);
else
DUNE_THROW(Dune::InvalidStateException, "Invalid phase index " << phaseIdx);
return FluidSystem::precipitateDensity(phaseIdx);
}
/*!
* \brief Returns the mass density of a given phase within the
......@@ -414,10 +412,8 @@ public:
{
if (phaseIdx < numPhases)
return this->fluidState_.molarDensity(phaseIdx);
else if (phaseIdx >= numPhases)
return FluidSystem::precipitateMolarDensity(phaseIdx);
else
DUNE_THROW(Dune::InvalidStateException, "Invalid phase index " << phaseIdx);
return FluidSystem::precipitateMolarDensity(phaseIdx);
}
/*!
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment