Skip to content
Snippets Groups Projects
Commit c3ec65d3 authored by Mark Olesen's avatar Mark Olesen
Browse files

ENH: decomposePar -cellDist misses patches (issue #202)

- Propagate cellDist information from internal to patch fields too

NOTE: uses C++11 'auto' and a range-based for loop
parent 49c7b377
No related branches found
No related tags found
No related merge requests found
......@@ -433,6 +433,12 @@ int main(int argc, char *argv[])
cellDist[celli] = procIds[celli];
}
// Propagate from internal to patch fields too
for (auto& pf : cellDist.boundaryField())
{
pf = pf.patchInternalField();
}
cellDist.write();
Info<< nl << "Wrote decomposition as volScalarField to "
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment