From 28189ef8852eea245b1f7a2f3e43ef57750da3eb Mon Sep 17 00:00:00 2001 From: apo Date: Mon, 29 Aug 2005 08:30:29 +0000 Subject: [PATCH] To improve IsPossible function --- src/VISU_I/VISU_GaussPoints_i.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/VISU_I/VISU_GaussPoints_i.cc b/src/VISU_I/VISU_GaussPoints_i.cc index e1207625..9271eabd 100644 --- a/src/VISU_I/VISU_GaussPoints_i.cc +++ b/src/VISU_I/VISU_GaussPoints_i.cc @@ -43,7 +43,10 @@ VISU::GaussPoints_i const char* theFieldName, int theIteration, int isMemoryCheck) { try{ - return VISU::ScalarMap_i::IsPossible(theResult,theMeshName,theEntity,theFieldName,theIteration,isMemoryCheck); + if(theEntity != VISU::NODE) + return VISU::ScalarMap_i::IsPossible(theResult,theMeshName,theEntity,theFieldName,theIteration,isMemoryCheck); + else + return false; }catch(std::exception& exc){ INFOS("Follow exception was occured :\n"<