sunfluidh:makefile_configuration
Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
sunfluidh:makefile_configuration [2021/04/28 17:22] – yann | sunfluidh:makefile_configuration [2021/04/30 18:47] (Version actuelle) – [Compiler options] yann | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
===== How to configure the makefile ===== | ===== How to configure the makefile ===== | ||
+ | [[sunfluidh: | ||
+ | ----- | ||
==== Fortran compilers ==== | ==== Fortran compilers ==== | ||
The code sunfluidh is programmed in fortran 95 and 2003. | The code sunfluidh is programmed in fortran 95 and 2003. | ||
A makefile (named makefile) is present in the directory ' | A makefile (named makefile) is present in the directory ' | ||
- | * the inlet compiler (ifort) | + | * the intel compiler (ifort) |
* the GNU compiler (gfortran) | * the GNU compiler (gfortran) | ||
Common information on fortran compiler' | Common information on fortran compiler' | ||
- | ===== Makefile setup ===== | + | ==== Makefile setup ==== |
You have to set up the makefile in accordance with the computing environment and the simulation type. In the file ' | You have to set up the makefile in accordance with the computing environment and the simulation type. In the file ' | ||
Ligne 26: | Ligne 28: | ||
* AMD_OPT=YES or NO : enable (or not) some additional optimization options for AMD architecture (Intel CPU). Options are : -mavx2. Default value is NO | * AMD_OPT=YES or NO : enable (or not) some additional optimization options for AMD architecture (Intel CPU). Options are : -mavx2. Default value is NO | ||
* ADD_USER_OPT= .... . The user can add its own compiler' | * ADD_USER_OPT= .... . The user can add its own compiler' | ||
- | | + | |
* LOCAL (the default value) : the access path to external libraries is implicitly defined in the Operating System of the host. The usual fortran option " | * LOCAL (the default value) : the access path to external libraries is implicitly defined in the Operating System of the host. The usual fortran option " | ||
- | | + | |
- | * ' | + | * ' |
- | ==== Code configuration | + | ==== Labels for the code configuration ==== |
- | In order to configure the code in the suitable form (2D, 3D, parallelisation mode,...), labels are used to set the variable " | + | In order to configure the code in the suitable form (2D, 3D, parallelisation mode,...), labels are used to set the variable " |
So, this variable must just be set as CODE_CONFIG= LABEL1 LABEL2 ... | So, this variable must just be set as CODE_CONFIG= LABEL1 LABEL2 ... | ||
+ | |||
The common labels to use are : | The common labels to use are : | ||
* -DDIM3D | * -DDIM3D | ||
Ligne 51: | Ligne 54: | ||
The default configuration proposed in the makefile is : CODE_CONFIG= -DSHARED_DISK -DDIM2D | The default configuration proposed in the makefile is : CODE_CONFIG= -DSHARED_DISK -DDIM2D | ||
+ | [[sunfluidh: |
sunfluidh/makefile_configuration.1619623363.txt.gz · Dernière modification : 2021/04/28 17:22 de yann