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:
parent
12161d9c79
commit
b5bd0a519f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user