Bugfix: Reading of zone meshes in parallel; load balancing
This commit is contained in:
parent
7d5a3f22f3
commit
35e0a53d62
1 changed files with 17 additions and 13 deletions
|
@ -163,10 +163,13 @@ ZoneMesh<ZoneType, MeshType>::ZoneMesh
|
||||||
regIOobject(io),
|
regIOobject(io),
|
||||||
mesh_(mesh),
|
mesh_(mesh),
|
||||||
zoneMapPtr_(NULL)
|
zoneMapPtr_(NULL)
|
||||||
|
{
|
||||||
|
PtrList<entry> zoneEntries(is);
|
||||||
|
|
||||||
|
if (!zoneEntries.empty())
|
||||||
{
|
{
|
||||||
PtrList<ZoneType>& zones = *this;
|
PtrList<ZoneType>& zones = *this;
|
||||||
|
|
||||||
PtrList<entry> zoneEntries(is);
|
|
||||||
zones.setSize(zoneEntries.size());
|
zones.setSize(zoneEntries.size());
|
||||||
|
|
||||||
forAll(zones, zoneI)
|
forAll(zones, zoneI)
|
||||||
|
@ -184,6 +187,7 @@ ZoneMesh<ZoneType, MeshType>::ZoneMesh
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
|
||||||
|
|
Reference in a new issue