From c9ed39686322a3067312d0f3b1d47737cd5e75d5 Mon Sep 17 00:00:00 2001 From: Emilie Marchandise <emilie.marchandise@uclouvain.be> Date: Fri, 23 Oct 2009 13:56:53 +0000 Subject: [PATCH] --- Geo/GFaceCompound.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Geo/GFaceCompound.cpp b/Geo/GFaceCompound.cpp index 6c61b08ba7..7703069734 100644 --- a/Geo/GFaceCompound.cpp +++ b/Geo/GFaceCompound.cpp @@ -1427,9 +1427,10 @@ bool GFaceCompound::checkAspectRatio() const Msg::Warning("Geometrical aspect ratio too high (1/area_2D=%g)", areaMax); SBoundingBox3d bboxH = bounds(); SBoundingBox3d bboxD = bound_U0(); - int H = norm(SVector3(bboxH.max(), bboxH.min())); - int D = norm(SVector3(bboxD.max(), bboxD.min())); + double H = norm(SVector3(bboxH.max(), bboxH.min())); + double D = norm(SVector3(bboxD.max(), bboxD.min())); nbSplit = std::max((int)floor(.25*H/D),2); + printf("H=%g, D=%g H/4D=\n", H, D, nbSplit); Msg::Info("Partition geometry in N=%d parts", nbSplit); paramOK = false; } -- GitLab