BUG: incorrect indexing for surface baffles (fixes #497)

This commit is contained in:
Mark Olesen
2017-06-16 09:37:43 +02:00
parent a17a04122e
commit b5f091e74f

View File

@ -510,9 +510,9 @@ int main(int argc, char *argv[])
}
labelList indices = findStrings(baffleSelect, patchNames);
forAll(indices, patchi)
for (const label patchId : indices)
{
surfBaffleRegions[patchi] = true;
surfBaffleRegions[patchId] = true;
}
if (indices.size())