Index: ../trunk-jpl/test/NightlyRun/test340.m
===================================================================
--- ../trunk-jpl/test/NightlyRun/test340.m	(revision 18683)
+++ ../trunk-jpl/test/NightlyRun/test340.m	(revision 18684)
@@ -14,6 +14,13 @@
 md.inversion.maxiter=6;
 md.inversion.cost_functions=[102  501];
 md.inversion.cost_functions_coefficients=ones(md.mesh.numberofvertices,2); md.inversion.cost_functions_coefficients(:,2)=2.*10^-7;
+PETSCMAJOR = IssmConfig('_PETSC_MAJOR_');
+PETSCMINOR = IssmConfig('_PETSC_MINOR_');
+if(PETSCMAJOR>3 | (PETSCMAJOR==3 & PETSCMINOR>=5)),
+	md.inversion.algorithm='blmvm';
+else
+	md.inversion.algorithm='tao_blmvm';
+end
 md.inversion.vx_obs=md.initialization.vx; md.inversion.vy_obs=md.initialization.vy;
 
 md.cluster=generic('name',oshostname(),'np',3);
Index: ../trunk-jpl/jenkins/imac-012301-gil
===================================================================
--- ../trunk-jpl/jenkins/imac-012301-gil	(revision 18683)
+++ ../trunk-jpl/jenkins/imac-012301-gil	(revision 18684)
@@ -13,6 +13,7 @@
 	--with-scalapack-dir=$ISSM_DIR/externalpackages/petsc/install/ \
 	--with-mumps-dir=$ISSM_DIR/externalpackages/petsc/install \
 	--with-metis-dir=$ISSM_DIR/externalpackages/petsc/install \
+	--with-tao-dir=$ISSM_DIR/externalpackages/tao/install \
 	--with-m1qn3-dir=$ISSM_DIR/externalpackages/m1qn3/install \
 	--with-numthreads=8 \
 	--enable-debugging \
@@ -50,6 +51,7 @@
 						cmake     install.sh                
 						m1qn3     install.sh    
 						petsc     install-3.4-macosx64.sh    
+						ta0       install-2.2.sh
 						triangle  install-macosx64.sh 
 						shell2junit  install.sh "
 
