Salome HOME
projects
/
modules
/
smesh.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Copyright update 2022
[modules/smesh.git]
/
src
/
MEDWrapper
/
MED_Structures.cxx
diff --git
a/src/MEDWrapper/MED_Structures.cxx
b/src/MEDWrapper/MED_Structures.cxx
index f5caca0ee1d197a83dce8fbcc2f1d5b86ad8f8a0..5749dc8869f03c91d44d12dc75a4b6dc5a4b13ac 100644
(file)
--- a/
src/MEDWrapper/MED_Structures.cxx
+++ b/
src/MEDWrapper/MED_Structures.cxx
@@
-1,4
+1,4
@@
-// Copyright (C) 2007-20
16
CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-20
22
CEA/DEN, EDF R&D, OPEN CASCADE
//
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
//
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
@@
-141,7
+141,8
@@
namespace MED
TElemInfo
::SetElemNum(TInt theId, TInt theVal)
{
TElemInfo
::SetElemNum(TInt theId, TInt theVal)
{
- (*myElemNum)[theId] = theVal;
+ if ( IsElemNum() )
+ (*myElemNum)[theId] = theVal;
}
//---------------------------------------------------------------
}
//---------------------------------------------------------------
@@
-352,10
+353,10
@@
namespace MED
TGaussInfo::TLess
::operator()(const TGaussInfo& theLeft, const TGaussInfo& theRight) const
{
TGaussInfo::TLess
::operator()(const TGaussInfo& theLeft, const TGaussInfo& theRight) const
{
- if(!&theLeft)
+ if(!&theLeft)
// address of reference can be assumed always non-null by compiler - OK
return true;
return true;
- if(!&theRight)
+ if(!&theRight)
//address of reference can be assumed always non-null by compiler - OK
return false;
if(theLeft.myGeom != theRight.myGeom)
return false;
if(theLeft.myGeom != theRight.myGeom)
@@
-644,13
+645,14
@@
namespace MED
switch(aDim){
case 3:
aCoord[2] = myCoord[aDim*theId+2];
switch(aDim){
case 3:
aCoord[2] = myCoord[aDim*theId+2];
+ // fall through
case 2:
aCoord[1] = myCoord[aDim*theId+1];
case 2:
aCoord[1] = myCoord[aDim*theId+1];
- case 1:{
+ // fall through
+ case 1:
aCoord[0] = myCoord[aDim*theId];
break;
}
aCoord[0] = myCoord[aDim*theId];
break;
}
- }
} else {
TFloatVector aVecX = this->GetIndexes(0);
} else {
TFloatVector aVecX = this->GetIndexes(0);