Index: /issm/trunk/externalpackages/petsc/configs/altix64/configure.sh
===================================================================
--- /issm/trunk/externalpackages/petsc/configs/altix64/configure.sh	(revision 2125)
+++ /issm/trunk/externalpackages/petsc/configs/altix64/configure.sh	(revision 2126)
@@ -1,5 +1,9 @@
 #After Plapack is fixed
-./config/configure.py  --prefix=$PETSC_DIR --with-batch=1  --PETSC_ARCH=$PETSC_ARCH --PETSC_DIR=$PETSC_DIR  --with-debugging=no --with-shared=0 COPTFLAGS=-O3 FOPTFLAGS=-O3 --with-blas-lapack-dir=/opt/intel/mkl/9.1.023 --with-mpi-lib=/usr/lib/libmpi.so --with-mpi-include=/usr/include  --with-mpi-shared=0 --download-mumps=yes --download-scalapack=yes --download-blacs=yes  --with-plapack-dir=$PETSC_DIR/externalpackages/PLAPACKR32/$PETSC_ARCH --FFLAGS=-I/usr/include --with-cc=icc --with-fc=ifort
+
+#set PETSC_DIR variable, in case.
+PETSC_DIR=$ISSM_DIR/externalpackages/petsc/install
+
+#./config/configure.py  --prefix=$PETSC_DIR --with-batch=1  --ISSM_ARCH=$ISSM_ARCH --PETSC_DIR=$PETSC_DIR   --with-debugging=no --with-shared=0 COPTFLAGS=-O3 FOPTFLAGS=-O3 --with-blas-lapack-dir=/opt/intel/mkl/9.1.023 --with-mpi-lib=/usr/lib/libmpi.so --with-mpi-include=/usr/include  --with-mpi-shared=0 --download-mumps=yes --download-scalapack=yes --download-blacs=yes  --with-plapack-dir=$PETSC_DIR/externalpackages/PLAPACKR32/$ISSM_ARCH --FFLAGS=-I/usr/include --with-cc=icc --with-fc=ifort
 
 #Before Plapack implodes
-#./config/configure.py  --prefix=$PETSC_DIR --with-batch=1  --PETSC_ARCH=$PETSC_ARCH --PETSC_DIR=$PETSC_DIR  --with-debugging=no --with-shared=0 COPTFLAGS=-O3 FOPTFLAGS=-O3 --with-blas-lapack-dir=/opt/intel/mkl/9.1.023 --with-mpi-lib=/usr/lib/libmpi.so --with-mpi-include=/usr/include  --with-mpi-shared=0 --download-mumps=yes --download-scalapack=yes --download-blacs=yes  --download-plapack=yes --FFLAGS=-I/usr/include --with-cc=icc --with-fc=ifort
+./config/configure.py  --prefix=$PETSC_DIR --with-batch=1  --ISSM_ARCH=$ISSM_ARCH --PETSC_DIR=$PETSC_DIR   --with-debugging=no --with-shared=0 COPTFLAGS=-O3 FOPTFLAGS=-O3 --with-blas-lapack-dir=/opt/intel/mkl/9.1.023 --with-mpi-lib=/usr/lib/libmpi.so --with-mpi-include=/usr/include  --with-mpi-shared=0 --download-mumps=yes --download-scalapack=yes --download-blacs=yes  --download-plapack=yes --FFLAGS=-I/usr/include --with-cc=icc --with-fc=ifort
