下载后
./configure --with-cc=gcc --with-cxx=g++ --with-fc=gfortran --download-mpich --download-fblaslapack --download-hypre(需要这个包)--with-clanguage=cxx
make all test
sudo gedit ~/.bashrc
在最后增加
export PETSC_DIR=/home/sunzhe/yangby/petsc-3.8.3
export PETSC_ARCH=arch-linux2-cxx-debug
网友评论