FreeFEM v4.x installation 

Post date: 2019/12/19,  Last update: 2023/8/31

ff-mpirun の変更 (v4.6以降)

ubuntu

FreeFEM 4.13 on ubuntu 22.04 LTS (2023-08-31)

FreeFEM 4.12 on ubuntu 22.04 LTS (2023-05-16)

FreeFEM 4.11 on ubuntu 22.04 LTS (2022-11-27)

4.9 までと同じ手順でインストール可能

$ source /opt/intel/oneapi/setvars.sh

$ autoreconf -i

$ ./configure --enable-download --with-mkl=$MKLROOT/lib --enable-mkl_mlt 

$ ./3rdparty/getall -a

$ cd 3rdparty/ff-petsc

$ make petsc-slepc SUDO=sudo

$ cd ../..

$ ./reconfigure

$ make 

$ make check

$ sudo bash

# source /opt/intel/oneapi/setvars.sh

# make install


$ sudo apt install intel-mkl-full

... -Xlinker --enable-new-dtags -Xlinker -rpath -Xlinker -Xlinker -rpath -Xlinker -Xlinker --enable-new-dtags ...

... -Xlinker --enable-new-dtags ...

FreeFEM 4.4.3 - 4.9 on ubuntu

FreeFEM 4.9 on ubuntu 20.04 LTS with intel MKL (2021-05-30)

FreeFEM 4.7 on ubuntu 20.04 LTS (WSL2) with intel MKL (2020-09-09)

FreeFEM 4.6 on ubuntu 18.04.3 LTS (clean) with intel MKL (2020-06-11)

FreeFEM 4.5 on ubuntu 18.04.3 LTS (clean) with intel MKL (2020-03-03)

FreeFEM 4.4.3 on ubuntu 18.04.3 LTS (clean) with intel MKL (2020-01-13)


(最新版はhttps://software.intel.com/en-us/articles/installing-intel-free-libs-and-python-apt-repoで確認)

$ source /opt/intel/bin/compilervars.sh intel64

$ autoreconf -i

$ ./configure --enable-download --with-mkl=$MKLROOT/lib --enable-mkl_mlt 

$ ./3rdparty/getall -a

$ cd 3rdparty/ff-petsc

$ make petsc-slepc SUDO=sudo

$ cd -

$ ./reconfigure

$ make 

$ make check

$ sudo bash

# source /opt/intel/bin/compilervars.sh intel64

# make install

CentOS

FreeFEM 4.7 on CentOS 7

FreeFEM 4.7 on CentOS 7 with intel compiler (2020-09-09)

SuperLU のコンパイルでエラーが出ます。

対応:

Install


エラーメッセージ

 ===============================================================================

    ***** WARNING: F77 (set to ifort) found in environment variables - ignoring

     use ./configure F77=$F77 if you really want to use that value ******

===============================================================================


$  less petsc-3.13.0/configure.log

*******************************************************************************

         UNABLE to CONFIGURE with GIVEN OPTIONS    (see configure.log for details):

-------------------------------------------------------------------------------

Error configuring SUPERLU with cmake

*******************************************************************************

  File "/home/ttks/src/c/FreeFem/FreeFem-sources-4.6/3rdparty/ff-petsc/petsc-3.13.0/config/configure.py", line 440, in petsc_configure

    framework.configure(out = sys.stdout)

  File "/home/ttks/src/c/FreeFem/FreeFem-sources-4.6/3rdparty/ff-petsc/petsc-3.13.0/config/BuildSystem/config/framework.py", line 1229, in configure

    self.processChildren()

  File "/home/ttks/src/c/FreeFem/FreeFem-sources-4.6/3rdparty/ff-petsc/petsc-3.13.0/config/BuildSystem/config/framework.py", line 1218, in processChildren

    self.serialEvaluation(self.childGraph)

  File "/home/ttks/src/c/FreeFem/FreeFem-sources-4.6/3rdparty/ff-petsc/petsc-3.13.0/config/BuildSystem/config/framework.py", line 1193, in serialEvaluation

    child.configure()

  File "/home/ttks/src/c/FreeFem/FreeFem-sources-4.6/3rdparty/ff-petsc/petsc-3.13.0/config/BuildSystem/config/package.py", line 1110, in configure

    self.executeTest(self.configureLibrary)

  File "/home/ttks/src/c/FreeFem/FreeFem-sources-4.6/3rdparty/ff-petsc/petsc-3.13.0/config/BuildSystem/config/base.py", line 139, in executeTest

    ret = test(*args,**kargs)

  File "/home/ttks/src/c/FreeFem/FreeFem-sources-4.6/3rdparty/ff-petsc/petsc-3.13.0/config/BuildSystem/config/package.py", line 875, in configureLibrary

    for location, directory, lib, incl in self.generateGuesses():

  File "/home/ttks/src/c/FreeFem/FreeFem-sources-4.6/3rdparty/ff-petsc/petsc-3.13.0/config/BuildSystem/config/package.py", line 453, in generateGuesses

FreeFEM 4.4.3 on CentOS 7

FreeFEM 4.4.3 on CentOS 7 with intel compiler (2019-12-19)

WSL2