You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: INSTALL.md
+43-25Lines changed: 43 additions & 25 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,14 +1,24 @@
1
1
# Installation Guide
2
2
3
-
## Basic install
3
+
## Basic serial install
4
4
5
-
Most users will be fine using the binary bundled in the default `pip` install:
5
+
Most users (on Linux and Mac) will be fine using the binary bundled in the default `pip` install:
6
6
7
7
```shell
8
8
pip install mfem
9
9
```
10
10
The above installation will download and install a *serial* version of `MFEM`.
11
11
12
+
## Environmental variables
13
+
Build script checks the following environmental variables
14
+
- CC : c compiler for parallel build
15
+
- CXX : c++ compiler for serial build
16
+
- MPICC : c compiler for parallel build
17
+
- MPICXX : c++ compiler for parallel build
18
+
- CXX11FLAG : C++11 flag for C++ compiler
19
+
- MPIINC : the location of MPI.h (if this variable is set, the parallle PyMFEM is build with CXX, not MPICXX)
20
+
21
+
12
22
## Building from source
13
23
PyMFEM has many options for installation, when building from source, including:
14
24
- Serial and parallel (MPI) wrappers
@@ -19,15 +29,28 @@ PyMFEM has many options for installation, when building from source, including:
19
29
-`libceed`
20
30
-`metis`
21
31
22
-
Most of the options for PyMFEM can be used directly when installing via `python setup.py install`, e.g.
32
+
Most of the options for PyMFEM can be used directly when installing via `pip install . or python setup.py install`, e.g.
23
33
```shell
24
34
git clone git@github:mfem/PyMFEM.git
25
35
cd PyMFEM
36
+
pip install . --user
37
+
38
+
or
39
+
26
40
python setup.py install --user
27
41
```
28
-
For example, parallel (MPI) support is built with the `--with-parallel` flag:
42
+
43
+
Note that `python setup.py install` is deprecated and will be removed soon in favor of `pip`.
44
+
When installing via `pip`, options are specified using the `-C` flag using the syntax `-C"name=value"`; e.g. the `--with-parallel` option is now specified as `-C"with-parallel=Yes`.
45
+
The name and value of each option should be written explicitly with a dedicated -C flag.
46
+
47
+
For example, parallel (MPI) support and GSlib support is built with `--with-parallel`
Copy file name to clipboardExpand all lines: README.md
+7-22Lines changed: 7 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,47 +10,32 @@ By default, "pip install mfem" downloads and builds the serial version of MFEM a
10
10
Additionally, the installer supports building MFEM with specific options together with other external libraries, including MPI version.
11
11
12
12
## Install
13
+
### Using pip (Serial MFEM)
13
14
```shell
14
-
pip install mfem # binary install is available only on linux platforms (Py36-310)
15
+
pip install mfem # binary install is available only on linux platforms (Py38-312)
15
16
16
17
```
17
18
18
-
## Build with additional features (MPI, GPU, GPU-Hypre, GSLIB, SuiteSparse, libCEED, LAPACK)
19
-
The setup script accept various options. TO use it, one can either use --install-option flag
20
-
with pip, or download the package manually and run the script. For example, the one below downloads
21
-
and build parallel version of MFEM library (linked with Metis and Hypre)
22
-
and installs under <prefix>/mfem. See also, docs/install.txt
19
+
### Build with additional features (MPI, GPU, GPU-Hypre, GSLIB, SuiteSparse, libCEED, LAPACK)
23
20
21
+
The setup script accept various options. Download the package manually and run the script. Examples below downloads and build parallel version of MFEM library (linked with Metis and Hypre) and installs under <prefix>/mfem. See INSTALL.md for various other options
24
22
25
-
### Build from local source file
26
23
```shell
27
24
# Download source and build
28
-
$ pip download mfem --no-binary mfem (expand tar.gz file and move to the downloaded directory)
0 commit comments