Finally libmesh was successfully built with Petsc support (no CUDAyet)
Operating system: Ubuntu 13.04
##----------------------------------------------------------------------------
1. Installation of Petsc
The current libmesh 0.9.0.1preonly successfully suport petsc-3.3-p2.
So petsc-3.3-p2 without CUDAsupport was installed and compiled as follows
1.1 cd ~/
tar xzfpetsc-3.3-p2.tar.gz
In~/.bashrc, add two lines:
exportPETSC_DIR=/home/zhenyu/petsc-3.3-p2
exportPETSC_ARCH=arch-linux2-c-opt
1.2 configure it by
./configure--with-shared-libraries=1--with-dynamic-loading=1
--with-x=1--with-blas-lapack-dir=/usr/lib/lapack --with-valgrind=1--download-openmpi --with-cc=gcc --with-fc=gfortran--download-hypre=externalpackages/hypre-2.8.0b.tar.gz
Note here noCUDA spported added
1.3 make PETSC_DIR=/home/zhenyu/petsc-3.3-p2PETSC_ARCH=arch-linux2-c-opt all test
##----------------------------------------------------------------------------
2. Installation of libmesh
2.1 Get libmesh package
git clonegit://github.com/libMesh/libmesh.git
gitpull
2.2 configure it by
./configure --enable-mpi --enable-fortran --enable-exceptions--enable-amr --enable-vsmoother --enable-periodic--enable-dirichlet --enable-nodeconstraint --enable-parmesh--enable-ghosted --enable-pfem --enable-ifem
--enable-examples
--enable-petsc
--enable-trilinos --enable-slepc --enable-boost --enable-laspack--enable-bzip2 --enable-tecio --enable-tecplot --enable-parmetis--enable-tetgen --enable-triangle --enable-vtk --enable-eigen--enable-glpk --enable-netcdf --enable-exodus --enable-nemesis--enable-fparser --with-cxx=g++ --with-fc=gfortran --with-cc=gccMPI_INCLUDES_PATH=${PETSC_DIR}/${PETSC_ARCH}/includeMPI_LIBS_PATH=${PETSC_DIR}/${PETSC_ARCH}/lib
2.3 make -j 8
makeinstall
# default path to /usr/local/lib and/usr/local/include/libmesh
makerun_examples
##----------------------------------------------------------------------------
Operating system: Ubuntu 13.04
##----------------------------------------------------------------------------
1. Installation of Petsc
1.1 cd ~/
1.2 configure it by
1.3 make PETSC_DIR=/home/zhenyu/petsc-3.3-p2PETSC_ARCH=arch-linux2-c-opt all test
##----------------------------------------------------------------------------
2. Installation of libmesh
2.1 Get libmesh package
2.2 configure it by
./configure --enable-mpi --enable-fortran --enable-exceptions--enable-amr --enable-vsmoother --enable-periodic--enable-dirichlet --enable-nodeconstraint --enable-parmesh--enable-ghosted --enable-pfem
2.3 make -j 8
# default path to /usr/local/lib and/usr/local/include/libmesh
##----------------------------------------------------------------------------