Commit 17f40cb4 authored by Yaroslav Gevorkov's avatar Yaroslav Gevorkov
Browse files

fix problem with refinement of wrongly indexed patterns

parent 39d20e9c
......@@ -66,7 +66,8 @@ void Refinement::refineVariableLattice(Lattice& lattice, const Matrix3Xf& ucsDir
gradient = gradient / norm * stepSize;
if (norm == 0)
{
throw WrongUsageException("Numerical problems! Delta has been chosen too small for current lattice!\n");
//throw WrongUsageException("Numerical problems! Delta has been chosen too small for current lattice!\n");
break;
}
basis = basis - gradient.matrix();
......
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