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