forked from MPAS-Dev/MPAS-Model
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reduce file size via 2-stream model initialization and DA cycling (#5)
This PR consists of 4 changes: **1. Two-stream model initialization:** Currently, we use the restart file for MPAS-JEDI cycling. While we move to higher-resolution cycling experiments, we face the challenge of both memory usage and disk storage. This PR addresses the disk storage issue. The idea is: instead of using restart files, we move to use the file (init.nc type background/analysis file) that keeps only the necessary fields. Also split out static fields into a separate file. These v7-based changes are based off of a v6-based branch (skamaroc@096b5d3). **2. Allow comparable two-stream 'mpasout' cycling result with that of one-stream 'restart' cycling:** This PR also fixes the large T2m/Q2m and low-level T/Q error growth issue that shows up in 120-km cycling experiments with this 2-stream workflow, which is caused by the different initialization of land use fields when config_do_restart is true and false. After this change in mpas_atmphys_landuse.F, using this two-stream code gives comparable cycling results to the original restart cycling. **3. Add 4 more variables (pressure_base, pressure_p, u/v at cell center) in core_init_atmosphere/Registry.xml to ease init.nc file to be used for the model-space verification purpose.** **4. Commented out one line in mpas_init_atm_cases.F to fix the over-specification issue of sea ice.** Files changed: M src/core_atmosphere/Registry.xml M src/core_atmosphere/mpas_atm_core.F M src/core_atmosphere/mpas_atm_core_interface.F M src/core_atmosphere/physics/mpas_atmphys_landuse.F M src/core_init_atmosphere/Registry.xml M src/core_init_atmosphere/mpas_init_atm_cases.F **Details for two-stream model initialization and DA cycling:** - static stream: Includes the mesh, some of sfc_input variables(landmask, shdmin, albedo12m, etc) and parameters for gravity wave drag over orography. - da_state stream: Fields are specified in the MPAS-Atmosphere Registry. Includes fields needed for DA purposes (either analysis variables or fixed input needed for CRTM or other obs operators) - For cold start FC, both the static stream file and the input stream file should be set to the “init.nc” file produced by the init_atmosphere core; - For cycling run (FC), the input stream file should be the new da_state stream file that was previously written by the model and modified/updated in the DA cycle. (Both static and da_state stream need to be specified in the streams.atmosphere file) - For cycling run (DA): use static.nc to read in mesh fields (specified in the streams.atmosphere file) and set: config_do_restart = false - After implementing the capability, the size of the 120-km init.nc type background/analysis file is about 430M (double precision); ~50 variables (the size of original restart file is about 2GB). Memory usage also decreased when we separated the static stream: <img width="1256" alt="memory_usage" src="https://user-images.githubusercontent.com/23242703/90163085-dba06480-dd52-11ea-9d90-02ea7ffa5863.png"> - If users would like to use restart files in cycling DA, the only difference from before is in prepare “1stCycle_background” step, please see example: (pay attention to streams.atmosphere, namelist.atmosphere and run_fc2018041418.csh) script: /glade/work/jban/pandac/JB01_restart_1stCycle_background/run_fc2018041418.csh results:/glade/scratch/jban/pandac/JB01_restart_1stCycle_background - The modification has no impact on restart mode run. The following figure shows 6-h forecast from restart cycling run (current code: old; this PR :new) verified against GFSANA and there is no difference between them. ![JB01_restart-expmgfs_day0p25_NXTro_surface_pressure_RMS](https://user-images.githubusercontent.com/23242703/98064199-f690eb00-1e0e-11eb-8009-14070edeae57.png) - Tested on Cheyenne. All ctests passed.
- Loading branch information
Showing
6 changed files
with
143 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters