完全空白的mac os 安装firdrake 和petsc-3.19.0

第一步:建议应用商店安装xcode, 并终端安装

xcode-select --install

第二步: 开启终端代理

第三步:配置git和ssh 密钥

第四步: 安装homebrew

 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

eval "$(/opt/homebrew/bin/brew shellenv)"

sudo xcodebuild -license accept

brew update

brew upgrade

安装firedrake:

 PETSC_CONFIGURE_OPTIONS=--download-exodusii python3 firedrake-install --install thetis

安装petsc。 brew install openblas ,sh install.sh

python3 ./configure PETSC_DIR=$(pwd) PETSC_ARCH=default \
--download-netcdf --download-ml --with-zlib --download-scalapack --download-pnetcdf \
--download-hwloc-configure-arguments=--disable-opencl --LDFLAGS=-Wl,-rpath,/opt/homebrew/opt/openblas/lib -L/opt/homebrew/opt/openblas/lib -L/opt/homebrew/opt/gcc/lib/gcc/13 --download-bison --download-mpich \
--with-blaslapack-dir=/opt/homebrew/opt/openblas --CFLAGS=-I/opt/homebrew/opt/openblas/include -Wno-implicit-function-declaration \
--download-chaco --download-mpich-configure-arguments=--disable-opencl --download-pastix \
--download-hypre --download-ptscotch --with-debugging=0 \
--download-hdf5 --with-shared-libraries=1 --download-mumps --download-superlu_dist \
--download-hwloc --with-x=0 --download-metis \
--download-suitesparse --with-fortran-bindings=0 --with-c2html=0

  • 10
    点赞
  • 6
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值