# This script is to install atlas scalapack libraries ver 2.0.2 in /share/apps/atlas-3-10-2/gnu
# It is meant to be installed in a Rocks Linux cluster/Centos7. Must run as su. 
# mandatory requirements:

# /share/apps/openmpi-1.8.5/gcc/bin/
# /share/apps/atlas-3-10-2/gnu/lib/

	cd /share/apps
	wget http://www2.fizik.usm.my/configrepo/howto/BLAS_and_LAPACK/scalapack-2.0.2.tgz
	tar -zxvf scalapack-2.0.2.tgz
	mv scalapack-2.0.2.tgz /share/apps/configrepo
	cd scalapack-2.0.2
	wget http://www2.fizik.usm.my/configrepo/howto/BLAS_and_LAPACK/SLmake.inc
	make
	ln -s /share/apps/scalapack-2.0.2/libscalapack.a /share/apps/atlas-3-10-2/gnu/lib/
	

