mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-18 11:30:37 +05:00
PR: debug imps E3 and E7
This commit is contained in:
parent
85f3ec887b
commit
2b665e09bb
@ -67,18 +67,23 @@ void SMESHDS_SubMesh::AddElement(const SMDS_MeshElement * ME)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
int idInSubShape = ME->getIdInShape();
|
int idInSubShape = ME->getIdInShape();
|
||||||
MESSAGE("add element in subshape already belonging to that subshape "
|
if (idInSubShape >= 0)
|
||||||
<< ME->GetID() << " " << oldShapeId << " " << idInSubShape);
|
|
||||||
// check if ok: do nothing if ok
|
|
||||||
if ((idInSubShape == -1) || (idInSubShape >= myElements.size()))
|
|
||||||
{
|
{
|
||||||
MESSAGE("out of bounds");
|
MESSAGE("add element in subshape already belonging to that subshape "
|
||||||
throw SALOME_Exception(LOCALIZED("out of bounds"));
|
<< ME->GetID() << " " << oldShapeId << " " << idInSubShape);
|
||||||
}
|
// check if ok: do nothing if ok
|
||||||
if (ME != myElements[idInSubShape])
|
if (idInSubShape >= myElements.size())
|
||||||
{
|
{
|
||||||
MESSAGE("not the same element");
|
MESSAGE("out of bounds " << idInSubShape << " " << myElements.size());
|
||||||
throw SALOME_Exception(LOCALIZED("not the same element"));
|
throw SALOME_Exception(LOCALIZED("out of bounds"));
|
||||||
|
}
|
||||||
|
if (ME != myElements[idInSubShape])
|
||||||
|
{
|
||||||
|
MESSAGE("not the same element");
|
||||||
|
throw SALOME_Exception(LOCALIZED("not the same element"));
|
||||||
|
}
|
||||||
|
MESSAGE("already done, OK, nothing to do");
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user