forked from ifumagalli/dolfin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
INSTALL
82 lines (57 loc) · 2.27 KB
/
INSTALL
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
Requirements
------------
DOLFIN uses CMake for configuration and installation. DOLFIN also
relies on a number of other third-party libraries. Your system will be
probed for these libraries as part of the configuration process.
Simple build and install
------------------------
In the simplest case, just issue the commands
mkdir build
cd build
cmake ..
make install
This will first configure DOLFIN for your system and then compile and
install DOLFIN in your system's default installation direcory, for
example in /usr/local/ or /opt/local/.
Local installation
------------------
It may sometimes be advantageous to install DOLFIN locally as part
of the DOLFIN source tree. To do this, simply type
./cmake.local
This configures, compiles, and install DOLFIN in a directory named
'local' in the DOLFIN source tree.
(Re-)generating the SWIG interface and docstrings
-------------------------------------------------
In order to regenerate the SWIG interface and update the
documentation, respectively, run the generator scripts:
./cmake/scripts/generate-swig-interface
./cmake/scripts/generate-swig-docstrings
Customized builds
-----------------
To customize the configuration of DOLFIN, it is convenient to use one
of the graphical user interfaces for CMake, such as either ccmake or
cmake-gui. These frontends to CMake allow simple manipulation of
variables that control the configuration of DOLFIN.
DOLFIN must be built 'out-of-source' which means that all files
generated by the build process end up in a separate directory without
cluttering the source tree. To make an out-of-source build for DOLFIN
using a graphical interface to CMake, simply type
mkdir build
cd build
cmake-gui ..
make install
Building demos and tests
------------------------
To build demos, enter the build directory (if any) and type
make demo
This will build all demos. To build a specific demo, just name the
demo you want to build, for example the Poisson demo, and type
make poisson_demo
Alternatively, you may navigate to the demo directory directly, for
example demo/documented/poisson/cpp and then build the demo using
CMake:
cmake .
make
Python demos can be run directly by navigating to the directory of the
demo and typing (in the case of the Poisson demo)
python demo_poisson.py