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:55:39 +00:00
parent 0030d9ea35
commit 64548a6283

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