Commit 78e6b7a3 authored by Yaroslav Gevorkov's avatar Yaroslav Gevorkov
Browse files

tune multi stage refinement

parent 17f40cb4
......@@ -69,21 +69,21 @@ int PinkIndexer::indexPattern(Lattice& indexedLattice, Eigen::RowVectorXf& inten
case RefinementType::none:
break;
case RefinementType::fixedLatticeParameters:
refinement.setTolerance(0.1);
refinement.setTolerance(min(finalRefinementTolerance*2.0, 0.12));
refinement.refineFixedLattice(indexedLattice, ucsDirections, ucsBorderNorms);
refinement.setTolerance(finalRefinementTolerance);
refinement.refineFixedLattice(indexedLattice, ucsDirections, ucsBorderNorms);
break;
case RefinementType::variableLatticeParameters:
refinement.setTolerance(0.1);
refinement.setTolerance(min(finalRefinementTolerance * 2.0, 0.12));
refinement.refineVariableLattice(indexedLattice, ucsDirections, ucsBorderNorms);
refinement.setTolerance(finalRefinementTolerance);
refinement.refineVariableLattice(indexedLattice, ucsDirections, ucsBorderNorms);
break;
case RefinementType::firstFixedThenVariableLatticeParameters:
refinement.setTolerance(0.1);
refinement.setTolerance(min(finalRefinementTolerance * 2.0, 0.12));
refinement.refineFixedLattice(indexedLattice, ucsDirections, ucsBorderNorms);
refinement.setTolerance(0.05);
refinement.setTolerance(min(finalRefinementTolerance * 1.5, 0.10));
refinement.refineFixedLattice(indexedLattice, ucsDirections, ucsBorderNorms);
refinement.setTolerance(finalRefinementTolerance);
refinement.refineVariableLattice(indexedLattice, ucsDirections, ucsBorderNorms);
......
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