Commit 1490489c authored by Alvarez, Gonzalo's avatar Alvarez, Gonzalo
Browse files

Revert "fix cocoon for Chebyshev"

This reverts commit c943ef74.
parent c943ef74
......@@ -210,29 +210,20 @@ public:
assert(block1.size() > 0);
SizeType site = block1[0];
bool doBorderIfBorder = false;
if (site > 1 && site < numberOfSites - 2) {
this->common().cocoon(block1, direction, doBorderIfBorder); // in-situ
if (site > 1 && site < numberOfSites - 2)
return;
}
if (direction == ProgramGlobals::DirectionEnum::EXPAND_SYSTEM) {
if (site == 1) {
this->common().cocoon(block1, direction, doBorderIfBorder); // in-situ
return;
}
if (site == 1) return;
} else {
if (site == numberOfSites - 2) {
this->common().cocoon(block1, direction, doBorderIfBorder); // in-situ
return;
}
if (site == numberOfSites - 2) return;
}
SizeType x = (site == 1) ? 0 : numberOfSites - 1;
BlockType block(1, x);
evolveInternal(Eg, direction, block, loopNumber);
doBorderIfBorder = true;
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