==> skip petsc (no header)
I am trying to install the PETSc4FOAM library on a HPC platform. I did an in-place installation of petsc such that
$ echo $PETSC_ARCH_PATH/ /scratch/song/juan.salazar/sequana/openfoam/ThirdParty-v2012/petsc/linux64GccDPInt64Opt/
For this I had to tweak etc/config.sh/petsc
When I try to compile PETSc4FOAM, I get the following:
$ ./Allwmake
========================================
2022-02-01 19:22:37 -0300
Starting compile of external-solver (petsc) with OpenFOAM-v2012
Gcc system compiler
linux64GccDPInt64Opt, with SYSTEMOPENMPI sys-openmpi
prefix = default (user)
==> skip petsc (no header)
2022-02-01 19:22:37 -0300
========================================
Finished compile of external-solver (petsc) with OpenFOAM-v2012
Gcc system compiler
linux64GccDPInt64Opt, with SYSTEMOPENMPI sys-openmpi
even if I try
$ ./Allwmake --prefix=$FOAM_USER_LIBBIN
Module prefix = /scratch/song/juan.salazar/sequana/openfoam/juan.salazar-v2012/platforms/linux64GccDPInt64Opt/lib
========================================
2022-02-01 19:38:13 -0300
Starting compile of external-solver (petsc) with OpenFOAM-v2012
Gcc system compiler
linux64GccDPInt64Opt, with SYSTEMOPENMPI sys-openmpi
prefix = /scratch/song/juan.salazar/sequana/openfoam/juan.salazar-v2012/platforms/linux64GccDPInt64Opt/lib
==> skip petsc (no header)
2022-02-01 19:38:13 -0300
========================================
Finished compile of external-solver (petsc) with OpenFOAM-v2012
Gcc system compiler
linux64GccDPInt64Opt, with SYSTEMOPENMPI sys-openmpi
with
echo $FOAM_USER_LIBBIN /scratch/song/juan.salazar/sequana/openfoam/juan.salazar-v2012/platforms/linux64GccDPInt64Opt/lib
the result is the same. Apparently my petsc library is not found, but the libraries are there.
$ ls $PETSC_ARCH_PATH
bin externalpackages include lib obj tests
I was able to check the petsc installation as well
$ make PETSC_DIR=/scratch/song/juan.salazar/sequana/openfoam/ThirdParty-v2012/petsc PETSC_ARCH=linux64GccDPInt64Opt check
Running check examples to verify correct installation
Using PETSC_DIR=/scratch/song/juan.salazar/sequana/openfoam/ThirdParty-v2012/petsc and PETSC_ARCH=linux64GccDPInt64Opt
C/C++ example src/snes/tutorials/ex19 run successfully with 1 MPI process
C/C++ example src/snes/tutorials/ex19 run successfully with 2 MPI processes
C/C++ example src/snes/tutorials/ex19 run successfully with hypre
Completed test examples
Any help is very much appreciated.