mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-13 10:10:33 +05:00
PR: debug a SIGSEGV case when using downward connectivity on a modified mesh.
This commit is contained in:
parent
4319615c76
commit
8f44652c30
@ -312,7 +312,12 @@ void SMDS_UnstructuredGrid::copyBloc(vtkUnsignedCharArray *newTypes, std::vector
|
|||||||
|
|
||||||
int SMDS_UnstructuredGrid::CellIdToDownId(int vtkCellId)
|
int SMDS_UnstructuredGrid::CellIdToDownId(int vtkCellId)
|
||||||
{
|
{
|
||||||
// ASSERT((vtkCellId >= 0) && (vtkCellId < _cellIdToDownId.size()));
|
if((vtkCellId < 0) || (vtkCellId >= _cellIdToDownId.size()))
|
||||||
|
{
|
||||||
|
std::cerr << "SMDS_UnstructuredGrid::CellIdToDownId problem vtkCellId="
|
||||||
|
<< vtkCellId << " max="<< _cellIdToDownId.size() << std::endl;
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
return _cellIdToDownId[vtkCellId];
|
return _cellIdToDownId[vtkCellId];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -10968,6 +10968,8 @@ bool SMESH_MeshEditor::DoubleNodesOnGroupBoundaries( const std::vector<TIDSorted
|
|||||||
continue;
|
continue;
|
||||||
int vtkType = grid->GetCellType(vtkId);
|
int vtkType = grid->GetCellType(vtkId);
|
||||||
int downId = grid->CellIdToDownId(vtkId);
|
int downId = grid->CellIdToDownId(vtkId);
|
||||||
|
if (downId < 0)
|
||||||
|
continue;
|
||||||
DownIdType aCell(downId, vtkType);
|
DownIdType aCell(downId, vtkType);
|
||||||
if (celldom.count(vtkId))
|
if (celldom.count(vtkId))
|
||||||
continue;
|
continue;
|
||||||
@ -11238,6 +11240,8 @@ bool SMESH_MeshEditor::DoubleNodesOnGroupBoundaries( const std::vector<TIDSorted
|
|||||||
int vtkId = l.cells[i];
|
int vtkId = l.cells[i];
|
||||||
int vtkType = grid->GetCellType(vtkId);
|
int vtkType = grid->GetCellType(vtkId);
|
||||||
int downId = grid->CellIdToDownId(vtkId);
|
int downId = grid->CellIdToDownId(vtkId);
|
||||||
|
if (downId < 0)
|
||||||
|
continue;
|
||||||
DownIdType aCell(downId, vtkType);
|
DownIdType aCell(downId, vtkType);
|
||||||
int volParents[1000];
|
int volParents[1000];
|
||||||
int nbvol = grid->GetParentVolumes(volParents, vtkId);
|
int nbvol = grid->GetParentVolumes(volParents, vtkId);
|
||||||
|
Loading…
Reference in New Issue
Block a user