| ... | @@ -2,7 +2,7 @@ This page explains how to build the examples on your personal laptop or on the [ |
... | @@ -2,7 +2,7 @@ This page explains how to build the examples on your personal laptop or on the [ |
|
|
|
|
|
|
|
As prerequisite, you must have verified that [git](Git), [a C++ compiler](C++ Compiler) and [CMake](CMake) are correctly installed on your system. Using [VS Code](Visual-Studio-Code) is recommended by not mandatory.
|
|
As prerequisite, you must have verified that [git](Git), [a C++ compiler](C++ Compiler) and [CMake](CMake) are correctly installed on your system. Using [VS Code](Visual-Studio-Code) is recommended by not mandatory.
|
|
|
|
|
|
|
|
## Windows
|
|
## 🪟 Windows
|
|
|
* Clone the repository somewhere on your PC:
|
|
* Clone the repository somewhere on your PC:
|
|
|
```
|
|
```
|
|
|
git clone git@gitlab.uliege.be:rboman/math0471.git
|
|
git clone git@gitlab.uliege.be:rboman/math0471.git
|
| ... | @@ -47,7 +47,7 @@ code1_loadgeo.exe ..\rectangle.geo |
... | @@ -47,7 +47,7 @@ code1_loadgeo.exe ..\rectangle.geo |
|
|
```
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
|
## CECI clusters / Linux / macOS
|
|
## 🐧 CECI clusters / Linux / 🍎 macOS
|
|
|
|
|
|
|
|
* Clone the repository:
|
|
* Clone the repository:
|
|
|
```
|
|
```
|
| ... | @@ -89,7 +89,7 @@ make -j 4 |
... | @@ -89,7 +89,7 @@ make -j 4 |
|
|
```
|
|
```
|
|
|
./code1_loadgeo ../rectangle.geo
|
|
./code1_loadgeo ../rectangle.geo
|
|
|
```
|
|
```
|
|
|
# "Debug" mode vs "Release" mode
|
|
# 🐌 "Debug" mode vs 🐇 "Release" mode
|
|
|
|
|
|
|
|
The code is built in "*debug mode*" by default. It means that the compiler makes no optimisations at all. It also enables many runtime checks and makes debugging possible by embedding all the debug symbols (the name of your variables and functions) into the executable.
|
|
The code is built in "*debug mode*" by default. It means that the compiler makes no optimisations at all. It also enables many runtime checks and makes debugging possible by embedding all the debug symbols (the name of your variables and functions) into the executable.
|
|
|
|
|
|
| ... | @@ -110,7 +110,7 @@ which is equivalent to |
... | @@ -110,7 +110,7 @@ which is equivalent to |
|
|
cmake -DCMAKE_BUILD_TYPE=Debug ..
|
|
cmake -DCMAKE_BUILD_TYPE=Debug ..
|
|
|
```
|
|
```
|
|
|
|
|
|
|
|
# Note about the environment scripts
|
|
# 🗒️ Note about the environment scripts
|
|
|
|
|
|
|
|
The scripts in the `math0471/envs/` folder add several folders to 3 environment variables so that the system and CMake find the compiler and the libraries correctly:
|
|
The scripts in the `math0471/envs/` folder add several folders to 3 environment variables so that the system and CMake find the compiler and the libraries correctly:
|
|
|
* `PATH`: this variable should contain the location of the folder of your `g++` compiler, of `gmsh.exe` and its shared library (`gmsh.dll/.so/.dylib`),
|
|
* `PATH`: this variable should contain the location of the folder of your `g++` compiler, of `gmsh.exe` and its shared library (`gmsh.dll/.so/.dylib`),
|
| ... | |
... | |
| ... | | ... | |