FreeFem / FreeFem-sources

FreeFEM source code
https://freefem.org/
Other
755 stars 188 forks source link

Load PETSc error in Windows 10. #233

Closed kilasuelika closed 2 years ago

kilasuelika commented 2 years ago

I installed FreeFem++-4.11-win64-petsctest.exe . Given a file petsc.edp that contains a single line:

load "PETSc"

The following command

mpiexec -np 4 freefem++-mpi petsc.edp  

gives error:

-- FreeFem++ v4.11 (Fri Apr 29 14:15:13 CEST 2022 - git v4.11-20-g4f36995d)
   file : cubicmesh.edp
 Load: lg_fem lg_mesh lg_mesh3 eigenvalue parallelempi
  current line = 1 mpirank 1 / 4
  current line = 1 mpirank 3 / 4
  current line = 1 mpirank 2 / 4
    1 : load "PETSc"
Load error: PETSc
         fail:
list prefix: 'C:\Program Files (x86)\FreeFem++\\.\' list suffix: '' , '.dll'
  current line = 1 mpirank 0 / 4
Load error : PETSc
        line number :1, PETSc
error Load error : PETSc
        line number :1, PETSc
 code = 2 mpirank: 0

If I directly launch the edp by click in exploer. There will be an error window saying something like

Can't locate program entry point MPI_Get_accumuate in C:\Program Files (x86)\FreeFem++\PETSc.dll

That dll is indeed there and the size is 53.23MB.

kilasuelika commented 2 years ago

After install lastest MSMPI, this problem is gone.

prj- commented 2 years ago

Thank you for letting us know!