注册 登录  
 加关注
查看详情
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

随机过程

http://superware.blog.163.com

 
 
 

日志

 
 

Building Deal.II-7.3.0 on Debian Wheezy  

2013-06-17 20:34:29|  分类: 默认分类 |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |
Building for Deal.II, the trilinos can be build by the following script named as build.sh

1、

Download trilinos-11.0.4.tar.gz  and move it into $HOME/trilinos

2、

$ cd  $HOME/trilinos


3、

$ tar  xzvf  trilinos-11.0.4.tar.gz


4、

$ cd  trilinos-11.0.4


5、

$ mkdir  build


6、

$ vi  build.sh

#!/bin/bash


cmake \
  -D Trilinos_ENABLE_OPTIONAL_PACKAGES:BOOL=ON \
  -D Trilinos_ENABLE_Sacado:BOOL=ON \
  -D Trilinos_ENABLE_Stratimikos:BOOL=ON \
  -D CMAKE_BUILD_TYPE:STRING=RELEASE \
  -D CMAKE_CXX_FLAGS:STRING="-O3" \
  -D CMAKE_C_FLAGS:STRING="-O3" \
  -D CMAKE_FORTRAN_FLAGS:STRING="-O3" \
  -D Trilinos_EXTRA_LINK_FLAGS:STRING="-lgfortran" \
  -D CMAKE_VERBOSE_MAKEFILE:BOOL=FALSE \
  -D Trilinos_VERBOSE_CONFIGURE:BOOL=FALSE \
  -D TPL_ENABLE_MPI:BOOL=ON \
  -D BUILD_SHARED_LIBS:BOOL=ON \

-D Trilinos_ENABLE_TEST:BOOL=ON \

-D Trilinos_ENABLE_EXAMPLES:BOOL=ON \

  -D CMAKE_INSTALL_PREFIX:PATH=$HOME/common/trilinos-11.0.4 ..

7、

$ chmod 755 build.sh


8、
 

$ ./build.sh


9、

$ make; make install



10、Building p4est

p4est is a library that manages meshes that are distributed across multiple processors. It forms the basis of deal.II's implementation of finite element solvers that can use meshes that are too large to be held on each processor individually.

You need to install p4est before deal.II. To do so, you can download it from here. You can either choose to manually compile and install p4est (as explained in documentation of p4est), or alternatively use a script that will automatically compile and install a debug and optimized version of p4est.

If you want to use the script, copy the tarball to a fresh directory together with the p4est-setup.sh script (the one from this link, not one you may have gotten from the p4est webpage). Then call the script as follows:

./p4est-setup.sh p4est-x-y-z.tar.gz /path/to/installation
where p4est-x-y-z.tar.gz is the name of the p4est distribution file, and /path/to/installation is a directory into which you want to install p4est.

In both cases, you can configure deal.II using a line like

cmake -DP4EST_DIR=/path/to/installation/FAST

-DDEAL_II_WITH_P4EST=ON

-DDEAL_II_WITH_MPI=ON <...>



11、Building deal.II-7.3.0
$ ./configure \
--with-umfpack \
--with-blas \
--with-lapack \
--with-petsc=/usr/lib/petscdir/3.2 \
--with-petsc-arch=linux-gnu-c-opt \
--with-slepc=/usr/lib/slepcdir/3.2 \
--with-slepc-arch=linux-gnu-c-opt \
--with-trilinos=/home/william/common/trilinos-11.0.4 \
--with-trilinos-include=/home/william/common/trilinos-11.0.4/include \
--with-trilinos-libs=/home/william/common/trilinos-11.0.4/lib \
--enable-mpi \
--with-p4est=/home/william/common/p4est-0.3.4 \
--disable-threads
\

$ make
  评论这张
 
阅读(113)| 评论(0)
推荐

历史上的今天

评论

<#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--随机阅读--> <#--首页推荐--> <#--历史上的今天--> <#--被推荐日志--> <#--上一篇,下一篇--> <#-- 热度 --> <#-- 网易新闻广告 --> <#--右边模块结构--> <#--评论模块结构--> <#--引用模块结构--> <#--博主发起的投票-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2018