NOAA-GFDL/GFDL_atmos_cubed_sphere

two arrays are not initialized in fv_ufs_restart_io.F90

Closed this issue · 0 comments

Describe the bug
Found by @DusanJovic-NOAA and detailed in ufs-community/ufs-weather-model#1882 (comment)

The srf_wnd_var2 and tracers_var3 arrays are not initialized after allocation in fv_ufs_restart_io.F90. This can cause the ufs-weather-model write component's quilting restart to fail. When ESMF copies data from compute ranks to write ranks, it'll encounter NaN values if the uninitialized array happen to contain any.

To Reproduce
Read the code?

Expected behavior
Arrays should be initialized.

System Environment
Describe the system environment, include: N/A
Error is apparent in the code.

Additional context
Full details are here:

ufs-community/ufs-weather-model#1882 (comment)