From 1fad665aee13fd6be6646def4d85b8bdd1267d72 Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Wed, 18 Jan 2012 13:41:46 +0000 Subject: [PATCH] pp --- Geo/GModel.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Geo/GModel.cpp b/Geo/GModel.cpp index ef5c590652..f2ea9d9d00 100644 --- a/Geo/GModel.cpp +++ b/Geo/GModel.cpp @@ -2735,11 +2735,13 @@ void GModel::computeHomology() std::pair<std::multimap<dpair, std::string>::iterator, std::multimap<dpair, std::string>::iterator> itp = _homologyRequests.equal_range(*it); - Homology* homology = new Homology(this, itp.first->first.first, itp.first->first.second); + Homology* homology = new Homology(this, itp.first->first.first, + itp.first->first.second); CellComplex *cellcomplex = homology->createCellComplex(); if(cellcomplex->getSize(0)){ - for(std::multimap<dpair, std::string>::iterator itt = itp.first; itt != itp.second; itt++){ - // make sure to restore cell complex to non-reduced state if we are reuing it + for(std::multimap<dpair, std::string>::iterator itt = itp.first; + itt != itp.second; itt++){ + // restore cell complex to non-reduced state if we are reusing it if(itt != itp.first) cellcomplex->restoreComplex(); std::string type = itt->second; if(type == "Generators") -- GitLab