关闭

Building libmesh with Petsc support

217人阅读 评论(0) 收藏 举报
分类:

Building libmesh with Petsc support

(2013-04-15 08:39:22)
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
##----------------------------------------------------------------------------
0
0

查看评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
    个人资料
    • 访问:88016次
    • 积分:1714
    • 等级:
    • 排名:千里之外
    • 原创:34篇
    • 转载:217篇
    • 译文:19篇
    • 评论:8条
    最新评论