Index: /issm/trunk-jpl/jenkins/jenkins.sh
===================================================================
--- /issm/trunk-jpl/jenkins/jenkins.sh	(revision 19463)
+++ /issm/trunk-jpl/jenkins/jenkins.sh	(revision 19464)
@@ -185,5 +185,5 @@
 if [ $MATLAB_TEST -eq 1 ]; then
 #Launch all tests on different cpus {{{
-for (( i=1;i<=$NUMCPUS_RUN;i++ ))
+for (( i=1;i<=$NUMCPUS_RUN;i*=2 ))
 do
 	#Launch matlab and the nightly run script
@@ -231,5 +231,5 @@
 cd $ISSM_DIR/nightlylog/
 rm matlab_log.log
-for (( i=1;i<=$NUMCPUS_RUN;i++ ))
+for (( i=1;i<=$NUMCPUS_RUN;i*=2 ))
 do
 	cat matlab_log$i.log >> matlab_log.log
@@ -246,5 +246,5 @@
 PYTHON_START_TIME=$(timer);
 export PYTHONSTARTUP=$ISSM_DIR/src/m/dev/devpath.py
-for (( i=1;i<=$NUMCPUS_RUN;i++ ))
+for (( i=1;i<=$NUMCPUS_RUN;i*=2 ))
 do
 	cd $ISSM_DIR/test/NightlyRun
@@ -258,5 +258,5 @@
 cd $ISSM_DIR/nightlylog/
 rm python_log.log
-for (( i=1;i<=$NUMCPUS_RUN;i++ ))
+for (( i=1;i<=$NUMCPUS_RUN;i*=2 ))
 do
 	echo "This is the concatenation phase for rank: python_log$i.log"
