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