Building libmesh with Petsc support

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
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值