Add phaseIsActive(unsigned int) to base fluid system (returning true).

This promotes the feature from being a special function for the black oil
fluid system to being in theory available for all. The need for this
arose in downstream code.
This commit is contained in:
Atgeirr Flø Rasmussen 2020-05-29 14:49:59 +02:00
parent 12161d9c79
commit b5bd0a519f

View File

@ -274,6 +274,13 @@ public:
{
throw std::runtime_error("Not implemented: The fluid system '"+Dune::className<Implementation>()+"' does not provide a heatCapacity() method!");
}
//! \brief Returns whether a fluid phase is active
static unsigned phaseIsActive(unsigned /*phaseIdx*/)
{
return true;
}
};
} // namespace Opm