From d5863b0beb9b2a6fa95707bcf9445dea10431c19 Mon Sep 17 00:00:00 2001 From: Emilie Marchandise <emilie.marchandise@uclouvain.be> Date: Fri, 13 May 2011 09:31:05 +0000 Subject: [PATCH] Bloodflow OK for Aorta and Bifurcation --- Geo/GEdgeCompound.cpp | 1 + Geo/GModel.cpp | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Geo/GEdgeCompound.cpp b/Geo/GEdgeCompound.cpp index c9ae6aebc6..e951da4cd3 100644 --- a/Geo/GEdgeCompound.cpp +++ b/Geo/GEdgeCompound.cpp @@ -16,6 +16,7 @@ GEdgeCompound::GEdgeCompound(GModel *m, int tag, std::vector<GEdge*> &compound, std::vector<int> &orientation) : GEdge(m, tag, 0, 0), _compound(compound), _orientation(orientation) { + int N = _compound.size(); v0 = _orientation[0] ? _compound[0]->getBeginVertex() : _compound[0]->getEndVertex(); v1 = _orientation[N-1] ? _compound[N-1]->getEndVertex() : _compound[N-1]->getBeginVertex(); diff --git a/Geo/GModel.cpp b/Geo/GModel.cpp index 089d39d276..7f645e1903 100644 --- a/Geo/GModel.cpp +++ b/Geo/GModel.cpp @@ -1335,7 +1335,7 @@ void GModel::createTopologyFromMesh() if((*it)->geomType() == GEntity::DiscreteVolume) discRegions.push_back((discreteRegion*) *it); createTopologyFromRegions(discRegions); - + // create topology for all discrete faces std::vector<discreteFace*> discFaces; for(fiter it = firstFace(); it != lastFace(); it++) @@ -1345,7 +1345,7 @@ void GModel::createTopologyFromMesh() // create old format (necessary for boundary layers) exportDiscreteGEOInternals(); - + double t2 = Cpu(); Msg::StatusBar(2, true, "Done creating topology from mesh (%g s)", t2 - t1); } -- GitLab