Post date: 2017/12/23 0:19:43
Windows10 64 bit + ubuntu (旧 bash on ubuntu on Windows) に FreeFem++ をインストール
$ sudo dpkg-reconfigure tzdata # Time zone 修正
$ sudo apt-get update
$ sudo apt-get upgrade
$ sudo apt-get install build-essential gfortran gnuplot unzip m4 bison flex
$ sudo apt-get install openmpi-bin libopenmpi-dev freeglut3-dev libopenblas-dev libfftw3-dev
$ sudo apt-get install libatlas-dev # ubuntu 18.04 では libatlas-base-dev
$ vi .bashrc export DISPLAY=localhost:0.0
$ wget http://www.freefem.org/ff++/ftp/freefem++-3.59.tar.gz
$ tar zxvf freefem++-3.59.tar.gz $ cd freefem++-3.58
標準(hpddm無し)
$ ./configure --enable-download
$ download/getall -a # 必要なファイルを先にダウンロード
$ make | tee make.out # about 40 min on my DeskTopPC
$ make check XFAIL: PARDISO.edp, gsl.edp, lame-TD-NSS.edp, lapack.edp
$ sudo make install
( $ rm -rf /usr/local/ff-petsc )
$ ./reconfigure ./reconfiure : 5: export: (x86)/Intel/iCLS: bad variable name など
$ sudo apt-get install git cmake python
$ sudo apt-get remove liblapack3 # 不要かも
$ export PATH=/home/XXX/bin:/home/XXX/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin # 必要なものだけに限定(XXXはユーザ名に変更)
$ ./configure --enable-download $ cd download/ff-petsc
$ make petsc-slepc SUDO=sudo # 2時間以上かかる場合があります
$ cd ../..
$ ./reconfigure $ download/getall -a # 必要なファイルを先にダウンロード
$ make
$ make check
$ sudo make install
$ cd examples++-mpi
$ ff-mpirun -np 4 DDM-Schwarz-Lame-3d.edp
$ cd examples++-hpddm
$ ff-mpirun -np 4 diffusion-2d-PETSc.edp
TIPS
\> lxrun /uninstall /full /y
$ sudo apt-get install git cmake python
$ cd download/ff-petsc
$ make petsc-slepc SUDO=sudo ... Makefile:108: recipe for target 'petsc-3.8.0/tag-conf-real' failed
$ sudo apt-get install leafpad