Changes between Version 9 and Version 10 of OfflineAdaptParallelization
- Timestamp:
- May 19, 2025, 5:27:20 PM (13 days ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
OfflineAdaptParallelization
v9 v10 20 20 The PDAF release provides example code for the offline mode in `tutorial/offline_2D_parallel`. We refer to this code to use it as a basis. 21 21 22 If the the tutorial implementation `tutorial/offline_2D_parallel`, or the template code in `templates/offline` is used as the basis for the implementation, it one can simply keep this part of the program, i.e. the call to `init_parallel_pdaf` unchanged and directly proceed to the [OfflineInitPdaf initialization of PDAF] for the offline mode. 22 || The initialization of the parallelization is done by the subroutine `init_parallel_pdaf`. If one uses the tutorial implementation `tutorial/offline_2D_parallel`, or the template code in `templates/offline` as the basis for the implementation, it one can simply use this routine without changes and directly proceed to the [OfflineInitPdaf initialization of PDAF] for the offline mode. || 23 23 24 Like many numerical models, PDAF uses the MPI standard for the parallelization. PDAF requires for the compilation that an MPI library is available. In any case, it is necessary to execute the routine `init_parallel_pdaf` as described below. 25 26 For completeness, we describe here the communicators required for PDAF as well as the template initialization routine. 27 24 For completeness, we describe here the PDAF's approach for the parallelization. 28 25 29 26 30 27 == Three communicators == 28 29 Like many numerical models, PDAF uses the MPI standard for the parallelization. PDAF requires for the compilation that an MPI library is available. In any case, it is necessary to execute the routine `init_parallel_pdaf` as described below. 31 30 32 31 MPI uses so-called 'communicators' to define sets of parallel processes. In the offline mode, the communicators of the PDAF parallelization are only used internally to PDAF. However, as the communicators need to be initialized and provided to `PDAF_init` to initialized PDAF, we describe them here.