From bb6cae2ae840b079b1a19f91afa9b465c2294ba8 Mon Sep 17 00:00:00 2001 From: mzn Date: Thu, 12 Mar 2009 12:55:27 +0000 Subject: [PATCH] Fix for bug 0020064: EDF 877 VISU : NaN in scalar bar. --- src/PIPELINE/VISU_DeformedShapeAndScalarMapPL.cxx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/PIPELINE/VISU_DeformedShapeAndScalarMapPL.cxx b/src/PIPELINE/VISU_DeformedShapeAndScalarMapPL.cxx index d52de6e4..732f522c 100644 --- a/src/PIPELINE/VISU_DeformedShapeAndScalarMapPL.cxx +++ b/src/PIPELINE/VISU_DeformedShapeAndScalarMapPL.cxx @@ -443,4 +443,7 @@ VISU_DeformedShapeAndScalarMapPL { myScalarsExtractor->Update(); myScalarsExtractor->GetUnstructuredGridOutput()->GetScalarRange(theRange); + + if (isnan(theRange[0]) || isnan(theRange[1])) + throw std::runtime_error("Arithmetic exception detected"); } -- 2.39.2