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
mise en place des tests
[modules/smesh.git]
/
src
/
SMDS
/
SMDS_ElementFactory.cxx
diff --git
a/src/SMDS/SMDS_ElementFactory.cxx
b/src/SMDS/SMDS_ElementFactory.cxx
index 48d25afb5abfab665e54f53b71377ac9d64e92e0..e6518d7f241952f5c2bf2c7fb2ba357da708b348 100644
(file)
--- a/
src/SMDS/SMDS_ElementFactory.cxx
+++ b/
src/SMDS/SMDS_ElementFactory.cxx
@@
-1,4
+1,4
@@
-// Copyright (C) 2007-20
16
CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-20
21
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
@@
-239,6
+239,9
@@
int SMDS_ElementFactory::FromVtkToSmds( vtkIdType vtkID )
void SMDS_ElementFactory::Free( const SMDS_MeshElement* e )
{
void SMDS_ElementFactory::Free( const SMDS_MeshElement* e )
{
+ if ( e != FindElement( e->GetID() ))
+ SALOME_Exception("SMDS_ElementFactory::Free(): element of other mesh");
+
if ( !myVtkIDs.empty() )
{
size_t id = e->GetID() - 1;
if ( !myVtkIDs.empty() )
{
size_t id = e->GetID() - 1;