@@ -114,7 +114,7 @@ void CpGridData::populateGlobalCellIndexSet()
114114 auto & cell_indexset = cellIndexSet ();
115115 cell_indexset.beginResize ();
116116 for (int index = 0 , end = size (0 ); index != end ; ++index){
117- cell_indexset.add (global_id_set_->id (Entity<0 >(*this , EntityRep<0 >(index, true ))),
117+ cell_indexset.add (global_id_set_->idLevelZero (Entity<0 >(*this , EntityRep<0 >(index, true ))),
118118 ParallelIndexSet::LocalIndex (index, AttributeSet::owner, true ));
119119 }
120120 cell_indexset.endResize ();
@@ -586,7 +586,7 @@ struct Cell2PointsDataHandle
586586 const auto & points = globalCell2Points_[i];
587587 std::for_each (points.begin (), points.end (),
588588 [&buffer, this ](const int & point){
589- buffer.write (globalIds_.id (EntityRep<3 >(point, true )));});
589+ buffer.write (globalIds_.idLevelZero (EntityRep<3 >(point, true )));});
590590 for (const auto & point: globalAdditionalPointIds_[i])
591591 {
592592 buffer.write (point);
@@ -703,7 +703,7 @@ struct SparseTableDataHandle
703703 void gather (B& buffer, const T& t)
704704 {
705705 const auto & entries = global_[t.index ()];
706- std::for_each (entries.begin (), entries.end (), [&buffer, this ](const DataType& i){buffer.write (globalIds_.id (EntityRep<3 >(i, true )));});
706+ std::for_each (entries.begin (), entries.end (), [&buffer, this ](const DataType& i){buffer.write (globalIds_.idLevelZero (EntityRep<3 >(i, true )));});
707707 }
708708 template <class B , class T >
709709 void scatter (B& buffer, const T& t, std::size_t )
@@ -774,7 +774,7 @@ struct OrientedEntityTableDataHandle
774774 {
775775 std::for_each (entries.begin (), entries.end (),
776776 [&buffer, this ](const ToEntity& i){
777- int id = globalIds_->id (i);
777+ int id = globalIds_->idLevelZero (i);
778778 if (!i.orientation ())
779779 id = ~id;
780780 buffer.write (id);});
@@ -845,7 +845,7 @@ struct IndexSet2IdSet
845845 map_[entry.local ()] = entry.global ();
846846 }
847847 template <class T >
848- int id (const T& t) const
848+ int idLevelZero (const T& t) const
849849 {
850850 return map_[t.index ()];
851851 }
@@ -1362,7 +1362,7 @@ std::vector<std::set<int> > computeAdditionalFacePoints(const std::vector<std::a
13621362 auto candidate = std::find (points.begin (), points.end (), point);
13631363 if (candidate == points.end ())
13641364 // point is not a corner of the cell
1365- additionalFacePoints[c].insert (globalIds.id (EntityRep<3 >(point,true )));
1365+ additionalFacePoints[c].insert (globalIds.idLevelZero (EntityRep<3 >(point,true )));
13661366 }
13671367 }
13681368 return additionalFacePoints;
@@ -1465,7 +1465,7 @@ std::map<int,int> computeCell2Point(const CpGrid& grid,
14651465 createInterfaceList<true >(procCellLists, globalCell2Points,
14661466 globalAdditionalPoints,
14671467 [&globalIds](int i){
1468- return globalIds.id (EntityRep<3 >(i, true ));
1468+ return globalIds.idLevelZero (EntityRep<3 >(i, true ));
14691469 },
14701470 globalMap2Local,
14711471 pointInterfaces[procCellLists.first ]);
0 commit comments