From bae17050df63e404200c5ed7dbe2b1dd63ad53c7 Mon Sep 17 00:00:00 2001 From: Matti Pellika <matti.pellikka@tut.fi> Date: Fri, 29 Jan 2010 08:48:57 +0000 Subject: [PATCH] Another try .. --- CMakeLists.txt | 3 ++- Geo/CellComplex.cpp | 7 ++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d15cde5fa5..167fbf3993 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -73,7 +73,8 @@ set(GMSH_API Geo/MPyramid.h Geo/MElementCut.h Geo/discreteVertex.h Geo/discreteEdge.h Geo/discreteFace.h Geo/discreteRegion.h Geo/SPoint2.h Geo/SPoint3.h Geo/SVector3.h Geo/STensor3.h Geo/SBoundingBox3d.h Geo/Pair.h Geo/Range.h - Geo/SOrientedBoundingBox.h Geo/CellComplex.h Geo/ChainComplex.h + Geo/SOrientedBoundingBox.h Geo/CellComplex.h Geo/ChainComplex.h Geo/Cell.h + Geo/Homology.h Mesh/meshGEdge.h Mesh/meshGFace.h Mesh/meshGFaceOptimize.h Mesh/meshGFaceDelaunayInsertion.h Solver/dofManager.h Solver/femTerm.h Solver/laplaceTerm.h Solver/elasticityTerm.h diff --git a/Geo/CellComplex.cpp b/Geo/CellComplex.cpp index 3fd25ddbe2..5b57a935ab 100644 --- a/Geo/CellComplex.cpp +++ b/Geo/CellComplex.cpp @@ -502,11 +502,8 @@ void CellComplex::removeSubdomain(){ for(int i = 0; i < 4; i++){ for(citer cit = firstCell(i); cit != lastCell(i); ){ Cell* cell = *cit; - if(cell->inSubdomain()) { - removeCell(cell); - cit++; - } - else ++cit; + cit++; + if(cell->inSubdomain()) removeCell(cell); } } -- GitLab