You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is a bug in dimension definition for the 2D auxiliary array.
This can only be identified if a user only wants to output 2D auxilarly arrays, and will face CCPP prebuild errors that clearly show the inconsistency.
raise Exception('Dimension {}, required by variable {}, not defined in host model metadata'.format(
Exception: Dimension number_of_3d_auxiliary_arrays, required by variable auxiliary_2d_arrays, not defined in host model metadata
This bug exists in the CCPP auxiliary ReadTheDocs in the section describing needed meta file changes for ccpp related codes:
To fix the bug, a change is needed to the following file:
ccpp/data/GFS_typedefs.meta
Proposed Change (in bold below)
[aux2d]
standard_name = auxiliary_2d_arrays
long_name = auxiliary 2d arrays to output (for debugging)
units = none
dimensions = (horizontal_loop_extent,number_of_xy_dimensioned_auxiliary_arrays)
type = real
kind = kind_phys
active = (number_of_xy_dimensioned_auxiliary_arrays > 0)
Output
raise Exception('Dimension {}, required by variable {}, not defined in host model metadata'.format(
Exception: Dimension number_of_3d_auxiliary_arrays, required by variable auxiliary_2d_arrays, not defined in host model metadata
Testing:
Have you tested the code changes? On what platforms?
RDHPCs Hera
Have you run regression test in ufs-weather-model or ufs-s2s-model with code changes?
No, not needed.
Description
There is a bug in dimension definition for the 2D auxiliary array.
This can only be identified if a user only wants to output 2D auxilarly arrays, and will face CCPP prebuild errors that clearly show the inconsistency.
This bug exists in the CCPP auxiliary ReadTheDocs in the section describing needed meta file changes for ccpp related codes:
https://ccpp-techdoc.readthedocs.io/en/latest/ParamSpecificOutput.html#output-of-auxiliary-arrays-from-ccpp
To fix the bug, a change is needed to the following file:
Proposed Change (in bold below)
[aux2d]
standard_name = auxiliary_2d_arrays
long_name = auxiliary 2d arrays to output (for debugging)
units = none
dimensions = (horizontal_loop_extent,number_of_xy_dimensioned_auxiliary_arrays)
type = real
kind = kind_phys
active = (number_of_xy_dimensioned_auxiliary_arrays > 0)
Output
Testing:
Have you tested the code changes? On what platforms?
RDHPCs Hera
Have you run regression test in ufs-weather-model or ufs-s2s-model with code changes?
No, not needed.
Dependent PRs:
#833
The text was updated successfully, but these errors were encountered: