Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use of system libraries and github workflows #50

Open
wants to merge 18 commits into
base: master
Choose a base branch
from
Open
Prev Previous commit
Next Next commit
Enhanced build instructions
  • Loading branch information
pthibaud committed Sep 7, 2021
commit 9529f8f435862d501bc9b789c7ca140634964550
15 changes: 10 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,22 @@
# Build instructions

Run the scripts in the 'install_external_libs' folder then:
Sparselizard depends on mandatory and optional external libraries.

On debian Linux, run
```sudo apt-get install -y libopenblas-dev libmetis-dev libopenmpi-dev libmumps-dev petsc-dev slepc-dev libgmsh-dev```
or
run the scripts in the 'install_external_libs' folder to download and install these libraries locally.

Then:
```bash
mkdir build && cd build
cmake ..
cmake --build . -j$(nproc)
mkdir build; cmake -B build .; cd build && make -j 4
```

---

To provide a custom path to the petsc, gmsh (optional) or mpi (optional) folder use:
```bash
cmake .. -DPETSC_PATH=/yourpath/petsc -DGMSH_PATH=/yourpath/gmsh -DMPI_PATH=/yourpath/mpi
cmake -B build . -DPETSC_PATH=/yourpath/petsc -DGMSH_PATH=/yourpath/gmsh -DMPI_PATH=/yourpath/mpi
```

It may be convenient to use the cmake GUI:
Expand Down