Patch contributed by Tobias Holzmann Resolves patch request https://bugs.openfoam.org/view.php?id=2524
See also commit 30e2f912e5
30e2f912e5