February 22, 2012

Petsc Installation LINUX

Download petsc from here.

untar the file to petsc


1)
Edit .bashrc
#petsc
export PETSC_DIR=/home/arfeen/soft/petsc-3.2-p5
export PATH=$PATH:$PETSC_DIR

2)
chmod 777 -R petsc

3)
cd petsc

4)
./configure --download-f2cblaslapack=1 --with-mpi-dir=/opt/mpich2

note: for extra performance use the configuring option,
--with-debugging=no

5)
make all

6)
make test


Comment here if u are facing problems in PETSc installation.

February 18, 2012

Mpich2 installation LINUX

1) First make folder "mpich2-install". It will be the installation directory.

  cd /home/arfeen
  mkdir mpich2-install

2) Download mpich2-1.4.1p1.tar.gz from Here.

3) Unpack the tar file.

  gunzip mpich2-1.4.1p1.tar.gz
  tar xf mpich2-1.4.1p1.tar

4) Go to the top level directory:

  cd mpich2-1.4.1p1

5) chmod 777 -R mpich2-1.4.1p1

6) ./configure --prefix=/home/arfeen/mpich2

But if u have no c++ compiler, write the following command.

./configure --disable-cxx --prefix=/home/arfeen/mpich2

But if u have no fortran compiler, write the following command.

./configure --disable-f77 --disable-fc --disable-cxx --prefix=/home/arfeen/mpich2-install

7) Build mpich2:

  make

8) Install the mpich2 commands:

  make install

9) Set PATH by using the following command:

  PATH=/home/arfeen/mpich2-install/bin:$PATH; export PATH

10) Check that every thing is in order.

  which mpicc
  which mpirun

Comment here if u are facing problems in mpich2 installation.


Web Statistics