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