code-saturne / code-saturne/code_saturne
Problems when enabling Catalyst 2
- 主要言語
- C++
- スター
- 307
- フォーク
- 102
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
Some recent modifications must have introduced a bug with the Catalyst 2 support because my cases used to work but no longer using either 9.1 or the master under Ubuntu 24.04.4 LTS.
On my .bashrc file I specify the required environment variables:
```
# Catalyst2 Settings
export CATALYST_IMPLEMENTATION_NAME="paraview"
export CATALYST_IMPLEMENTATION_PATHS="/home/panos/Development/Salome/SALOME/INSTALL/ParaView/lib/catalyst"
```
which point to the ParaView installation in Salome. I then build code_saturne with the options:
```
--with-salome=/home/panos/Development/Salome/SALOME
--with-catalyst2=/home/panos/Development/Salome/SALOME/INSTALL/catalyst
SALOMEENVCMD=/home/panos/Development/Salome/SALOME/env_build.sh
```
But when I try to run a case which uses Catalyst 2 I get the following errors:
```
failed to open library: libnetcdf.so.13: cannot open shared object file: No such file or directory
failed to open library: /home/panos/Development/Salome/SALOME/INSTALL/catalyst/lib/catalyst/libcatalyst-paraview.so: cannot open shared object file: No such file or directory
failed to open library: libnetcdf.so.13: cannot open shared object file: No such file or directory
failed to open library: /home/panos/Development/Salome/SALOME/INSTALL/catalyst/lib/catalyst/libcatalyst-paraview.so: cannot open shared object file: No such file or directory
failed to open library: libnetcdf.so.13: cannot open shared object file: No such file or directory
failed to open library: /home/panos/Development/Salome/SALOME/INSTALL/catalyst/lib/catalyst/libcatalyst-paraview.so: cannot open shared object file: No such file or directory
failed to open library: libnetcdf.so.13: cannot open shared object file: No such file or directory
failed to open library: /home/panos/Development/Salome/SALOME/INSTALL/catalyst/lib/catalyst/libcatalyst-paraview.so: cannot open shared object file: No such file or directory
failed to open library: libnetcdf.so.13: cannot open shared object file: No such file or directory
failed to open library: /home/panos/Development/Salome/SALOME/INSTALL/catalyst/lib/catalyst/libcatalyst-paraview.so: cannot open shared object file: No such file or directory
failed to open library: libnetcdf.so.13: cannot open shared object file: No such file or directory
failed to open library: /home/panos/Development/Salome/SALOME/INSTALL/catalyst/lib/catalyst/libcatalyst-paraview.so: cannot open shared object file: No such file or directory
```
From these messages it is clear that the code is trying to open the libcatalyst-paraview.so library from the Salome catalyst directory when it should have used the CATALYST_IMPLEMENTATION_PATHS directory to locate the library. As for libnetcdf.so.13, this is a library needed by Catalyst but it is installed in Salome yet the code does not know how and where to find it. The compilation and running takes place on a bash shell with the env_build.sh Salome settings loaded.
コントリビューションガイド
調査の方向性
まず、.bashrc の変数、示されている --with-catalyst2 オプション、および読み込まれた Salome の env_build.sh を使って Catalyst 2 のケースを再現します。実行時に Catalyst の実装パスと Salome の libnetcdf.so.13 依存関係がどのように選択されるかを追跡します。ケースが CATALYST_IMPLEMENTATION_PATHS から libcatalyst-paraview.so をロードし、報告されたエラーなしで libnetcdf.so.13 を解決できれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- bash, cpp, linux
- 領域
- build-system, hpc
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 静か
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 48/100