Skip to content
Snippets Groups Projects
Commit 772e2f89 authored by Kilian Weishaupt's avatar Kilian Weishaupt
Browse files

[porousmediumflow][problem] Minor beautifications

* replace typedefs by aliases
parent ef1bc715
No related branches found
No related tags found
2 merge requests!617[WIP] Next,!491Fix/#352 inital phase presence on next
...@@ -41,25 +41,25 @@ NEW_PROP_TAG(ProblemEnableGravity); //!< Returns whether gravity is considered i ...@@ -41,25 +41,25 @@ NEW_PROP_TAG(ProblemEnableGravity); //!< Returns whether gravity is considered i
template<class TypeTag> template<class TypeTag>
class ImplicitPorousMediaProblem : public ImplicitProblem<TypeTag> class ImplicitPorousMediaProblem : public ImplicitProblem<TypeTag>
{ {
typedef ImplicitProblem<TypeTag> ParentType; using ParentType = ImplicitProblem<TypeTag>;
typedef typename GET_PROP_TYPE(TypeTag, Problem) Implementation; using Implementation = typename GET_PROP_TYPE(TypeTag, Problem);
typedef typename GET_PROP_TYPE(TypeTag, TimeManager) TimeManager; using TimeManager = typename GET_PROP_TYPE(TypeTag, TimeManager);
typedef typename GET_PROP_TYPE(TypeTag, FVElementGeometry) FVElementGeometry; using FVElementGeometry = typename GET_PROP_TYPE(TypeTag, FVElementGeometry);
typedef typename GET_PROP_TYPE(TypeTag, SpatialParams) SpatialParams; using SpatialParams = typename GET_PROP_TYPE(TypeTag, SpatialParams);
typedef typename GET_PROP_TYPE(TypeTag, GridView) GridView; using GridView = typename GET_PROP_TYPE(TypeTag, GridView);
enum { enum {
dim = GridView::dimension, dim = GridView::dimension,
dimWorld = GridView::dimensionworld dimWorld = GridView::dimensionworld
}; };
typedef typename GridView::template Codim<0>::Entity Element; using Element = typename GridView::template Codim<0>::Entity;
typedef typename GridView::Traits::template Codim<dim>::Entity Vertex; using Vertex = typename GridView::Traits::template Codim<dim>::Entity;
typedef typename GridView::ctype CoordScalar; using CoordScalar = typename GridView::ctype;
typedef Dune::FieldVector<CoordScalar, dimWorld> GlobalPosition; using GlobalPosition = Dune::FieldVector<CoordScalar, dimWorld>;
typedef typename GET_PROP_TYPE(TypeTag, Scalar) Scalar; using Scalar = typename GET_PROP_TYPE(TypeTag, Scalar);
enum { isBox = GET_PROP_VALUE(TypeTag, ImplicitIsBox) }; enum { isBox = GET_PROP_VALUE(TypeTag, ImplicitIsBox) };
......
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