|
|
- [Building GmshFEM on Windows](#building-gmshfem-on-windows)
|
|
|
- [Building on Nic5 (Last updated in March 2023)](#building-on-nic5-last-updated-in-march-2023)
|
|
|
|
|
|
# Building GmshFEM on Windows
|
|
|
|
|
|
Here are detailed instructions on how to build GmshFEM on Windows, using Cygwin and the MinGW compilers. The resulting programs do *not* depend on the cygwin DLL, i.e. are pure Windows executables.
|
... | ... | @@ -131,4 +134,58 @@ cd build |
|
|
cmake ..
|
|
|
make
|
|
|
./tuto.exe
|
|
|
``` |
|
|
\ No newline at end of file |
|
|
```
|
|
|
|
|
|
|
|
|
# Building on Nic5 (Last updated in March 2023)
|
|
|
|
|
|
On NIC5, GmshFEM can be built from source once Gmsh and PETSc are found. Furthermore, additional dependencies are required depending on what the user wants to do: MUMPS to solve formulations, SLEPc, ...
|
|
|
We assume here that the user wants to install everything in `$HOME/.local`
|
|
|
|
|
|
## Gmsh
|
|
|
|
|
|
See the Gmsh instructions for full details. A basic version can be achieved with
|
|
|
```shell
|
|
|
cd
|
|
|
git clone https://gitlab.onelab.info/gmsh/gmsh.git
|
|
|
cd gmsh
|
|
|
mkdir build
|
|
|
cd build
|
|
|
cmake -DCMAKE_INSTALL_PREFIX=~/.local -DENABLE_BUILD_DYNAMIC=1 .. ..
|
|
|
make install
|
|
|
```
|
|
|
|
|
|
## PETSc
|
|
|
|
|
|
Download PETSc from Github, then configure it and build it. Here are valid flags to get MUMPS (which requires Scalapack) and MPI support. You should load OpenBLAS beforehand. We recommend putting it your `.bashrc` (`module load OpenBLAS`). You may also want to add optimization flags.
|
|
|
|
|
|
```
|
|
|
git clone -b release https://gitlab.com/petsc/petsc.git petsc
|
|
|
cd petsc
|
|
|
./configure --with-mumps=true --download-mumps=yes --download-scalapack --prefix=~/.local/petsc --with-scalar-type=complex --with-cc=mpicc --with-cxx=mpicxx --with-fc=mpif90 --with-debugging=0
|
|
|
```
|
|
|
|
|
|
## GmshFEM
|
|
|
|
|
|
```
|
|
|
cd
|
|
|
git clone https://gitlab.onelab.info/gmsh/fem.git
|
|
|
cd fem
|
|
|
mkdir build
|
|
|
cd build
|
|
|
cmake -DCMAKE_PREFIX_PATH=~/.local/ -D_CMAKE_INSTALL_PREFIX=~/.local/ ..
|
|
|
make
|
|
|
make install
|
|
|
```
|
|
|
|
|
|
To check the installation, you can run a simple tutorial, e.g.:
|
|
|
```
|
|
|
cd fem/tutorials/dirichlet
|
|
|
mkdir build
|
|
|
cd build
|
|
|
cmake -DCMAKE_PREFIX_PATH=~/.local ..
|
|
|
make
|
|
|
./tuto
|
|
|
```
|
|
|
|
|
|
|