Commit 6d9d698b authored by Alvarez, Gonzalo's avatar Alvarez, Gonzalo
Browse files

LongChain: non-const hoppings honor IsPeriodicX=1 now

parent 65aff99a
......@@ -122,7 +122,8 @@ public:
SizeType getVectorSize(SizeType dirId) const
{
assert(dirId == DIRECTION_X);
return linSize_-distance_;
const SizeType oneOrZero = (isPeriodic_) ? 1 : 0;
return linSize_ - distance_ + oneOrZero;
}
bool connected(SizeType i1,SizeType i2) const
......
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