From 85958e2267b01c4b31c3747513628f68d681a6ca Mon Sep 17 00:00:00 2001 From: apo Date: Mon, 2 Jun 2008 08:41:18 +0000 Subject: [PATCH] Fix for the last comment (From Alexey Kovaltchuk 2008-06-02 09:23) of the Bug IPAL19822 - 4.x: REGRESSION - it is impossible to create any presentation on the filed of the attached med file. --- src/CONVERTOR/VISU_MedConvertor.cxx | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/CONVERTOR/VISU_MedConvertor.cxx b/src/CONVERTOR/VISU_MedConvertor.cxx index 4097baad..404bb5fd 100644 --- a/src/CONVERTOR/VISU_MedConvertor.cxx +++ b/src/CONVERTOR/VISU_MedConvertor.cxx @@ -788,8 +788,8 @@ namespace aField->myName = aFieldName; aField->myMeshName = aMeshName; aField->myDataSize = aMeshOnEntity->myNbCells * aNbComp; - aField->myIsELNO = true; // To set it true by default - + aField->myIsELNO = ( aMEntity == MED::eNOEUD_ELEMENT ); + INITMSG(MYDEBUG,"myName = '"<myName<<"'"<< "; myId = "<myId<< "; myEntity = "<myEntity<< @@ -834,14 +834,11 @@ namespace TInt aNbGauss = anIter->second; aVGeom2NbGauss[ aEGeom ] = aNbGauss; - // ELNO data should satisfy the following condition ( implcitly ) + // ELNO data should satisfy the following condition ( implicitly ) vtkIdType aNbNodes = MEDGeom2NbNodes( aMGeom ); aField->myIsELNO &= ( aNbGauss == aNbNodes ); } } - - // ELNO data should satisfy the following condition ( explicitly ) - aField->myIsELNO |= ( aMEntity == MED::eNOEUD_ELEMENT ); } } -- 2.39.2