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

Add packaging in registry.var for WRFDA derived type variables #283

Merged
merged 1 commit into from
Aug 11, 2017

Conversation

jamiebresch
Copy link
Contributor

@jamiebresch jamiebresch commented Aug 3, 2017

TYPE: enhancement

KEYWORDS: WRFDA, registry.var, package, derived type

SOURCE: Jamie Bresch (NCAR)

DESCRIPTION OF CHANGES:
A few C programs in tools are modified to allow packaging for
derived types that WRFDA use.
Main changes are in registry.var.
Changes in var/da files are for complementing the registry changes.
This reduces the 3DVAR memory usage by another ~15-20%.

This PR changes the section of code for ARW's fdob derived type in inc/allocs.inc.
But note that fdob is not packaged both before and after the change.

LIST OF MODIFIED FILES:
M Registry/registry.var
M tools/gen_allocs.c
M tools/gen_scalar_indices.c
M tools/protos.h
M var/da/da_main/da_wrfvar_init2.inc
M var/da/da_radar/da_radar.f90
M var/da/da_radar/da_transform_xtoy_radar.inc
M var/da/da_radar/da_transform_xtoy_radar_adj.inc
M var/da/da_radiance/da_crtm.f90
M var/da/da_radiance/da_transform_xtoy_crtm.inc
M var/da/da_radiance/da_transform_xtoy_crtm_adj.inc

TESTS CONDUCTED:

  1. WRFDA regtests on cheyenne with intel/17.0.1 passed.
  2. WTF_v03.08 on yellowstone with gnu/4.9.2 and intel/12.1.5 passed.

modified:   Registry/registry.var
modified:   tools/gen_allocs.c
modified:   tools/gen_scalar_indices.c
modified:   tools/protos.h
modified:   var/da/da_main/da_wrfvar_init2.inc
modified:   var/da/da_radar/da_radar.f90
modified:   var/da/da_radar/da_transform_xtoy_radar.inc
modified:   var/da/da_radar/da_transform_xtoy_radar_adj.inc
modified:   var/da/da_radiance/da_crtm.f90
modified:   var/da/da_radiance/da_transform_xtoy_crtm.inc
modified:   var/da/da_radiance/da_transform_xtoy_crtm_adj.inc
Copy link
Contributor

@mkavulich mkavulich left a comment

Choose a reason for hiding this comment

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

Approved by wrf-dev committee

@jamiebresch jamiebresch merged commit c7405bb into wrf-model:master Aug 11, 2017
@jamiebresch jamiebresch deleted the wrfda_package2 branch August 11, 2017 19:12
mkavulich pushed a commit that referenced this pull request Aug 15, 2017
TYPE: enhancement

KEYWORDS: WRFDA, registry.var, package, derived type

SOURCE: Jamie Bresch (NCAR)

DESCRIPTION OF CHANGES:
A few C programs in tools are modified to allow packaging for
derived types that WRFDA use.
Main changes are in registry.var.
Changes in var/da files are for complementing the registry changes.
This reduces the 3DVAR memory usage by another ~15-20%.

This PR changes the section of code for ARW's fdob derived type in inc/allocs.inc.
But note that fdob is not packaged both before and after the change.

LIST OF MODIFIED FILES:
M Registry/registry.var
M tools/gen_allocs.c
M tools/gen_scalar_indices.c
M tools/protos.h
M var/da/da_main/da_wrfvar_init2.inc
M var/da/da_radar/da_radar.f90
M var/da/da_radar/da_transform_xtoy_radar.inc
M var/da/da_radar/da_transform_xtoy_radar_adj.inc
M var/da/da_radiance/da_crtm.f90
M var/da/da_radiance/da_transform_xtoy_crtm.inc
M var/da/da_radiance/da_transform_xtoy_crtm_adj.inc

TESTS CONDUCTED:
1. WRFDA regtests on cheyenne with intel/17.0.1 passed.
2. WTF_v03.08 on yellowstone with gnu/4.9.2 and intel/12.1.5 passed.

(cherry picked from commit c7405bb)
mkavulich pushed a commit that referenced this pull request Aug 24, 2017
TYPE: enhancement

KEYWORDS: WRFDA, registry.var, package, derived type

SOURCE: Jamie Bresch (NCAR)

DESCRIPTION OF CHANGES:
A few C programs in tools are modified to allow packaging for
derived types that WRFDA use.
Main changes are in registry.var.
Changes in var/da files are for complementing the registry changes.
This reduces the 3DVAR memory usage by another ~15-20%.

This PR changes the section of code for ARW's fdob derived type in inc/allocs.inc.
But note that fdob is not packaged both before and after the change.

LIST OF MODIFIED FILES:
M Registry/registry.var
M tools/gen_allocs.c
M tools/gen_scalar_indices.c
M tools/protos.h
M var/da/da_main/da_wrfvar_init2.inc
M var/da/da_radar/da_radar.f90
M var/da/da_radar/da_transform_xtoy_radar.inc
M var/da/da_radar/da_transform_xtoy_radar_adj.inc
M var/da/da_radiance/da_crtm.f90
M var/da/da_radiance/da_transform_xtoy_crtm.inc
M var/da/da_radiance/da_transform_xtoy_crtm_adj.inc

TESTS CONDUCTED:
1. WRFDA regtests on cheyenne with intel/17.0.1 passed.
2. WTF_v03.08 on yellowstone with gnu/4.9.2 and intel/12.1.5 passed.

(cherry picked from commit c7405bb)
(cherry picked from commit cf876ee)
jjguerrette pushed a commit to jjguerrette/WRF-public that referenced this pull request Sep 12, 2018
by requiring cloud_cv_options that match packaging defined in registry.var
for xa%qrn, xa%qcw, xa%qci, xa%qsn, and xa%qgr

This bugfix is connected to PR wrf-model#283 from  11 AUG 2017.

The array bounds error this avoids occurs when mp_physics ~= [0, 98] and cloud_cv_options==0.

With "debug" build of WRFDA and without fix, the end of rsl.error.0000:

forrtl: severe (408): fort: (2): Subscript wrf-model#1 of the array QCW has value 2 which is greater than the upper bound of 1

Image              PC                Routine            Line        Source
da_wrfvar.exe      00000000060CF996  Unknown               Unknown  Unknown
da_wrfvar.exe      00000000017EDB3B  da_transfer_model        2224  da_transfer_model.f
da_wrfvar.exe      00000000018A4263  da_transfer_model        3399  da_transfer_model.f
da_wrfvar.exe      00000000004C5D92  da_wrfvar_top_mp_        3675  da_wrfvar_top.f
da_wrfvar.exe      00000000004B0699  da_wrfvar_top_mp_        2779  da_wrfvar_top.f
da_wrfvar.exe      00000000004B0559  da_wrfvar_top_mp_        2749  da_wrfvar_top.f
da_wrfvar.exe      0000000000459863  MAIN__                     34  da_wrfvar_main.f
da_wrfvar.exe      0000000000405C1E  Unknown               Unknown  Unknown
libc-2.19.so       00002AAAAB7E5B25  __libc_start_main     Unknown  Unknown
da_wrfvar.exe      0000000000405B29  Unknown               Unknown  Unknown

 Changes to be committed:
	modified:   var/da/da_transfer_model/da_transfer_xatowrf.inc
jjguerrette pushed a commit that referenced this pull request Sep 13, 2018
TYPE: bug fix

KEYWORDS: moist, analysis update

SOURCE: Internal (JJG)

DESCRIPTION OF CHANGES: 
xatowrf now requires cloud_cv_options that match packaging defined in registry.var
for xa%qrn, xa%qcw, xa%qci, xa%qsn, and xa%qgr.

This bugfix is connected to PR #283 from  11 AUG 2017 (c7405bb#diff-fe8b020143d32583d82b945e2bd66f50)

The array bounds error this avoids occurs when mp_physics ~= [0, 98] and cloud_cv_options==0.

LIST OF MODIFIED FILES: 
M       var/da/da_transfer_model/da_transfer_xatowrf.inc

TESTS CONDUCTED: 
The following error at the end of rsl.error.0000 is avoided with this fix when "debug" build is used for WRFDA:

>``forrtl: severe (408): fort: (2): Subscript #1 of the array QCW has value 2 which is greater than the upper bound of 1``
>
>``Image              PC                Routine            Line        Source
da_wrfvar.exe      00000000060CF996  Unknown               Unknown  Unknown
da_wrfvar.exe      00000000017EDB3B  da_transfer_model        2224  da_transfer_model.f
da_wrfvar.exe      00000000018A4263  da_transfer_model        3399  da_transfer_model.f
da_wrfvar.exe      00000000004C5D92  da_wrfvar_top_mp_        3675  da_wrfvar_top.f
da_wrfvar.exe      00000000004B0699  da_wrfvar_top_mp_        2779  da_wrfvar_top.f
da_wrfvar.exe      00000000004B0559  da_wrfvar_top_mp_        2749  da_wrfvar_top.f
da_wrfvar.exe      0000000000459863  MAIN__                     34  da_wrfvar_main.f
da_wrfvar.exe      0000000000405C1E  Unknown               Unknown  Unknown
libc-2.19.so       00002AAAAB7E5B25  __libc_start_main     Unknown  Unknown
da_wrfvar.exe      0000000000405B29  Unknown               Unknown  Unknown``


The WRFDA Regression test was not run.  The changes are minor and fix the known bug.
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.

3 participants