mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: distributed roots cause redistributePar failure (fixes #2523)
- zero-sized faMeshSubset and fvMeshSubset had READ_IF_PRESENT instead of simply copying the schemes/solution setting from the baseMesh
This commit is contained in:
@ -76,14 +76,10 @@ void Foam::parFaFieldDistributorCache::read
|
||||
// Missing an area mesh somewhere?
|
||||
if (areaMeshOnProc.found(false))
|
||||
{
|
||||
const bool oldParRun = Pstream::parRun(false);
|
||||
|
||||
// A zero-sized mesh with boundaries.
|
||||
// This is used to create zero-sized fields.
|
||||
subsetterPtr.reset(new faMeshSubset(mesh, zero{}));
|
||||
|
||||
Pstream::parRun(oldParRun);
|
||||
|
||||
// Deregister from polyMesh ...
|
||||
auto& obr = const_cast<objectRegistry&>
|
||||
(
|
||||
|
||||
@ -631,13 +631,9 @@ autoPtr<mapDistributePolyMesh> redistributeAndWrite
|
||||
// Missing a volume mesh somewhere?
|
||||
if (volMeshOnProc.found(false))
|
||||
{
|
||||
const bool oldParRun = Pstream::parRun(false);
|
||||
|
||||
// A zero-sized mesh with boundaries.
|
||||
// This is used to create zero-sized fields.
|
||||
subsetterPtr.reset(new fvMeshSubset(mesh, zero{}));
|
||||
|
||||
Pstream::parRun(oldParRun);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user