Skip to content
Snippets Groups Projects
Commit 70d7d774 authored by Ansgar Burchardt's avatar Ansgar Burchardt
Browse files

[cleanup] simplify typedef of `EntityImps`

parent 51458121
No related branches found
No related tags found
1 merge request!24Minor changes
......@@ -678,17 +678,6 @@ class FoamGrid :
// std::list<FoamGridEntityImp<dimgrid, dimgrid, dimworld> > > > entityImps_;
// conditional typename depending on dimension of grid (1 or 2)
typedef typename std::conditional<
dimgrid==2,
typename std::vector<std::tuple<std::list<FoamGridEntityImp<0, dimgrid, dimworld> >,
std::list<FoamGridEntityImp<1, dimgrid, dimworld> >,
std::list<FoamGridEntityImp<2, dimgrid, dimworld> > > >,
typename std::vector<std::tuple<std::list<FoamGridEntityImp<0, dimgrid, dimworld> >,
std::list<FoamGridEntityImp<1, dimgrid, dimworld> > > >
>::type EntityImps;
EntityImps entityImps_;
typedef typename std::conditional<
dimgrid==2,
std::tuple<std::list<FoamGridEntityImp<0, dimgrid, dimworld> >,
......@@ -698,6 +687,10 @@ class FoamGrid :
std::list<FoamGridEntityImp<1, dimgrid, dimworld> > >
>::type EntityTuple;
using EntityImps = std::vector<EntityTuple>;
EntityImps entityImps_;
//! Our set of level indices
mutable std::vector<FoamGridLevelIndexSet<const FoamGrid>*> levelIndexSets_;
......
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