Patch provided by Armin Wehrfritz Resolves feature request http://www.openfoam.org/mantisbt/view.php?id=843