Commit 67445728 authored by christian.rheinbay's avatar christian.rheinbay
Browse files

[302-fix-overlapcells-containing-cells-from-cells] jetz aber nochmal

parent 3fb00892
......@@ -24,7 +24,12 @@ void Overlap::OverlapMesh(Mesh &mesh) {
pvout(1) << mesh.OverlapCount() << " overlap cells on logging process. "
<< mesh.OverlapCountGeometry() << " overlap cells on all processes."
<< endl;
for (cell oc=mesh.overlap(); oc != mesh.overlap_end(); ++oc){
cell c= mesh.find_cell(oc());
if (c != mesh.cells_end()) {
mesh.RemoveOverlapCell(oc);
}
}
mout.EndBlock(true);
}
......
......@@ -851,6 +851,10 @@ int Mesh::ProcSetsCountGeometryWithoutInfty() const {
return PPM->SumOnCommSplit(count, commSplit);
}
void Mesh::RemoveOverlapCell(cell oc) {
meshOverlapCells.Remove(oc());
}
......
......@@ -27,6 +27,7 @@ public:
class Mesh {
friend class DataMesh;
protected:
int verbose = 1;
......@@ -168,6 +169,8 @@ public:
virtual void RemoveCell(cell c);
void RemoveOverlapCell(cell oc);
vertex vertices() const;
vertex vertices_end() const;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment