diff --git a/Geo/GEdgeCompound.cpp b/Geo/GEdgeCompound.cpp index c9ae6aebc6090f1805e79dd5dca0a334c528e1ba..e951da4cd3228565b8ca3af6bf83f2001c65a964 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 089d39d2766fde7ca6ef792ad536a5bb5c0a0c1b..7f645e19032c3cd9907cc9574cfcddfe5ea8fa47 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); }