|
@@ -400,7 +400,7 @@ namespace Lemma {
|
400
|
400
|
|
401
|
401
|
VectorXcr ksum = kvals.colwise().sum(); // Kernel sum
|
402
|
402
|
// Evaluate whether or not furthur splitting is needed
|
403
|
|
- if ( ((ksum - parentVal).array().abs() > tol).any() || level < minLevel && level < maxLevel ) {
|
|
403
|
+ if ( (((ksum - parentVal).array().abs() > tol).any() && level<maxLevel) || level < minLevel ) {
|
404
|
404
|
// Not a leaf dive further in
|
405
|
405
|
for (int ichild=0; ichild<8; ++ichild) {
|
406
|
406
|
Vector3r cp = pos; // Eigen complains about combining these
|
|
@@ -480,7 +480,7 @@ namespace Lemma {
|
480
|
480
|
|
481
|
481
|
VectorXcr ksum = kvals.colwise().sum(); // Kernel sum
|
482
|
482
|
// Evaluate whether or not furthur splitting is needed
|
483
|
|
- if ( ((ksum - parentVal).array().abs() > tol).any() || level < minLevel && level < maxLevel ) {
|
|
483
|
+ if ( (((ksum - parentVal).array().abs() > tol).any() && level<maxLevel) || level < minLevel ) {
|
484
|
484
|
oct->SubdivideLeaf(curse);
|
485
|
485
|
for (int ichild=0; ichild<8; ++ichild) {
|
486
|
486
|
curse->ToChild(ichild);
|