Hi,
We have FreeFem++ installed on our HPC Clusters but it seems like the PETSc plugin is missing :
attempting to run the poisson example from the tutorial, i get the following error :
Load error : PETSc
line number :10, PETSc
Indeed, when attempting to reinstall with :
‘–with-slepc-include= -I/…/slepc-3.12.1/intel–20.0.0__openmpi–4.0.1/default/include/’
‘–with-slepc-ldflags=-L/…/slepc-3.12.1/intel–20.0.0__openmpi–4.0.1/default/lib/ -lslepc’
‘–with-petsc=/…/petsc-3.12.2/intel–20.0.0__openmpi–4.0.1/default/lib/petsc/conf/petscvariables’
‘–enable-hpddm’
‘–with-hpddm-include=-I/…/hpddm-3.14/intel–20.0.0__openmpi–4.0.1/default/include’
‘–with-hpddm-ldflags=-L/lib -lhpddm_c -lhpddm_fortran’
looking at the config.log, i get :
configure:23515: ++ add hpddm : -L/lib -lhpddm_c -lhpddm_fortran ; -I/…/hpddm-3.14/intel–20.0.0__openmpi–4.0.1/default/include in plugin/seq
[…]
configure:25642: FreeFEM used download: no
configure:25644: – Dynamic load facility: yes
configure:25646: – ARPACK (eigen value): yes
configure:25648: – UMFPACK (sparse solver): yes
configure:25650: – BLAS: yes
configure:25652: – with MPI: yes
configure:25654: – with PETSc: yes / PETSc complex: no
configure:25656: – with SLEPc: yes / SLEPc complex: no
configure:25658: – with hpddm: no
configure:25660: – with htool: no
configure:25662: – with bemtool: no (need boost: no and htool: no)
configure:25664: – without libs: tetgen mmg3d mmg parmmg mshmet gmm ipopt mumps_seq nlopt superlu umfpack yams pipe MMAP NewSolver hpddm bem
configure:25666: – without plugins: tetgen.so mmg3d-v4.0.so mmg.so parmmg.so mshmet.so aniso.so ilut.so ff-Ipopt.so MUMPS_seq.so MUMPS.so ff-NLopt.so SuperLu.so UMFPACK64.so freeyams.so pipe.so ff-mmap-semaphore.so NewSolver.so hpddm.so hpddm_substructuring.so PETSc.so function-PETSc.so SLEPc.so bem.so
configure:25670: progs: FreeFem+±nw bamg cvmsh2 FreeFem+±mpi ffmedit ffglut
configure:25866: PETSc directories do not exist, to build do:
configure:25868: cd 3rdparty/ff-petsc && make
From what i understood so far, the load “PETSc” is reffering to the PETSc plugin which cannot be built using an external install of petsc, slepc and hpddm because of how the configure.ac and resulting configure are written (the checking for the hpddm install from petsc conf sets ff_hpddm_ok, whereas the check for the hpddm install from configure options does not and happends after the discarding of the petsc plugin anyways).
Is this understanding correct or am i missing something ?
Is there a way to build freefem with the petsc plugin using pre-existing installs of these tools ?
(we might use a patched version of petsc or might have to patch it in the future and would like to avoid having another installation to manage if possible)
Best Regards
Clement