Ubuntu安装aspect

和振朝一起安装了一下aspect,在此记录一下安装过程

aspect依赖dealii,dealii依赖trilinos和p4est

如果用虚拟机,需要给足够的内存,4g。否则会出错

安装trilinos

cd

解压缩

“`
cd trilinos-12.4.2
mkdir build
cd build

cmake                                            \
-DTrilinos_ENABLE_Amesos=ON                      \
-DTrilinos_ENABLE_Epetra=ON                      \
-DTrilinos_ENABLE_Ifpack=ON                      \
-DTrilinos_ENABLE_AztecOO=ON                     \
-DTrilinos_ENABLE_Sacado=ON                      \
-DTrilinos_ENABLE_Teuchos=ON                     \
-DTrilinos_ENABLE_MueLu=ON                       \
-DTrilinos_ENABLE_ML=ON                          \
-DTrilinos_VERBOSE_CONfigURE=OFF                 \
-DTPL_ENABLE_MPI=ON                              \
-DBUILD_SHARED_LIBS=ON                           \
-DCMAKE_VERBOSE_MAKEFILE=OFF                     \
-DCMAKE_BUILD_TYPE=RELEASE                       \
-DCMAKE_INSTALL_PREFIX:PATH=$HOME/share/trilinos \
../

make install

“`
trilion会安装到/home下的share,在安装dealii时需要指定这个目录

安装p4est

cd

下载压缩包放到主目录,不解压
p4est-1.1.tar.gz

从以下网址拷贝脚本
https://www.dealii.org/developer/external-libs/p4est-setup.sh


gedit p4est-setup.sh

粘贴代码,保存,关闭文档

创建一个文件


mkdir p4est-1.1
cd p4est-1.1

把p4est-1.1.tar.gz和p4est-setup.sh移动到p4est-1.1目录下


mv p4est-1.1.tar.gz p4est-1.1
mv p4est-setup.sh p4est-1.1

进入p4est-1.1目录并修改sh脚本权限


cd p4est-1.1
chmod 777 p4est-setup.sh

执行脚本


bash ./p4est-setup.sh p4est-1.1.tar.gz /home/zhenchao/p4est-1.1/

安装deal

cd

下载sources
https://www.dealii.org/download.html
解压缩

cd dealii-8.4.1
mkdir build
cd build

cmake -DDEAL_II_WITH_MPI=ON -DCMAKE_INSTALL_PREFIX=/home/zhenchao/dealii-8.4.1/ -DTRILINOS_DIR=/home/zhenchao/share/trilinos/ -DP4EST_DIR=/home/zhenchao/p4est-1.1/ ../

make install
#这步很慢

安装aspect

cd
git clone https://github.com/geodynamics/aspect.git
cd aspect
cmake -DDEAL_II_DIR=/home/zhenchao/deal-8.4.1/build .

make

相关文章

目录前言一、创建Hadoop用户二、更新apt和安装Vim编辑器三、...
原文连接:https://www.cnblogs.com/yasmi/p/5192694.html ...
电脑重启后,打开VirtualBox,发现一直用的虚拟机莫名的消失...
参见:https://blog.csdn.net/weixin_38883338/article/deta...
Ubuntu 18.04 LTS 已切换到 Netplan 来配置网络接口。Netpla...
介绍每个 Web 服务都可以通过特定的 URL 在 Internet 上访问...