Commit 7f36b25c authored by Alvarez, Gonzalo's avatar Alvarez, Gonzalo
Browse files

TargetingChebyshev: evolve border sites also

parent f57ab554
......@@ -204,6 +204,25 @@ public:
assert(energies.size() > 0);
RealType Eg = energies[0];
evolveInternal(Eg, direction, block1, loopNumber);
SizeType numberOfSites = this->lrs().super().block().size();
assert(block1.size() > 0);
SizeType site = block1[0];
if (site > 1 && site < numberOfSites - 2)
return;
if (direction == ProgramGlobals::DirectionEnum::EXPAND_SYSTEM) {
if (site == 1) return;
} else {
if (site == numberOfSites - 2) return;
}
SizeType x = (site == 1) ? 0 : numberOfSites - 1;
BlockType block(1, x);
evolveInternal(Eg, direction, block, loopNumber);
bool doBorderIfBorder = true;
this->common().cocoon(block1, direction, doBorderIfBorder); // in-situ
}
......
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