Commit be431fc0 authored by Yaroslav Gevorkov's avatar Yaroslav Gevorkov
Browse files

bug fix

parent a4781d87
...@@ -145,8 +145,8 @@ void PinkIndexer::refine(Lattice& indexedLattice, Vector2f& centerShift, const M ...@@ -145,8 +145,8 @@ void PinkIndexer::refine(Lattice& indexedLattice, Vector2f& centerShift, const M
// if (fittedNodesCount[i] > maxFittedNodesCount || // if (fittedNodesCount[i] > maxFittedNodesCount ||
// (fittedNodesCount[i] == maxFittedNodesCount && fittedNodesMeanDefects[i] < minFittedNodesMeanDefect)) // (fittedNodesCount[i] == maxFittedNodesCount && fittedNodesMeanDefects[i] < minFittedNodesMeanDefect))
if (fittedNodesCount[i] / maxFittedNodesCount > 1.2 || if (fittedNodesCount[i] / maxFittedNodesCount > 1.2 ||
(fittedNodesCount[i] > maxFittedNodesCount || fittedNodesMeanDefects[i] < minFittedNodesMeanDefect) && ((fittedNodesCount[i] > maxFittedNodesCount || fittedNodesMeanDefects[i] < minFittedNodesMeanDefect) &&
(fittedNodesCount[i] / maxFittedNodesCount - 1) * 3 > (minFittedNodesMeanDefect / fittedNodesMeanDefects[i] - 1)) (fittedNodesCount[i] / maxFittedNodesCount - 1) * 3 > (minFittedNodesMeanDefect / fittedNodesMeanDefects[i] - 1)))
{ {
maxFittedNodesCount = fittedNodesCount[i]; maxFittedNodesCount = fittedNodesCount[i];
minFittedNodesMeanDefect = fittedNodesMeanDefects[i]; minFittedNodesMeanDefect = fittedNodesMeanDefects[i];
...@@ -201,8 +201,8 @@ void PinkIndexer::refine(Lattice& indexedLattice, Vector2f& centerShift, const M ...@@ -201,8 +201,8 @@ void PinkIndexer::refine(Lattice& indexedLattice, Vector2f& centerShift, const M
// if (fittedNodesCount[i] > maxFittedNodesCount || // if (fittedNodesCount[i] > maxFittedNodesCount ||
// (fittedNodesCount[i] == maxFittedNodesCount && fittedNodesMeanDefects[i] < minFittedNodesMeanDefect)) // (fittedNodesCount[i] == maxFittedNodesCount && fittedNodesMeanDefects[i] < minFittedNodesMeanDefect))
if (fittedNodesCount[i] / maxFittedNodesCount > 1.2 || if (fittedNodesCount[i] / maxFittedNodesCount > 1.2 ||
(fittedNodesCount[i] > maxFittedNodesCount || fittedNodesMeanDefects[i] < minFittedNodesMeanDefect) && ((fittedNodesCount[i] > maxFittedNodesCount || fittedNodesMeanDefects[i] < minFittedNodesMeanDefect) &&
(fittedNodesCount[i] / maxFittedNodesCount - 1) * 3 > (minFittedNodesMeanDefect / fittedNodesMeanDefects[i] - 1)) (fittedNodesCount[i] / maxFittedNodesCount - 1) * 3 > (minFittedNodesMeanDefect / fittedNodesMeanDefects[i] - 1)))
{ {
maxFittedNodesCount = fittedNodesCount[i]; maxFittedNodesCount = fittedNodesCount[i];
minFittedNodesMeanDefect = fittedNodesMeanDefects[i]; minFittedNodesMeanDefect = fittedNodesMeanDefects[i];
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment