Fortran Catalyst Examples

Dear Developers,
We use fortran simulation codes, and we would like to try Catalyst on them.

  1. I create an Apptainer container Ubuntu 24.04LTS with dependencies for compilations

  2. Then install ParaView-5.13.3-MPI-Linux-Python3.10-x86_64.tar.gz inside

  3. Then install Mpich, i red somewhere that the Mpich version have to match the one used in Paraview, so i checked :
    /usr/local/ParaView-5.13.3-MPI-Linux-Python3.10-x86_64/bin/mpiexec --version which gives;
    Version: 4.1.2
    ‘FC=/opt/rh/devtoolset-10/root/usr/bin/gfortran’

So i my container i compiled and installed 4.1.2 version of Mpich

  1. Then install and compile catalyst-master.tar.gz’ with:

cmake -G Ninja -DCMAKE_INSTALL_PREFIX=/usr/local/Catalyst -DCMAKE_BUILD_TYPE=Release -DCATALYST_USE_MPI:BOOL=ON -DCATALYST_WRAP_FORTRAN:BOOL=ON -DCATALYST_WRA
P_PYTHON:BOOL=ON -DCMAKE_C_COMPILER=/usr/local/Mpich/bin/mpicc -DCMAKE_CXX_COMPILER=/usr/local/Mpich/bin/mpicxx -DCMAKE_Fortran_COMPILER=/usr/local/Mpich/bin/mpi
f90 /usr/local/catalyst-master

  • I noticed that if i execute ctest, test 17 fail, i haven’t understood why…so skipped it for now
  1. Then install and try build ‘paraview-master-Examples.tar.gz’
  • for now i just try Catalyst2 examples: Everything compile but when i try to execute fortran one, i.e.:

  • cd /opt/paraview-master-Examples/Examples/Catalyst2/Fortran90FullExample/

  • ./build/bin/Fortran90FullExampleV2 catalyst_pipeline.py
    i got these errors:
    ./build/bin/Fortran90FullExampleV2: /usr/local/ParaView-5.13.3-MPI-Linux-Python3.10-x86_64/lib/libgfortran.so.5: version GFORTRAN_10' not found (required by ./build/bin/Fortran90FullExampleV2) ./build/bin/Fortran90FullExampleV2: /usr/local/ParaView-5.13.3-MPI-Linux-Python3.10-x86_64/lib/libgfortran.so.5: version GFORTRAN_9’ not found (required by /usr/local/Mpich/lib/libmpifort.so.12)

    After some investigations, i noticed that PV-5.13.3, use, not only MPICH-4.1.2, but that this one was built with ‘FC=/opt/rh/devtoolset-10/root/usr/bin/gfortran’ which is older than mine: GNU Fortran (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0

    So my question is : how to solve that ? I have seen that the OS repository propose a gfortran-10/noble 10.5.0-4ubuntu2 amd64. It should be more close of the version used by PV based on devtoolset-10, which is a little bit old. Do you think it could solve the problem ?
    Of course I can give you all my scripts for the whole build process;

Thank i advance for your advices and help
Best regards
JM

It looks like newer gfortran is being used to compile your code than ParaView ships with its libgfortran. You’ll need to make sure that you’re using gfortran-10 (usually you don’t use the MPI wrappers directly; I’d try telling CMake about the devtoolset-10 compilers there).