File: debugging.rst

package info (click to toggle)
code-saturne 4.3.3%2Brepack-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 77,992 kB
  • sloc: ansic: 281,257; f90: 122,305; python: 56,490; makefile: 3,915; xml: 3,285; cpp: 3,183; sh: 1,139; lex: 176; yacc: 101; sed: 16
file content (29 lines) | stat: -rw-r--r-- 949 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
==================================================================
*Code_Saturne* howto: **compile user source in debugging mode**
==================================================================

----------------
Introduction
----------------

We recommend to compile user sources with a debug build of
*code_Saturne* to verify and control array bounds, etc. Two versions of
*Code_Saturne* and *Neptune_CFD* are present in *SALOME_CFD*:

    - a production build in *CFD_MODULE*,
    - a debug build as a tool.

Only optimize version is available with GUI now.

------------------
Use debug version
------------------

To use debugging build, launch a salome shell with the command: ``~/salome/appli_x_y_z/salome shell``.

We define a variable in the environment for a direct access to *Code_Saturne* and *Neptune_CFD*. To use
both codes use:

    - ``$CFDSTUDY_DBG_ROOT_DIR/bin/code_saturne``,
    - ``$CFDSTUDY_DBG_ROOT_DIR/bin/neptune_cfd``.