Changes between Version 1 and Version 2 of CompilingPdaf
- Timestamp:
- Jan 9, 2022, 1:37:37 PM (3 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
CompilingPdaf
v1 v2 1 1 = Compiling the PDAF library = 2 2 3 The tutorial implementations in the directory ` tutorial/` and the models implemented with PDAF in `models/` are setup to compile the PDAF library when the application is compiled.3 The tutorial implementations in the directory `PDAFROOT/tutorial/` and the models implemented with PDAF in `PDAFROOT/models/` are setup to compile the PDAF library when the application is compiled. (Here `PDAFROOT/` is the directory of the PDAF package) 4 4 5 5 The PDAF library, thus the core routines of PDAF and PDAF-OMI, can also be compiled separately. This is the common approach when one implements PDAF with some models in the online-coupled setup (see e.g. the directory `modelbindings`). … … 9 9 To compile PDAF for ensemble filters and smoothers, do the following: 10 10 11 {{{ 12 cd src/ 13 make PDAF_ARCH=<ARCH> 14 }}} 15 where `<ARCH>` is the filename of the computer-specific settings from the directory `PDAFROOT/make.arch/` without `.h`. A common choice is '''<ARCH>=linux_gfortran_openmpi'''. 16 17 The compilation with generate the PDAF library file '''PDAFROOT/lib/libpdaf-d.a'''. In addition several Fortran module files `*.mod` are generated in the directory `PDAFROOT/include/`. These will be used when compiling the application program coupled to PDAF. 18 11 19 12 20 == Compiling PDAF for 3D-Var methods == 13 21 14 The 3D-Var methods implemented in PDAF use solver algorithms from external libraries (from the d riectory `external/`). To compile PDAF with full support for the 3D-Var schemes do the following:22 The 3D-Var methods implemented in PDAF use solver algorithms from external libraries (from the directory `external/`). 15 23 24 To compile PDAF with full support for the analysis with 3D-Var schemes do the following: 25 26 {{{ 27 cd src/ 28 make pdaf-var PDAF_ARCH=<ARCH> 29 }}} 30 where `<ARCH>` is the filename of the computer-specific settings from the directory `PDAFROOT/make.arch/` without `.h`. A common choice is '''<ARCH>=linux_gfortran_openmpi'''. 31 32 The compilation with generate the PDAF library file '''PDAFROOT/lib/libpdaf-var.a'''. In addition several Fortran module files `*.mod` are generated in the directory `PDAFROOT/include/`. These will be used when compiling the application program coupled to PDAF.