| 1 |
<!-----------------------------------------------------------------------------------> |
| 2 |
<!--- This file is part of FreeFEM. ---> |
| 3 |
<!--- Laboratoire Jacques-Louis Lions ---> |
| 4 |
<!--- Sorbonne Université, UMR 7598, Paris, F-75005 France ---> |
| 5 |
<!--- ---> |
| 6 |
<!--- FreeFEM is free software: you can redistribute it and/or modify ---> |
| 7 |
<!--- it under the terms of the GNU Lesser General Public License as published by ---> |
| 8 |
<!--- the Free Software Foundation, either version 3 of the License, or ---> |
| 9 |
<!--- (at your option) any later version. ---> |
| 10 |
<!--- ---> |
| 11 |
<!--- FreeFEM is distributed in the hope that it will be useful, ---> |
| 12 |
<!--- but WITHOUT ANY WARRANTY; without even the implied warranty of ---> |
| 13 |
<!--- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ---> |
| 14 |
<!--- GNU Lesser General Public License for more details. ---> |
| 15 |
<!--- ---> |
| 16 |
<!--- You should have received a copy of the GNU Lesser General Public License ---> |
| 17 |
<!--- along with FreeFEM. If not, see <http://www.gnu.org/licenses/>. ---> |
| 18 |
<!-----------------------------------------------------------------------------------> |
| 19 |
|
| 20 |
# How to compile FreeFem++ on Microsoft Windows |
| 21 |
_april 2017_ |
| 22 |
|
| 23 |
Visit this [web page](http://www.freefem.org/ff++/windows.php) |
| 24 |
|
| 25 |
Bug warning (Windows 64): if you launch FreeFem++ without script by double clicking |
| 26 |
on the icon, you get an error (it is due to a bug in GetOpenFileName). |
| 27 |
|
| 28 |
From version 3.52 onwards, the Windows 64 version is built with MPI support and |
| 29 |
with the following options |
| 30 |
```bash |
| 31 |
./configure '--enable-download' |
| 32 |
``` |
| 33 |
|
| 34 |
Then, execute and follow the instructions. |
| 35 |
|
| 36 |
## To test the MPI usage: in windows terminal (cmd, shell, PowerShell) |
| 37 |
|
| 38 |
Go to the directory `C:\Program Files (86)\FreeFem++\examples\mpi` |
| 39 |
|
| 40 |
To lauch an example: |
| 41 |
```bash |
| 42 |
mpiexec.exe -np 4 FreeFem++-mpi DDM-Schwarz-Lame-2d.edp -wg |
| 43 |
``` |
| 44 |
or without graphics: |
| 45 |
```bash |
| 46 |
mpiexec.exe -np 4 FreeFem++-mpi DDM-Schwarz-Lame-2d.edp |
| 47 |
``` |
| 48 |
|
| 49 |
## To use MPI, you must first install `MSMPI` |
| 50 |
|
| 51 |
Download [MS MPI V7](https://www.microsoft.com/en-us/download/details.aspx?id=49926 ), |
| 52 |
and install both `msmpisdk.msi` and `MSMpiSetup.exe`. |
| 53 |
|
| 54 |
Remark: |
| 55 |
|
| 56 |
Under msys2 do not forger to do open `c:\msys64\mingw64.ini` in an editor |
| 57 |
and remove `rem` before `set MSYS2_PATH_TYPE=inherit` |