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
This commit is contained in:
parent
49c7b37705
commit
c3ec65d35b
@ -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 "
|
||||
|
Loading…
Reference in New Issue
Block a user