From 41e04dd031aeeddf0d674e7e8afda1a9b72f6a7c Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Thu, 30 Nov 2006 18:06:58 +0000 Subject: [PATCH] fix g++ error on linux --- Mesh/BackgroundMesh.cpp | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/Mesh/BackgroundMesh.cpp b/Mesh/BackgroundMesh.cpp index 1c7de33409..e37954d66c 100644 --- a/Mesh/BackgroundMesh.cpp +++ b/Mesh/BackgroundMesh.cpp @@ -1,4 +1,4 @@ -// $Id: BackgroundMesh.cpp,v 1.8 2006-11-30 13:55:20 geuzaine Exp $ +// $Id: BackgroundMesh.cpp,v 1.9 2006-11-30 18:06:58 geuzaine Exp $ // // Copyright (C) 1997-2007 C. Geuzaine, J.-F. Remacle // @@ -96,13 +96,17 @@ double LC_MVertex_CURV ( GEntity *ge, double U, double V ) Crv = max_surf_curvature ( (const GVertex *)ge); break; case 1: - GEdge *ged = (GEdge *)ge; - //Crv = ged->curvature( U ); - Crv = max_surf_curvature ( (const GEdge *)ge, U); + { + GEdge *ged = (GEdge *)ge; + //Crv = ged->curvature( U ); + Crv = max_surf_curvature ( (const GEdge *)ge, U); + } break; case 2: - GFace *gf = (GFace *)ge; - Crv = gf->curvature( SPoint2( U, V) ); + { + GFace *gf = (GFace *)ge; + Crv = gf->curvature( SPoint2( U, V) ); + } break; } @@ -135,10 +139,10 @@ double LC_MVertex_PNTS ( GEntity *ge, double U, double V ) switch (ge->dim ()) { case 0: - { - GVertex *gv = (GVertex *)ge; - return gv->prescribedMeshSizeAtVertex(); - } + { + GVertex *gv = (GVertex *)ge; + return gv->prescribedMeshSizeAtVertex(); + } case 1: { GEdge *ged = (GEdge *)ge; -- GitLab