From 42df2c65e1b74948c1625bacf8703ee40c91470d Mon Sep 17 00:00:00 2001 From: mzn Date: Thu, 12 Mar 2009 12:54:20 +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 001eb962..ddf02041 100644 --- a/src/PIPELINE/VISU_DeformedShapeAndScalarMapPL.cxx +++ b/src/PIPELINE/VISU_DeformedShapeAndScalarMapPL.cxx @@ -460,4 +460,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