Description: Build parallelly
Author: Anton Gladky <gladk@debian.org>
Last-Update: 2016-09-28

Index: OpenFOAM-4.x-version-4.1/wmake/scripts/AllwmakeParseArguments
===================================================================
--- OpenFOAM-4.x-version-4.1.orig/wmake/scripts/AllwmakeParseArguments
+++ OpenFOAM-4.x-version-4.1/wmake/scripts/AllwmakeParseArguments
@@ -82,13 +82,6 @@ USAGE_LIB
 
 setWM_NCOMPPROCS()
 {
-    if [ -r /proc/cpuinfo ]
-    then
-        WM_NCOMPPROCS=$(egrep "^processor" /proc/cpuinfo | wc -l)
-    else
-        WM_NCOMPPROCS=1
-    fi
-
     export WM_NCOMPPROCS
 }
 
Index: OpenFOAM-4.x-version-4.1/wmake/wmake
===================================================================
--- OpenFOAM-4.x-version-4.1.orig/wmake/wmake
+++ OpenFOAM-4.x-version-4.1/wmake/wmake
@@ -161,19 +161,7 @@ fi
 
 if [ "$WM_NCOMPPROCS" ]
 then
-    if [ "$WM_NCOMPPROCS" -gt 1 -a ! "$MAKEFLAGS" ]
-    then
-        lockDir=$HOME/.$WM_PROJECT/.wmake
-
-        if [ -d $lockDir ]
-        then
-            rm -f $lockDir/*
-        else
-            mkdir -p $lockDir
-        fi
-
-        make="$make --no-print-directory -j "$WM_NCOMPPROCS
-    fi
+    make="$make --no-print-directory -j "$WM_NCOMPPROCS
 fi
 
 
