1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

OpenFOAM 8をIntel C, MPIでビルドしようとしたらptscotchがないって怒られる

Posted at

エラー

OpenFOAM 8をIntel CとIntel MPIでビルドしたら,

cannot open source file "ptscotch.h"

って出て,ビルドが止まる。

対応

MPIの設定の書き方が悪かった。

OpenFOAM-8/etc/config.sh/mpi
のINTELMPIのところにIntel MPIのパスを追加する必要があるが,

export MPI_ROOT=$HOME/intel/oneapi/mpi/2021.2.0

って書けばよかった。

最初以下にしていて,だめだった。

export MPI_ROOT=$HOME/intel/oneapi/mpi/2021.2.0/

パスの最後に/があるとだめ。

同じエラーは古いバージョンだと割と起きていた。
参考 https://www.cfd-online.com/Forums/openfoam-installation/173590-failed-compile-openfoam-3-0-1-icc.html

設定ファイルもこなれてきて,最近だとそうそう起きないが,パスの書き方がだめだったってのはなかなか原因がわからず,ハマった。

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?