当前位置: 首页 > 工具软件 > Hypre > 使用案例 >

petsc捆绑hypre安装

孙化
2023-12-01

1. 下载hypre,进入目录,configure如下(注意需要打开-fPIC):

./configure CFLAGS="-fPIC" CXXFLAGS="-fPIC" -prefix=/export/home/xxx/Software/hypre -with-MPI-include=/export/home/xxx/Software/Mpich-3.3.1/include -with-MPI-lib-dirs=/export/home/xxx/Software/Mpich-3.3.1/lib

2. 下载petsc,进入目录,configure如下:

./configure --with-hypre-include=/export/home/xxx/Software/hypre/include --with-hypre-lib=/export/home/xxx/Software/hypre/lib/libHYPRE.a --prefix=/export/home/xxx/Software/petsc_hypre --with-mpi-dir=/export/home/xxx/Software/Mpich-3.3.1

 类似资料: