| 65 | | This completes the adaptation of the parallelization. The compilation of the model has to be adjusted for the added files holding the routine `init_parallel_pdaf` and the module `mod_parallel`. One can test the extension by running the compiled model. It should run as without these changes, because `mod_parallel` defines by default that a single model task is executed (`n_modeltasks=1`). |
| | 65 | This completes the adaptation of the parallelization. The compilation of the model has to be adjusted for the added files holding the routine `init_parallel_pdaf` and the module `mod_parallel`. One can test the extension by running the compiled model. It should run as without these changes, because `mod_parallel` defines by default that a single model task is executed (`n_modeltasks=1`). If `screen` is set to 1 in the call to init_parallel_pdaf, the standard output should include lines like |
| | 66 | {{{ |
| | 67 | PDAF: Initializing communicators |
| | 68 | |
| | 69 | PE configuration: |
| | 70 | world filter model couple filterPE |
| | 71 | rank rank task rank task rank T/F |
| | 72 | ---------------------------------------------------------- |
| | 73 | 0 0 1 0 1 0 T |
| | 74 | 1 1 1 1 2 0 T |
| | 75 | 2 2 1 2 3 0 T |
| | 76 | 3 3 1 3 4 0 T |
| | 77 | }}} |
| | 78 | These lines show the configuration of the communicators. This example was executed using 4 processes and `n_modeltasks=1`. |
| | 79 | |