Changes between Version 1 and Version 2 of CompilingPdaf


Ignore:
Timestamp:
Jan 9, 2022, 1:37:37 PM (3 years ago)
Author:
lnerger
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • CompilingPdaf

    v1 v2  
    11= Compiling the PDAF library =
    22
    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.
     3The 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)
    44
    55The 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`).
     
    99To compile PDAF for ensemble filters and smoothers, do the following:
    1010
     11{{{
     12   cd src/
     13   make PDAF_ARCH=<ARCH>
     14}}}
     15where `<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
     17The 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
    1119
    1220== Compiling PDAF for 3D-Var methods ==
    1321
    14 The 3D-Var methods implemented in PDAF use solver algorithms from external libraries (from the driectory `external/`). To compile PDAF with full support for the 3D-Var schemes do the following:
     22The 3D-Var methods implemented in PDAF use solver algorithms from external libraries (from the directory `external/`).
    1523
     24To 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}}}
     30where `<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
     32The 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.