Skip to content
Snippets Groups Projects
Commit 65b00d9a authored by Robert Klöfkorn's avatar Robert Klöfkorn
Browse files

only iterate over leaf faces during interior-ghost communication, if

onlyLeafData is true.


git-svn-id: https://dune.mathematik.uni-freiburg.de/svn/alugrid/trunk@777 0d966ed9-3843-0410-af09-ebfb50bd7c74
parent c4f01ede
No related branches found
No related tags found
No related merge requests found
......@@ -1041,6 +1041,8 @@ void GitterDunePll :: doInteriorGhostComm(
const bool packGhosts = (commType == All_All_Comm) ||
(commType == Ghost_Interior_Comm);
const bool onlyLeafData = elementData.onlyLeafData();
assert( !packGhosts );
if(!containsSomeThing)
......@@ -1058,7 +1060,9 @@ void GitterDunePll :: doInteriorGhostComm(
{
hface_STI * determType = 0; // only for type determination
pair < IteratorSTI < hface_STI > * , IteratorSTI < hface_STI > * >
iterpair = borderIteratorTT( determType , link );
iterpair = (onlyLeafData) ?
(leafBorderIteratorTT( determType , link )) :
(borderIteratorTT( determType , link ));
if(haveHigherCodimData)
{
......@@ -1103,7 +1107,9 @@ void GitterDunePll :: doInteriorGhostComm(
{
hface_STI * determType = 0; // only for type determination
pair < IteratorSTI < hface_STI > * , IteratorSTI < hface_STI > * >
iterpair = borderIteratorTT( determType , link );
iterpair = (onlyLeafData) ?
(leafBorderIteratorTT( determType , link )) :
(borderIteratorTT( determType , link ));
if(haveHigherCodimData)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment