Commit 14be43f4 authored by Alvarez, Gonzalo's avatar Alvarez, Gonzalo
Browse files

advanceOnlyAtBorder algorithm fixed

parent 556a2d44
......@@ -726,7 +726,7 @@ private:
const bool advanceOnlyAtBorder = !options.isSet("advanceUnrestricted");
SizeType sites = targetHelper_.model().superGeometry().numberOfSites();
bool weAreAtBorder = (site < 2 || site >= sites-2);
bool weAreAtBorder = (site < 1 || site >= sites-1);
bool dontAdvance = (advanceOnlyAtBorder & !weAreAtBorder);
if (advanceEach > 0 && timesWithoutAdvancement_ >= advanceEach && !dontAdvance) {
......
Markdown is supported
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