From 3a860a9b8eecff6651f1fc1b92da9b91486110d0 Mon Sep 17 00:00:00 2001 From: ouv Date: Mon, 23 Jun 2008 11:31:50 +0000 Subject: [PATCH] Minor fix --- src/PIPELINE/VISU_DeformedShapePL.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/PIPELINE/VISU_DeformedShapePL.cxx b/src/PIPELINE/VISU_DeformedShapePL.cxx index 6631af08..d1e8d6f3 100644 --- a/src/PIPELINE/VISU_DeformedShapePL.cxx +++ b/src/PIPELINE/VISU_DeformedShapePL.cxx @@ -109,6 +109,8 @@ VISU_DeformedShapePL aVolume *= aVol; } } + if( fabs(idim) < 1.0 / VTK_LARGE_FLOAT ) + return 0.0; // to avoid division by zero aVolume /= aNbElem; return pow(aVolume, vtkFloatingPointType(1.0/idim)); } -- 2.39.2