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
|
@ -164,24 +164,28 @@ ZoneMesh<ZoneType, MeshType>::ZoneMesh
|
||||||
mesh_(mesh),
|
mesh_(mesh),
|
||||||
zoneMapPtr_(NULL)
|
zoneMapPtr_(NULL)
|
||||||
{
|
{
|
||||||
PtrList<ZoneType>& zones = *this;
|
|
||||||
|
|
||||||
PtrList<entry> zoneEntries(is);
|
PtrList<entry> zoneEntries(is);
|
||||||
zones.setSize(zoneEntries.size());
|
|
||||||
|
|
||||||
forAll(zones, zoneI)
|
if (!zoneEntries.empty())
|
||||||
{
|
{
|
||||||
zones.set
|
PtrList<ZoneType>& zones = *this;
|
||||||
(
|
|
||||||
zoneI,
|
zones.setSize(zoneEntries.size());
|
||||||
ZoneType::New
|
|
||||||
|
forAll(zones, zoneI)
|
||||||
|
{
|
||||||
|
zones.set
|
||||||
(
|
(
|
||||||
zoneEntries[zoneI].keyword(),
|
|
||||||
zoneEntries[zoneI].dict(),
|
|
||||||
zoneI,
|
zoneI,
|
||||||
*this
|
ZoneType::New
|
||||||
)
|
(
|
||||||
);
|
zoneEntries[zoneI].keyword(),
|
||||||
|
zoneEntries[zoneI].dict(),
|
||||||
|
zoneI,
|
||||||
|
*this
|
||||||
|
)
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Reference in a new issue