Minor bug fix affecting warning but not actual reconstruction

This commit is contained in:
mkazhdan
2019-05-20 07:21:09 -04:00
parent b538619f17
commit 5ca45fbd82
+2 -3
View File
@@ -203,9 +203,8 @@ size_t FEMTreeInitializer< Dim , Real >::Initialize( FEMTreeNode& root , InputPo
bool foundBadNode = false;
for( int d=0 ; d<Dim ; d++ )
{
if ( p[d]<start[d] ) p[d] = start[d];
else if( p[d]>start[d]+width ) p[d] = start[d] + width;
foundBadNode = true;
if ( p[d]<start[d] ) foundBadNode = true , p[d] = start[d];
else if( p[d]>start[d]+width ) foundBadNode = true , p[d] = start[d] + width;
}
if( foundBadNode )
{