Bugfix: Reading of zone meshes in parallel; load balancing

This commit is contained in:
Hrvoje Jasak 2018-11-08 19:32:34 +00:00
parent 7d5a3f22f3
commit 35e0a53d62

View file

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