Skip to content

Commit

Permalink
Merge branch 'su2code:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
Ujjawal179 authored Oct 1, 2024
2 parents 58ee601 + 78c60a8 commit ec77c32
Show file tree
Hide file tree
Showing 13 changed files with 445 additions and 0 deletions.
18 changes: 18 additions & 0 deletions _docs_v7/Build-SU2-Linux-MacOS.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,8 @@ Options can be passed to the script to enable or disable different features of S
| `-Denable-pastix` | `false` | enable PaStiX support |
| `-Denable-mpp` | `false` | enable Mutation++ support |
| `-Denable-mixedprec` | `false` | enable the use of single precision on linear solvers and preconditioners |
| `-Denable-mlpcpp` | `false` | enable the use of multi-layer perceptrons for data-driven fluid models |
| `-Denable-gprof` | `false` | enable profiling of SU2 through `gprof` |

For example to enable AD support pass the option to the `meson.py` script along with a value:
```
Expand Down Expand Up @@ -186,6 +188,22 @@ If the use of BLAS is restricted to RBF interpolation, parallel versions of Open

**Note:** The BLAS library needs to provide support for LAPACK functions. If this is not the case, the linker will fail with "undefined reference" errors, this problem can be solved by installing LAPACK and specifying it as an extra dependency when running `meson.py` using `-Dextra-deps=lapack` (this uses pkg-config, use commas to separate the names of multiple extra dependencies).

#### Profiling for developers ####

Profiling allows developers to identify inefficiencies in their code. SU2 can be compiled with profiling enabled through `-Denable-gprof=true`. After reconfiguration of meson and compiling the code, profiling is enabled for your SU2 executable. In order to retrieve the profiling analysis information, first run your simulation as normal. The following example is for `SU2_CFD`, although profiling is also supported for `SU2_CFD_AD`.

```
/path/to/binary/SU2_CFD config.cfg
```

After completion, a file called `gmon.out` is generated in your current working directory, indicating that the profiling was successful. In order to compile the analysis, run the command

```
gprof /path/to/binary/SU2_CFD > analysis.txt
```

Now the file `analysis.txt` contains the profiling analysis summary. For more advanced features on using `gprof` for profiling, see the [GNU gprof website](https://ftp.gnu.org/old-gnu/Manuals/gprof-2.9.1/html_mono/gprof.html).

### Compilation ###

Finally to compile and install SU2 use
Expand Down
427 changes: 427 additions & 0 deletions _tutorials/incompressible_flow/Inc_Combustion/Inc_Combustion.md

Large diffs are not rendered by default.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit ec77c32

Please sign in to comment.