Skip to content

Variable transform temporary declared with bare dimension name instead of DDT access path #791

Description

@climbfuji

Description

Reported by @dustinswales elsewhere:

I think I found a bug related to variable transforms.

All assignments and operations pre- and post-scheme are correct, but the variable definitions are not.

real(kind=kind_phys), dimension(lb:ub, levs), target :: re_cloud_l
real(real_kind_phys_rank2_ptr_type) :: re_cloud_p

levs should be GFS_Control%levs

Steps to Reproduce

Here is the codebase: https://github.com/dustinswales/ufs-weather-model/tree/feature/phys2dyn

The error is not in that code and only appears when you change the output units from microns to meters in the metadata file (https://github.com/dustinswales/ccpp-physics/blob/feature/phys2dyn/physics/MP/TEMPO/mp_tempo.meta#L730).

I have a workaround to multiply these fields at the end of mp_tempo_run.

Additional Context

The UFS doesn't perform any variable transformations, so this never happened until now?

Output

Image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugFor issues describing bugs, or PRs fixing bugs

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions