Patch contributed by Federico Piscaglia Resolves bug-report https://bugs.openfoam.org/view.php?id=2757