Skip to content
Snippets Groups Projects

update UniqueBorderPartition to support UGGrid

Merged Praetorius, Simon requested to merge issue/unique_border_partition into master
All threads resolved!
1 file
+ 5
4
Compare changes
  • Side-by-side
  • Inline
@@ -49,7 +49,7 @@ namespace AMDiS
, idSet_(grid.globalIdSet())
{}
// Communicate all entities except for grid elements
// Communicate all entities
bool contains(int /*dim*/, int /*codim*/) const { return true; }
// communicate exactly one integer, the rank
@@ -74,7 +74,7 @@ namespace AMDiS
/// Returns whether id is owned by this rank
bool contains(IdType const& id) const
{
return !(notOwner_.count(id) > 0);
return notOwner_.count(id) == 0;
}
/// Number of iterations to perform the communication in order to collect all neighboring entities
@@ -155,12 +155,13 @@ namespace AMDiS
, idSet_(grid.localIdSet())
{}
// Communicate all entities except for grid elements
// Communicate all entities
bool contains(int /*dim*/, int codim) const { return true; }
// see size()
bool fixedSize(int /*dim*/, int codim) const { return codim != 0; }
// Always contains one int, the rank
// for codim=0 elements communicate data for all subEntities, otherwise communicate just the owner rank
template <class Entity>
std::size_t size(Entity const& e) const
{
Loading