mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-26 11:50:33 +05:00
Fix regression of viscous_layers_2D_00/A2
This commit is contained in:
parent
f1a810b957
commit
b7fecac60b
@ -2614,6 +2614,11 @@ SMESH_Gen_i::ConcatenateCommon(const SMESH::ListOfIDSources& theMeshesArray,
|
|||||||
// copy elements
|
// copy elements
|
||||||
|
|
||||||
std::vector< const SMDS_MeshElement* > newElems( initMeshDS->NbElements() + 1, 0 );
|
std::vector< const SMDS_MeshElement* > newElems( initMeshDS->NbElements() + 1, 0 );
|
||||||
|
SMESH::array_of_ElementType_var srcElemTypes = theMeshesArray[i]->GetTypes();
|
||||||
|
bool hasElems = (( srcElemTypes->length() > 1 ) ||
|
||||||
|
( srcElemTypes->length() == 1 && srcElemTypes[0] != SMESH::NODE ));
|
||||||
|
if ( hasElems )
|
||||||
|
{
|
||||||
elemIt = initImpl->GetElements( theMeshesArray[i], SMESH::ALL );
|
elemIt = initImpl->GetElements( theMeshesArray[i], SMESH::ALL );
|
||||||
while ( elemIt->more() )
|
while ( elemIt->more() )
|
||||||
{
|
{
|
||||||
@ -2632,6 +2637,7 @@ SMESH_Gen_i::ConcatenateCommon(const SMESH::ListOfIDSources& theMeshesArray,
|
|||||||
newEditor.AddElement( elemType.myNodes, elemType.Init( elem, /*basicOnly=*/false ));
|
newEditor.AddElement( elemType.myNodes, elemType.Init( elem, /*basicOnly=*/false ));
|
||||||
}
|
}
|
||||||
newEditor.ClearLastCreated(); // forget the history
|
newEditor.ClearLastCreated(); // forget the history
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// create groups of just added elements
|
// create groups of just added elements
|
||||||
|
Loading…
Reference in New Issue
Block a user