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

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.
levsshould beGFS_Control%levsSteps 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