From: apo Date: Mon, 2 Jun 2008 08:41:18 +0000 (+0000) Subject: Fix for the last comment (From Alexey Kovaltchuk 2008-06-02 09:23) of the Bug IPAL19822 X-Git-Tag: V4_1_3rc1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=85958e2267b01c4b31c3747513628f68d681a6ca;p=modules%2Fvisu.git 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. --- 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 ); } }