From 90c820006d80be078353d441406ccbeeeffefa0e Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Fri, 15 Oct 2010 11:41:54 +0000 Subject: [PATCH] --- Geo/GRegion.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Geo/GRegion.cpp b/Geo/GRegion.cpp index a36998fe2c..021b14259a 100644 --- a/Geo/GRegion.cpp +++ b/Geo/GRegion.cpp @@ -355,12 +355,12 @@ double GRegion::computeSolidProperties (std::vector<double> cg, inertia[5] = 0.0; for ( ; it != l_faces.end(); ++it,++itdir){ - for (int i=0;i<(*it)->getNumMeshElements();++i){ + for (unsigned int i = 0; i < (*it)->getNumMeshElements(); ++i){ MElement *e = (*it)->getMeshElement(i); int npt; IntPt *pts; e->getIntegrationPoints (2*(e->getPolynomialOrder()-1)+3, &npt, &pts); - for (int j=0;j<npt;j++){ + for (int j = 0; j < npt; j++){ SPoint3 pt; // compute x,y,z of the integration point e->pnt(pts[j].pt[0],pts[j].pt[1],pts[j].pt[2],pt); @@ -381,9 +381,8 @@ double GRegion::computeSolidProperties (std::vector<double> cg, return volume; } - - -void GRegion::addPrism(MPrism *p) { +void GRegion::addPrism(MPrism *p) +{ prisms.push_back(p); } -- GitLab