not initialized value

This commit is contained in:
eap 2011-01-27 13:40:10 +00:00
parent cbe632e32e
commit b337ba17f3
2 changed files with 5 additions and 1 deletions

View File

@ -6577,6 +6577,7 @@ double SMESH_ElementSearcherImpl::getTolerance()
const SMDS_MeshElement* elem = elemIt->next();
SMDS_ElemIteratorPtr nodeIt = elem->nodesIterator();
SMESH_MeshEditor::TNodeXYZ n1( cast2Node( nodeIt->next() ));
elemSize = 0;
while ( nodeIt->more() )
{
double dist = n1.Distance( cast2Node( nodeIt->next() ));

View File

@ -131,7 +131,10 @@ namespace
if ( tooClose && !hasShape )
{
// check order of baseNodes within pyramids, it must be opposite
int dInd = baseNodesIndJ[1] - baseNodesIndJ[0];
int dInd;
dInd = baseNodesIndI[1] - baseNodesIndI[0];
isOutI = ( abs(dInd)==1 ) ? dInd < 0 : dInd > 0;
dInd = baseNodesIndJ[1] - baseNodesIndJ[0];
isOutJ = ( abs(dInd)==1 ) ? dInd < 0 : dInd > 0;
if ( isOutJ == isOutI )
return false; // other domain