Commit bfcfbd92 authored by Lena Walter's avatar Lena Walter
Browse files

changed globalStorage: avoid counting the ghost nodes in parallel runs

reviewed by Melanie


git-svn-id: svn://svn.iws.uni-stuttgart.de/DUMUX/dumux/trunk@10192 2fb0f335-1f38-0410-981e-8018bf24f1b0
parent ed51c238
......@@ -275,7 +275,10 @@ public:
ElementIterator elemIt = gridView_().template begin<0>();
const ElementIterator elemEndIt = gridView_().template end<0>();
for (; elemIt != elemEndIt; ++elemIt) {
localResidual().evalStorage(*elemIt);
if(elemIt->partitionType() == Dune::InteriorEntity)
{
localResidual().evalStorage(*elemIt);
if (isBox)
{
......@@ -286,6 +289,7 @@ public:
{
storage += localResidual().storageTerm()[0];
}
}
}
if (gridView_().comm().size() > 1)
......
Supports Markdown
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