meshToMesh0: fixed segmentation fault

Patch contributed by Mattijs Janssens
Resolves bug-report http://bugs.openfoam.org/view.php?id=2363
This commit is contained in:
Henry Weller 2016-12-01 19:57:00 +00:00
parent 0e18bbaa12
commit 0b3c8e6fb4

View file

@ -156,6 +156,7 @@ void Foam::meshToMesh0::calcAddressing()
<< "Source patch " << fromPatch.name()
<< " has no faces. Not performing mapping for it."
<< endl;
boundaryAddressing_[patchi].setSize(toPatch.size());
boundaryAddressing_[patchi] = -1;
}
else