File: README_WINDOWS.md

package info (click to toggle)
freefem++ 3.61.1+dfsg1-4
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 17,108 kB
  • sloc: cpp: 141,214; ansic: 28,664; sh: 4,925; makefile: 3,142; fortran: 1,171; perl: 844; awk: 290; php: 199; pascal: 41; f90: 32
file content (57 lines) | stat: -rw-r--r-- 2,733 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<!----------------------------------------------------------------------------------->
<!--- This file is part of FreeFem++.                                             --->
<!--- Laboratoire Jacques-Louis Lions                                             --->
<!--- Sorbonne Université, UMR 7598, Paris, F-75005 France                        --->
<!---                                                                             --->
<!--- Foobar is free software: you can redistribute it and/or modify              --->
<!--- it under the terms of the GNU Lesser General Public License as published by --->
<!--- the Free Software Foundation, either version 3 of the License, or           --->
<!--- (at your option) any later version.                                         --->
<!---                                                                             --->
<!--- Foobar is distributed in the hope that it will be useful,                   --->
<!--- but WITHOUT ANY WARRANTY; without even the implied warranty of              --->
<!--- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               --->
<!--- GNU Lesser General Public License for more details.                         --->
<!---                                                                             --->
<!--- You should have received a copy of the GNU Lesser General Public License    --->
<!--- along with Foobar.  If not, see <http://www.gnu.org/licenses/>.             --->
<!----------------------------------------------------------------------------------->

# How to compile FreeFem++ on Microsoft Windows
_april 2017_

Visit this [web page](http://www.freefem.org/ff++/windows.php)

Bug warning (Windows 64): if you launch FreeFem++ without script by double clicking
on the icon, you get an error (it is due to a bug in GetOpenFileName).

From version 3.52 onwards, the Windows 64 version is built with MPI support and
with the following options
```bash
./configure '--enable-download' '--disable-pastix' '--disable-hips'
```

Then, execute and follow the instructions.

## To test the MPI usage: in windows terminal (cmd, shell, PowerShell)

Go to the directory `C:\Program Files (86)\FreeFem++\examples++-mpi`

To lauch an example:
```bash
mpiexec.exe -np 4 FreeFem++-mpi DDM-Schwarz-Lame-2d.edp -wg
```
or without graphics:
```bash
mpiexec.exe -np 4 FreeFem++-mpi DDM-Schwarz-Lame-2d.edp
```

## To use MPI, you must first install `MSMPI`

Download [MS MPI V7](https://www.microsoft.com/en-us/download/details.aspx?id=49926 ),
and install both `msmpisdk.msi` and `MSMpiSetup.exe`.

Remark:

Under msys2 do not forger to do open `c:\msys64\mingw64.ini` in an editor
and remove `rem` before `set MSYS2_PATH_TYPE=inherit`