From 6fd564fb0c4fccbca7c02bdc87831dbc48860da9 Mon Sep 17 00:00:00 2001 From: Matti Pellika <matti.pellikka@tut.fi> Date: Tue, 3 Apr 2012 05:53:02 +0000 Subject: [PATCH] A fix. --- Geo/CellComplex.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Geo/CellComplex.cpp b/Geo/CellComplex.cpp index 7ea6d4a226..1f34fe35d0 100644 --- a/Geo/CellComplex.cpp +++ b/Geo/CellComplex.cpp @@ -338,6 +338,7 @@ int CellComplex::reduceComplex(bool docombine, bool omit) Msg::Debug(" %d volumes, %d faces, %d edges and %d vertices", getSize(3), getSize(2), getSize(1), getSize(0)); + if(!getSize(0)) return 0; int count = 0; std::vector<Cell*> empty; for(int i = 3; i > 0; i--) count = count + reduction(i, false, empty); @@ -400,6 +401,7 @@ int CellComplex::coreduceComplex(bool docombine, bool omit) Msg::Debug(" %d volumes, %d faces, %d edges and %d vertices", getSize(3), getSize(2), getSize(1), getSize(0)); + if(!getSize(0)) return 0; int count = 0; removeSubdomain(); std::vector<Cell*> empty; -- GitLab