mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
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:
@ -433,6 +433,12 @@ int main(int argc, char *argv[])
|
|||||||
cellDist[celli] = procIds[celli];
|
cellDist[celli] = procIds[celli];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Propagate from internal to patch fields too
|
||||||
|
for (auto& pf : cellDist.boundaryField())
|
||||||
|
{
|
||||||
|
pf = pf.patchInternalField();
|
||||||
|
}
|
||||||
|
|
||||||
cellDist.write();
|
cellDist.write();
|
||||||
|
|
||||||
Info<< nl << "Wrote decomposition as volScalarField to "
|
Info<< nl << "Wrote decomposition as volScalarField to "
|
||||||
|
|||||||
Reference in New Issue
Block a user