Skip to content

Commit

Permalink
blackoilprimaryvariables have protected types and members
Browse files Browse the repository at this point in the history
to make it easier to have derived class.
  • Loading branch information
GitPaean committed Aug 19, 2020
1 parent c09fa58 commit ae5d11a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion opm/models/blackoil/blackoilprimaryvariables.hh
Expand Up @@ -63,6 +63,7 @@ class BlackOilBrineModule;
template <class TypeTag>
class BlackOilPrimaryVariables : public FvBasePrimaryVariables<TypeTag>
{
protected:
using ParentType = FvBasePrimaryVariables<TypeTag>;
using Implementation = GetPropType<TypeTag, Properties::PrimaryVariables>;

Expand Down Expand Up @@ -671,7 +672,7 @@ public:
#endif // NDEBUG
}

private:
protected:
Implementation& asImp_()
{ return *static_cast<Implementation*>(this); }

Expand Down

0 comments on commit ae5d11a

Please sign in to comment.