Index: /issm/trunk/externalpackages/netcdf/install.sh
===================================================================
--- /issm/trunk/externalpackages/netcdf/install.sh	(revision 1580)
+++ /issm/trunk/externalpackages/netcdf/install.sh	(revision 1581)
@@ -2,5 +2,5 @@
 
 #Get number of cpus on current platform
-NUMCPUS=`grep -c processor /proc/cpuinfo`;
+NUMCPUS=$1;
 
 #version of netcdf
@@ -25,7 +25,11 @@
 ./configure  --prefix="$ISSM_DIR/externalpackages/netcdf/install" 
 
-#Compile netcdf
-make -j $NUMCPUS
-
-#Install
-make install
+#Compile and install netcdf
+if [ -z $NUMCPUS ];
+then
+	make
+	make install
+else
+	make  -j $NUMCPUS
+	make  -j $NUMCPUS install
+fi
