A. PETSC 1)Get PETSC-dev (PETSC development version) from http://www.mcs.anl.gov/petsc/developers/. You can get it using 'hg' as well, (provided that you have 'mercurial' installed.) Go to https://bitbucket.org/petsc/petsc-hg, and click on the 'Clone' tab. You will see the full command. $hg clone https://bitbucket.org/petsc/petsc-hg 2) Configure PETSC. It would need some options such as -- ./configure COPTFLAGS='-O3 -axSSE4.2' CXXOPTFLAGS='-O3 -axSSE4.2' FOPTFLAGS='-O3 -axSSE4.2' --download-boost=1 --download-chaco=1 --download-sowing=1 --download-f-blas-lapack --download-exodusii=1 --download-netcdf=1 --download-hdf5=1 --with-clanguage=C++ --with-cmake=cmake --with-debugging=0 --with-exodusii-dir=$EXO_DIR --with-fortran-datatypes --with-mpi-dir=$MPICH_HOME --with-pic --with-shared-libraries=0 --with-sieve --with-ifort-compilers=1 --with-x11=1 3) PETSC compilation: $make PETSC_DIR=/home/zubaer/softwares/new/petsc-hg PETSC_ARCH=garuda-intel11.1-O all 4) make PETSC_DIR=/home/zubaer/softwares/new/petsc-hg PETSC_ARCH=garuda-intel11.1-O test $hg clone https://zubaexy@bitbucket.org/bourdin/tao-lite C. NETCDF $./configure --prefix=$NETCDF_DIR --enable-shared --with-pic --disable-fortran --disable-netcdf-4 --disable-pnetcdf --disable-dap CC=icc CXX=icpc $make $make install |