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
##----------------------------------------------------------------------------
阅读更多
个人分类: finite element method
上一篇有限单元法资源http://homepage.usask.ca/~ijm451/finite/fe_resources/fe_resources.html
下一篇一个算例 介绍 libmesh 的类
想对作者说点什么? 我来说一句

libmesh 测试

libmesh是基于m p

lizhengjiang lizhengjiang

2014-09-16 04:56:07

阅读数:2121

中科院PETSc使用指南(中文)

2010年09月15日 285KB 下载

没有更多推荐了,返回首页

关闭
关闭