Changes between Version 31 and Version 32 of GeneralImplementationConcept
- Timestamp:
- May 31, 2025, 2:54:40 PM (2 days ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
GeneralImplementationConcept
v31 v32 25 25 26 26 [[Image(//pics/DAstructure_PDAF3_web.png)]] 27 [[BR]]'''Figure 1:''' Components required for data assimilation system. The data assimilation methods ('DA method') are provided by PDAF's core library. The handling of observations is supported by PDAF-OMI. 27 [[BR]]'''Figure 1:''' Components required for data assimilation system. The data assimilation methods ('DA method') are provided by PDAF's core library. The handling of observations is supported by PDAF-OMI. The type of data exchange between the model and the DA method or Observations depends on whether online or offline coupling is used (see below). The figure legend corresponds to online coupling. 28 28 29 29 … … 37 37 == Online and offline assimilation systems == 38 38 39 There aretwo possibilities to build a data assimilation system. Figure 2 sketches how these are realized with PDAF:40 1. '''Online mode:''' [[BR]] In the onlinemode, calls to subroutines for the data assimilation are inserted into the model code. Thesse routines call the PDAF core routines. A single data-assimilative model program is compiled. While running this single program, the necessary ensemble integrations and the actual assimilation are performed. The information transfer between the model and the data assimilation functions are performed in memory.41 1. '''Offline mode:''' [[BR]] In the offlinemode, the model is executed separately from the assimilation program. The model write restart files, which are used as inputs for the assimilation program. After computing the analysis step with the DA method, the assimilation program writes new restart files for the model, which is then started to compute the next forecast phase. In Figure 1, the model on the bottom left side is replaced by the reading and writing of files.39 PDAF supports two possibilities to build a data assimilation system. Figure 2 sketches how these are realized with PDAF: 40 1. '''Online coupling:''' [[BR]] In the online coupling mode, calls to subroutines for the data assimilation are inserted into the model code. Thesse routines call the PDAF core routines. A single data-assimilative model program is compiled. While running this single program, the necessary ensemble integrations and the actual assimilation are performed. The information transfer between the model and the data assimilation functions are performed in memory. 41 1. '''Offline coupling:''' [[BR]] In the offline coupling mode, the model is executed separately from the assimilation program. The model write restart files, which are used as inputs for the assimilation program. After computing the analysis step with the DA method, the assimilation program writes new restart files for the model, which is then started to compute the next forecast phase. In Figure 1, the model on the bottom left side is replaced by the reading and writing of files. 42 42 43 43 [[Image(//pics/DAextension_offline-online_V3.png)]] 44 44 [[BR]]'''Figure 2:''' Left: offline-coupled DA system with separate programs for model and assimilation; right: online-coupled DA system using model with attached data assimilation functionality. The blue boxes shows functionality of the model, while the green boxes are subroutines executed for PDAF (the names are explained in the pages explaining the two modes. They are linked on the bottom of the page). 45 45 46 PDAF supports both the online and offline modes. The online mode is usually more efficient on parallel computers, since less files have to be written to disks and the model does not need to be restarted after the analysis step. However, the required programming is simpler for the offline more than the online mode, since no modification to the model source code is necessary.46 The online mode is usually computationally more efficient on parallel computers, since less files have to be written to disks and the model does not need to be restarted after the analysis step. However, the required programming is simpler for the offline mode than the online mode, since no modification to the model source code is necessary for the offline mode. 47 47 48 48 The better efficiency of the online mode of the data assimilation system is caused by several factors: … … 51 51 * The assimilation system for the online mode can make efficient use of a large number of processors by executing a single program containing the full assimilation system. In contrast, in the offline mode, separate programs for the forecasts and the assimilation have to be run, each of these use typically a smaller number of processors. 52 52 53 The user-provided program code for the analysis step is , in general,very similar for the online and offline modes. The difference is mainly that in the online mode, one can access model fields and model grid information from the model source code (if the model is programmed in Fortran, the information is usually accessible via Fortran modules) while in the offline mode one needs to read the model fields and grid information from files. One can implement these reading operations in a way that for the offline mode the reading routines are used in the initialization phase, while all other subroutines remain independent on how the model fields and gird information are obtained.53 The user-provided program code for the analysis step is usually very similar for the online and offline modes. The difference is mainly that in the online mode, one can access model fields and model grid information from the model source code (if the model is programmed in Fortran, the information is usually accessible via Fortran modules) while in the offline mode one needs to read the model fields and grid information from files. One can implement these reading operations in a way that for the offline mode the reading routines are used in the initialization phase, while all other subroutines remain independent on how the model fields and gird information are obtained. 54 54 55 55 The implementation concepts of the online and offline modes of PDAF are further described on separate pages: