Resolves feature-request http://bugs.openfoam.org/view.php?id=2101 Patch contributed by Mattijs Janssens