code-saturne / code-saturne/code_saturne

Problems when enabling Catalyst 2

Abierto
#168 8 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
C++
Estrellas
307
Forks
102
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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.

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

Empieza reproduciendo el caso de Catalyst 2 con las variables de .bashrc, las opciones --with-catalyst2 mostradas y el env_build.sh de Salome cargado. Rastrea cómo se seleccionan en tiempo de ejecución la ruta de implementación de Catalyst y la dependencia libnetcdf.so.13 de Salome. Se considera terminado cuando el caso carga libcatalyst-paraview.so desde CATALYST_IMPLEMENTATION_PATHS y resuelve libnetcdf.so.13 sin los errores indicados.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
bash, cpp, linux
Área
build-system, hpc
Tipo de issue
Error
Dificultad
4/5
Tiempo estimado
3-5 días
Estado de actividad
Tranquilo
Claridad
Bastante claro
Aptitud para principiantes
48/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.