Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GitHub Issue NOAA-EMC/GSI#450 Using global and regional ensembles simultaneously for fv3-lam GSI EnVar (add l_both_fv3sar_gfs_ens option) #451

Conversation

TingLei-daprediction
Copy link
Contributor

This PR is to add the mixed ensemble option for fv3-lam GSI EnVar. #450.
It passed the developer's own verification tests for this branch on hera. On hera, It failed in a few GSI 's own regression tests for the scalability problem, which I think could be attributed to some hera's system performance change and could be disregard now. I am re-running those regression tests and would update here.
@MichaelLueken-NOAA I did the rebase for this change and please let me know if it doesn't meet the GSI PR requirement.

@@ -242,8 +257,10 @@ subroutine get_fv3_regional_ensperts_run(this,en_perts,nelen,ps_bar)
kapr=one/rd_over_cp
!
! LOOP OVER ENSEMBLE MEMBERS
do n=1,n_ens
write(ensfilenam_str,22) trim(adjustl(ensemble_path)),ens_fhrlevs(m),n
!cltorg do n=1,n_ens
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove line 260 is unused.

@@ -493,7 +510,8 @@ subroutine get_fv3_regional_ensperts_run(this,en_perts,nelen,ps_bar)
enddo
!
! CALCULATE ENSEMBLE MEAN
bar_norm = one/float(n_ens)
!cltorg bar_norm = one/float(n_ens)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove unused comment line


do n=1,n_ens
!cltorg do n=1,n_ens
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove line 542 and 545

@@ -42,6 +42,7 @@ subroutine get_gefs_for_regional
use hybrid_ensemble_parameters, only: region_lat_ens,region_lon_ens
use hybrid_ensemble_parameters, only: en_perts,ps_bar,nelen
use hybrid_ensemble_parameters, only: n_ens,grd_ens,grd_a1,grd_e1,p_e2a,uv_hyb_ens,dual_res
use hybrid_ensemble_parameters, only: n_ens_gfs
use hybrid_ensemble_parameters, only: full_ensemble,q_hyb_ens,l_ens_in_diff_time,write_ens_sprd
use hybrid_ensemble_parameters, only: ntlevs_ens,ensemble_path,jcap_ens
!use hybrid_ensemble_parameters, only: add_bias_perturbation
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove line 48

Copy link
Contributor

@MichaelLueken MichaelLueken left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @TingLei-daprediction. I have completed my review. The code was compiled using Intel and GNU compilers without issue. While compiling in debug mode, one variable was identified as unused (n_ens on line 44 of get_gefs_for_regional.f90). The regression tests were run for the Intel, GNU, and debug executables and all passed successfully. There were a few issues I've noted in my review (@lbi2018 has also noted several of these in her review). Before making any changes to the source code, please update your branch to the latest authoritative repository using:

Please correct the conflicts in src/gsi/gsimod.F90 and src/gsi/hybrid_ensemble_parameter.f90.

  • git rebase --continue

Please apply the changes from @lbi2018 and my reviews.

  • git push origin feature/gsi_fv3lam_mix_ens --force

If you have any questions or encounter any issues, please let me know.

src/gsi/cplr_get_fv3_regional_ensperts.f90 Outdated Show resolved Hide resolved
src/gsi/cplr_get_fv3_regional_ensperts.f90 Outdated Show resolved Hide resolved
src/gsi/cplr_get_fv3_regional_ensperts.f90 Outdated Show resolved Hide resolved
src/gsi/cplr_get_fv3_regional_ensperts.f90 Outdated Show resolved Hide resolved
src/gsi/cplr_get_fv3_regional_ensperts.f90 Outdated Show resolved Hide resolved
src/gsi/gsimod.F90 Outdated Show resolved Hide resolved
src/gsi/gsimod.F90 Outdated Show resolved Hide resolved
src/gsi/gsimod.F90 Outdated Show resolved Hide resolved
src/gsi/get_gefs_for_regional.f90 Outdated Show resolved Hide resolved
src/gsi/get_gefs_for_regional.f90 Outdated Show resolved Hide resolved
@TingLei-daprediction
Copy link
Contributor Author

@lbi2018 and @MichaelLueken-NOAA I had finished the changes as requested and pushed them back to the repository.
The GSI 's own regression regression tests are still running since yesterday. However, my own tests demonstrated the current branch with the changes from EMC GSI gives the identical results compared with previous branch. It is reasonable since in those runs only conventional obs are used and the changes from EMC GSI are mainly to improve optimization in more difficult situations when satellite obs are used. Hence, the current PR is regarded as verified.

@MichaelLueken
Copy link
Contributor

Hi @TingLei-daprediction. I see that you have merged the latest authoritative repository to your feature/gsi_fv3lam_mix_ens branch. However, it doesn't look as though you addressed the coding concerns brought up by @lbi2018 and myself. Please make sure to go over our requested changes, make the necessary changes, use git add on the modified files, then git commit --amend to commit the changes, then git push origin feature/gsi_fv3lam_mix_ens --force to push the modified files back to the repository. Thank you very much for your time!

@TingLei-daprediction
Copy link
Contributor Author

@MichaelLueken-NOAA , My bad. the local changes were not committed back. Now it should be ok. Thanks.

Copy link
Contributor

@MichaelLueken MichaelLueken left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@TingLei-daprediction Thank you very much for addressing @lbi2018 and my concerns! On lines 234 and 235 of src/gsi/get_gefs_for_regional.f90, if these lines should be kept (they appear to be debug writes, at first glance), then please indent these two lines two spaces so that they align with line 238 below. Once completed and once @lbi2018 has given her approval, I will be able to submit your work to the review committee. Thanks again!

src/gsi/get_gefs_for_regional.f90 Outdated Show resolved Hide resolved
…aneously for fv3-lam GSI EnVar (add l_both_fv3sar_gfs_ens option)
Copy link
Contributor

@MichaelLueken MichaelLueken left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, @TingLei-daprediction! I approve of these changes.

@TingLei-daprediction
Copy link
Contributor Author

@MichaelLueken-NOAA Thanks for pointing me to this line, around which I should give more careful treatment with more informative warning as the current version.

@MichaelLueken
Copy link
Contributor

Hi @lbi2018. At your earliest convenience, please go through the changes again and make sure that you are happy with the changes. If you are, please approve the changes, otherwise, please let @TingLei-daprediction know. Thank you very much!

@lbi2018
Copy link
Contributor

lbi2018 commented Aug 18, 2022

Approved the changes. Thanks. -Li

@MichaelLueken MichaelLueken changed the title GitHub Issue NOAA-EMC/GSI#450 Using global and regional ensembles s… GitHub Issue NOAA-EMC/GSI#450 Using global and regional ensembles simultaneously for fv3-lam GSI EnVar (add l_both_fv3sar_gfs_ens option) Aug 26, 2022
@MichaelLueken
Copy link
Contributor

The due date for these changes have past with no feedback, so I will give final approval to these changes and merge them to the authoritative develop branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Using global and regional ensembles simultaneously for fv3-lam GSI EnVar
3 participants