From 0f73b4e0891c2babbce989581a2570c56a08f8b7 Mon Sep 17 00:00:00 2001 From: vsr Date: Mon, 15 Jun 2009 08:30:59 +0000 Subject: [PATCH] Issue 20064: print specific error message "NAN values in the presentation" to the terminal in case of NAN values detection --- src/PIPELINE/VISU_ColoredPL.cxx | 2 +- src/PIPELINE/VISU_DeformedShapeAndScalarMapPL.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/PIPELINE/VISU_ColoredPL.cxx b/src/PIPELINE/VISU_ColoredPL.cxx index e797a1a2..bc9bcd34 100644 --- a/src/PIPELINE/VISU_ColoredPL.cxx +++ b/src/PIPELINE/VISU_ColoredPL.cxx @@ -502,7 +502,7 @@ VISU_ColoredPL myExtractor->GetOutput()->GetScalarRange( theRange ); if (isnan(theRange[0]) || isnan(theRange[1])) - throw std::runtime_error("Arithmetic exception detected"); + throw std::runtime_error("NAN values in the presentation"); } void diff --git a/src/PIPELINE/VISU_DeformedShapeAndScalarMapPL.cxx b/src/PIPELINE/VISU_DeformedShapeAndScalarMapPL.cxx index 50a545bf..194ff20b 100644 --- a/src/PIPELINE/VISU_DeformedShapeAndScalarMapPL.cxx +++ b/src/PIPELINE/VISU_DeformedShapeAndScalarMapPL.cxx @@ -469,5 +469,5 @@ VISU_DeformedShapeAndScalarMapPL myScalarsExtractor->GetUnstructuredGridOutput()->GetScalarRange(theRange); if (isnan(theRange[0]) || isnan(theRange[1])) - throw std::runtime_error("Arithmetic exception detected"); + throw std::runtime_error("NAN values in the presentation"); } -- 2.39.2