Index: /issm/trunk-jpl/configs/config-discover-intel13.sh
===================================================================
--- /issm/trunk-jpl/configs/config-discover-intel13.sh	(revision 19321)
+++ /issm/trunk-jpl/configs/config-discover-intel13.sh	(revision 19321)
@@ -0,0 +1,23 @@
+#!/bin/csh
+
+#PETSc 3.2
+#MPI /usr/local/other/SLES11.1/mvapich2/1.8.1/intel-13.1.2.183/lib
+
+./configure \
+ --prefix=$ISSM_DIR \
+ --with-matlab-dir="$ISSM_DIR/externalpackages/matlab/install" \
+ --with-triangle-dir=$ISSM_DIR/externalpackages/triangle/install \
+ --with-metis-dir=$ISSM_DIR/externalpackages/metis/install \
+ --with-petsc-dir=$ISSM_DIR/externalpackages/petsc/install \
+ --with-mkl-dir="/usr/local/intel/Composer/composer_xe_2013.3.163/mkl/" \
+ --with-mpi-include="/usr/local/other/SLES11.1/mvapich2/1.8.1/intel-13.1.2.183/include" \
+ --with-mpi-libflags="-L/usr/local/other/SLES11.1/mvapich2/1.8.1/intel-13.1.2.183/lib -lmpich -lopa -lmpl -lfmpich -lmpichcxx -lmpichf90 -lpthread -lrdmacm -libverbs -libumad -lrt -lnuma" \
+ --with-petsc-arch=$ISSM_ARCH \
+ --with-blacs-dir="/usr/local/intel/Composer/composer_xe_2013.3.163/mkl/" \
+ --with-blas-lapack-dir="/usr/local/intel/Composer/composer_xe_2013.3.163/mkl/" \
+ --with-mumps-dir=$ISSM_DIR/externalpackages/petsc/install \
+ --with-cxxoptflags="-O3 -xS -DMPICH_IGNORE_CXX_SEEK" \
+ --with-vendor=intel-discover
+
+ # --with-esmf-dir=$ESMF_INSTALL_DIRECTORY \
+
Index: sm/trunk-jpl/configs/config-discover.sh
===================================================================
--- /issm/trunk-jpl/configs/config-discover.sh	(revision 19320)
+++ 	(revision )
@@ -1,24 +1,0 @@
-#!/bin/csh
-
-#PETSc 3.2
-#MPI /usr/local/intel/mpi/4.0.3.008/lib64/
-
-./configure \
- --prefix=$ISSM_DIR \
- --with-matlab-dir="$ISSM_DIR/externalpackages/matlab/install" \
- --with-chaco-dir="$ISSM_DIR/externalpackages/chaco/install" \
- --with-triangle-dir=$ISSM_DIR/externalpackages/triangle/install \
- --with-metis-dir=$ISSM_DIR/externalpackages/metis/install \
- --with-petsc-dir=$ISSM_DIR/externalpackages/petsc/install \
- --with-mkl-dir="/usr/local/intel/mkl/10.1.2.024/lib/64/" \
- --with-mpi-include="/usr/local/intel/mpi/4.0.3.008/include64/" \
- --with-mpi-libflags="-L/usr/local/intel/mpi/4.0.3.008/lib64/ -lmpi -lmpiif" \
- --with-dakota-dir=$ISSM_DIR/externalpackages/dakota/install \
- --with-scalapack-dir="/usr/local/intel/mkl/10.1.2.024/lib/64/" \
- --with-blas-lapack-dir="/usr/local/intel/mkl/10.1.2.024/lib/64/" \
- --with-mumps-dir=$ISSM_DIR/externalpackages/petsc/install \
- --with-tao-dir=$ISSM_DIR/externalpackages/tao/install \
- --with-graphics-lib=/usr/lib64/libX11.so \
- --with-cxxoptflags="-O3 -xS -DMPICH_IGNORE_CXX_SEEK" \
- --with-vendor=intel-discover
-
Index: /issm/trunk-jpl/m4/issm_options.m4
===================================================================
--- /issm/trunk-jpl/m4/issm_options.m4	(revision 19320)
+++ /issm/trunk-jpl/m4/issm_options.m4	(revision 19321)
@@ -1276,5 +1276,8 @@
 		BLASLAPACKINCL=""
 		if test x$VENDOR = xintel-discover; then
-			BLASLAPACKLIB=-L"$BLASLAPACK_ROOT -lmkl_lapack -lmkl -lguide -lpthread"
+		   dnl works for intel 11
+			dnl BLASLAPACKLIB=-L"$BLASLAPACK_ROOT -lmkl_lapack -lmkl -lguide -lpthread "
+			dnl dnl works for intel 13
+			BLASLAPACKLIB=-L"$BLASLAPACK_ROOT -lmkl_lapack95_lp64 -lmkl_rt " 
 		else
 			dnl: branch on whether we are running on windows or linux.
@@ -1318,4 +1321,6 @@
 		if test x$VENDOR = xintel-pleiades; then
 			MKLLIB=-L"$MKL_ROOT -lmkl_core -lmkl_blas95_lp64 -lmkl_lapack95_lp64 -liomp5 -lpthread -lmkl_intel_thread -lmkl_intel_sp2dp"
+		elif test x$VENDOR = xintel-discover; then
+			MKLLIB=-L"$MKL_ROOT -lmkl_intel_lp64 -lmkl_intel_thread -lmkl_core -liomp5 -lpthread"
 		elif test x$VENDOR = xintel-acenet; then
 			MKLLIB=-L"$MKL_ROOT -lmkl_intel_lp64 -lmkl_sequential -lmkl_core -lpthread -lm"
