Fix regression of viscous_layers_2D_00/A2

This commit is contained in:
eap 2022-05-19 14:27:28 +03:00
parent 21199041af
commit 181c3be44c

View File

@ -2614,6 +2614,11 @@ SMESH_Gen_i::ConcatenateCommon(const SMESH::ListOfIDSources& theMeshesArray,
// copy elements
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 );
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.ClearLastCreated(); // forget the history
}
// create groups of just added elements