I am trying to use FreeFem on a HPC cluster. FreeFem was installed by my colleague, he tested the installation and it works.
When I test it by using FreeFem compiled in the HPC project library, the real version of PETSc works fine. However, when I try running the complex version, it does not work properly. Running the code with -v 10000 reveals that the real PETSc version is loaded. FreeFem claims that the complex version is not found in the referenced folder; however, the file is clearly there.
I attach the output file. Any clues are appreciated. nsC.log (3.8 MB)
One additional comment: the real version of ff-mpirun missed the libspqr.so.2 file. I fixed this by adding the corresponding directory to the LD_LIBRARY_PATH variable in my .bashrc file. However, the output of ldd /home/c_mvgsa/c_mvgopt03/FreeFem/FreeFem-sources/plugin/mpi/PETSc.so shows that this file is linked to the correct location.
These are the ldd outputs for the real and complex petsc.so files without the export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/c_mvgsa/c_mvgopt03/FreeFem/petsc/arch-FreeFem/lib command. It shows that the complex one references to the real PETSc, while the real one has missing references. ldd-petsc-complex.log (5.5 KB) ldd-petsc.log (3.9 KB)
In the meantime, I managed to compile my own version of FreeFEM on the HPC cluster, and it seems to work. However, I would be interested in learning what was the issue.