| 140 | |
| 141 | == Porting to PDAFlocal == |
| 142 | |
| 143 | If you like to port you existing code to using PDAFlocal, the steps are the following |
| 144 | 1. Change the call to the analysis routine from `PDAFomi_` to `PDAFlocalomi_` (or `PDAF_` to `PDAFlocal_` for non-OMI implementations) |
| 145 | 1. Remove `g2l_state_pdaf` and `l2g_state_pdaf` from the interface of the `PDAFlocalomi_` |
| 146 | routine |
| 147 | 1. In `init_dim_l_pdaf` ensure that the index array for the mapping between the global and local state vectors is implemented (this should exist if the implementation followed the tutorial and templates where it is the array `id_lstate_in_pstate`). |
| 148 | 1. Insert the call to `PDAFlocal_set_indices`. |
| 149 | |
| 150 | After these steps it should be possible to recompile and run. If this was successful, one can safely remove the files holding `g2l_state_pdaf` and `l2g_state_pdaf`. |