Changes between Version 30 and Version 31 of AdaptParallelization
- Timestamp:
- Jun 3, 2024, 10:39:20 AM (6 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
AdaptParallelization
v30 v31 122 122 === Serial assimilation system === 123 123 124 The data assimilation program can be compiled for serial processing without linking a real MPI library. As in the PDAF code calls to MPI functions are implemented, the file `nullmpi.F90` available in the directroy `templates` should be compiled and liked. An example for this gives the case `make.arch/linux_gfortran.h`. `nullmpi.F90` provides the functionality of the MPI functions for the case that only a single process is used and hence no real communication is performed. A shortened header file `mpif.h` is provided in the directory `src/dummympi`. This file is in general not compatible with real MPI libraries and should only be used without parallelization. 124 PDAF requires that an MPI-library is present. Usually this is easy to realize since for example OpenMPI is available for many operating systems and can easily be installed from a package. 125 125 126 Even without parallelization, the call to `init_parallel_pdaf` described above is still required. The routine will simpleinitialize the parallelization variables for a single-process case.126 Even if the model itself does not use parallelization, the call to `init_parallel_pdaf` described above is still required. The routine will simply initialize the parallelization variables for a single-process case. 127 127 128 128 === Adding parallelization to a serial model ===