Skip to content

New DA ep_format option to read in ensemble perturbation (ep)#900

Merged
jjguerrette merged 1 commit intowrf-model:developfrom
jamiebresch:new_ep_format
May 20, 2019
Merged

New DA ep_format option to read in ensemble perturbation (ep)#900
jjguerrette merged 1 commit intowrf-model:developfrom
jamiebresch:new_ep_format

Conversation

@jamiebresch
Copy link
Contributor

@jamiebresch jamiebresch commented May 7, 2019

TYPE: new feature

KEYWORDS: WRFDA, ep, ep_format

SOURCE: Jamie Bresch (NCAR)

DESCRIPTION OF CHANGES:

ep_format=1: (default) original format, double precision, each ep file is for one variable and one member, as the output from the current gen_be_ep2.
ep_format=11: same as ep_format=1 except data are in single precision
ep_format=2: single precision, each ep file is for one variable and all members
ep_format=3: single precision, each ep file is for one variable and all members but on decomposed patch domain

No impact on existing ep reading results.
New WRFDA code should work without any changes from the user when ep files are generated using the existing very inefficient gen_be_ep2 program.
New utility for generating ep in new formats (ep_format=1, 11, 2, 3 through namelist option) is proposed in PR #912.

LIST OF MODIFIED FILES:

modified: Registry/registry.var
modified: var/build/depend.txt
modified: var/da/da_main/da_solve.inc
modified: var/da/da_main/da_wrfvar_top.f90
modified: var/da/da_setup_structures/da_setup_flow_predictors.inc
new file: var/da/da_setup_structures/da_setup_flow_predictors_ep_format2.inc
new file: var/da/da_setup_structures/da_setup_flow_predictors_ep_format3.inc
modified: var/da/da_setup_structures/da_setup_structures.f90

TESTS CONDUCTED:

A case with 80-member 414x324x50 running with nproc=216.
The ep reading time:

EP Format Time (s)
1 52.0
11 45.0
2 24.0
3 0.3

ep_format=1 ~ 52 sec
ep_format=11 ~ 45 sec
ep_format=2 ~ 24 sec
ep_format=3 ~ 0.3 sec
Another major benefit to ep_format=3 is the reduced memory requirement.
New ep_format=11,2,3 produce identical analysis results.

RELEASE NOTE: New DA ep_format option to read in ensemble perturbation (ep) generated by existing gen_be_ep2 and new gen_be_v3 utilities.

modified:   Registry/registry.var
modified:   var/build/depend.txt
modified:   var/da/da_main/da_solve.inc
modified:   var/da/da_main/da_wrfvar_top.f90
modified:   var/da/da_setup_structures/da_setup_flow_predictors.inc
new file:   var/da/da_setup_structures/da_setup_flow_predictors_ep_format2.inc
new file:   var/da/da_setup_structures/da_setup_flow_predictors_ep_format3.inc
modified:   var/da/da_setup_structures/da_setup_structures.f90
@jjguerrette
Copy link
Contributor

jjguerrette commented May 8, 2019

Jamie, this is a great update to have in develop. Is it possible for you to also include corresponding writers for these different formats (i.e. replacements/alternatives to the current gen_be_ep2.f90)?

Copy link
Contributor

@jjguerrette jjguerrette left a comment

Choose a reason for hiding this comment

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

I'm fine if this goes into develop as-is, but the writers need to be included before release.

@liujake
Copy link
Contributor

liujake commented May 17, 2019

@jjguerrette this one shall be now ready to merge.

@jjguerrette
Copy link
Contributor

@jamiebresch, does gen_be_v3 (#912) also write these new formats of ensemble perturbations?

@jamiebresch
Copy link
Contributor Author

@jamiebresch, does gen_be_v3 (#912) also write these new formats of ensemble perturbations?

Yes, as implied by messages in both PR#900 and PR#912.
ep_format setting is described in var/gen_be_v3/README.gen_be_v3

@jjguerrette
Copy link
Contributor

Thank you for updating the PR message here!

@jjguerrette jjguerrette merged commit 825a444 into wrf-model:develop May 20, 2019
@jamiebresch jamiebresch deleted the new_ep_format branch May 20, 2019 19:46
liujake pushed a commit that referenced this pull request May 29, 2019
TYPE: bug fix

KEYWORDS: ep, ep_format2, bcast, WRFDA

SOURCE: Internal, JJ Guerrette

DESCRIPTION OF CHANGES: 

These modifications are required following #908 for release-v4.1.1.
The interface to wrf_dm_bcast_* requires an array argument instead of a scalar.  A compile error only arises when #908 and #900 are merged together.  The fix was tested in a 4D-Var build, but should be general.

ISSUE: none

LIST OF MODIFIED FILES: 
M       var/da/da_setup_structures/da_setup_flow_predictors_ep_format2.inc


TESTS CONDUCTED: Compilation is fixed when release-v4.1.1 is merged into develop.  This fix will also work in the current develop branch.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants