diff --git a/bin/foamJob b/bin/foamJob
index 12f3211d2fd772523d33ec97deac080446b464b0..c882cefefe8a37ea5ee73d8be825d6b1efc3c03e 100755
--- a/bin/foamJob
+++ b/bin/foamJob
@@ -188,12 +188,12 @@ then
     fi
     mpiopts="-np $NPROCS"
 
-    # 
+    #
     # is the machine ready to run parallel?
     #
     echo "Parallel processing using $WM_MPLIB with $NPROCS processors"
     case "$WM_MPLIB" in
-    OPENMPI)
+    *OPENMPI)
         # add hostfile info
         for hostfile in \
             hostfile \