Skip to content

Commit eedbe4b

Browse files
authored
Removed local installtion
1 parent d5f67f2 commit eedbe4b

File tree

1 file changed

+0
-86
lines changed

1 file changed

+0
-86
lines changed

README.md

-86
Original file line numberDiff line numberDiff line change
@@ -25,92 +25,6 @@ For development, the submodules in this repository (Dolfin-X, FFC-X, etc.) are m
2525
docker run -v [host path to repo]/fenics_work:/local/fenics_work -it simd-work python3 /local/fenics_work/main/simd/check_install.py
2626
```
2727

28-
### Installing FEniCS locally *(not updated)*
29-
30-
Previously, I used a local installtion of FEniCS for development on linux and wrote an install script for this. However, I did not update it recently.
31-
32-
#### Required packages
33-
The [dolfinx Dockerfile](https://github.com/FEniCS/dolfinx/blob/master/Dockerfile) shows which packages are required.
34-
As a single command:
35-
```
36-
sudo apt-get -y install \
37-
cmake \
38-
doxygen \
39-
g++ \
40-
gfortran \
41-
git \
42-
gmsh \
43-
graphviz \
44-
libboost-dev \
45-
libboost-filesystem-dev \
46-
libboost-iostreams-dev \
47-
libboost-math-dev \
48-
libboost-program-options-dev \
49-
libboost-system-dev \
50-
libboost-thread-dev \
51-
libboost-timer-dev \
52-
libeigen3-dev \
53-
libhdf5-openmpi-dev \
54-
liblapack-dev \
55-
libopenmpi-dev \
56-
libopenblas-dev \
57-
openmpi-bin \
58-
pkg-config \
59-
python3-dev \
60-
valgrind \
61-
wget \
62-
bash-completion
63-
```
64-
65-
#### Install script
66-
The `install_fenics.py` script downloads all major FEniCS components (fiat, ufl, dijisto, ffcx, dolfinx and Firedrake's tsfc, coffee, finat) from their repositories (master branch) and installs them in a python virtual environment.
67-
68-
##### Options
69-
Currently, the script has the following options:
70-
```
71-
usage: install_fenics.py [-h] [-r REPO_DIR] [-y] [-l | -co] [-j JOBS]
72-
[install_prefix]
73-
74-
install and set up an environment for FEniCS from git
75-
76-
positional arguments:
77-
install_prefix FEniCS will be installed into this folder. If not
78-
specified, the current folder will be used.
79-
80-
optional arguments:
81-
-h, --help show this help message and exit
82-
-r REPO_DIR, --repo-dir REPO_DIR
83-
Directory where source directories (repositories) will
84-
be stored/are already located.
85-
-y, --yes Respond with 'yes' to all confirmation messages.
86-
-l, --local Don't clone any repositories, use local files.
87-
-co, --clone-only Only clone the required repositories, no
88-
install/build.
89-
-j JOBS, --jobs JOBS Number of make jobs to issue for building DOLFIN ('-j'
90-
parameter for make). Default is to use
91-
'os.cpu_count()'.
92-
```
93-
The `install_prefix` will contain the `fenics_env` virtual environment, the `dolfin` install directory, etc.
94-
95-
##### Virtual environment
96-
In order to run the script, the `virtualenv` and `click` python packages are required. Install it using:
97-
```
98-
pip3 install virtualenv click
99-
```
100-
Optionally, add the user python bin directory to your path in `~/.profile`:
101-
```
102-
export PATH=$PATH:~/.local/bin
103-
```
104-
105-
#### Activating the environment
106-
If the installtion folder was specified as `~/fenics`, the proper environment can be activated by
107-
```
108-
source ~/fenics/fenics_env/bin/activate
109-
source ~/fenics/dolfinx/share/dolfin/dolfin.conf
110-
export PETSC_DIR=~/fenics/petsc
111-
export SLEPC_DIR=~/fenics/slepc
112-
```
113-
11428
### Debugging
11529

11630
On Ubuntu the default core file size limit is 0. Use

0 commit comments

Comments
 (0)