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. |
| 32 | The compilation with generate the PDAF library file '''PDAFROOT/lib/libpdaf-var.a'''. This library also includes the ensemble filters and smoothers. |
| 33 | 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. |
| 34 | |
| 35 | |
| 36 | == Linking the PDAF library == |
| 37 | |
| 38 | To point to the PDAF include directory to ensure that `pdaf_interface_module` and the `PDAFomi` module are found, one should specificy |
| 39 | {{{ |
| 40 | -I${PDAFROOT}/include |
| 41 | }}} |
| 42 | Here `${PDAFROOT}` is the directory of the PDAF package. It can either be directly specified by replacing ${PDAFROOT} or one speficies PDAFROOT as a variable. |
| 43 | |
| 44 | For linking the PDAF library for the ensemble schemes use |
| 45 | {{{ |
| 46 | -L${PDAFROOT}/lib -lpdaf-d |
| 47 | }}} |
| 48 | while in case of the PDAF library supporting the 3D-Var schemes use |
| 49 | {{{ |
| 50 | -L${PDAFROOT}/lib -lpdaf-var |
| 51 | }}} |
| 52 | |
| 53 | Apart from the PDAF library, one also needs to specify the location of the BLAS and LAPACK libraries (for example by setting `-lblas -llapack` if the libraries are installed in standard directories) |