reals used as indices in atmos_cubed_sphere/tools/fv_iau_mod.F90
Closed this issue · 2 comments
DeniseWorthen commented
Describe the bug
Compiling ufs-weather model with gnu/9.2.0 on platform Hera produces warnings about reals being used as indices.
To Reproduce
Clone ufs-weather-model, then from top-level directory:
module use modulefiles
module load ufs_hera.gnu
export CMAKE_FLAGS="-DAPP=ATM"
export CCPP_SUITES="FV3_GFS_v16"
./build.sh >output 2>&1 &
Expected behavior
build log will show
/scratch2/NCEPDEV/climate/Denise.Worthen/WORK/ufs-weather-model-gnu/FV3/atmos_cubed_sphere/tools/fv_eta.F90:838:12:
838 | s_fac(km-k_inc-1) = 0.5*(s_fac(km-k_inc) + s_rate)
| 1
Warning: Legacy Extension: REAL array index at (1)
/scratch2/NCEPDEV/climate/Denise.Worthen/WORK/ufs-weather-model-gnu/FV3/atmos_cubed_sphere/tools/fv_eta.F90:838:37:
838 | s_fac(km-k_inc-1) = 0.5*(s_fac(km-k_inc) + s_rate)
| 1
Warning: Legacy Extension: REAL array index at (1)
...
/scratch2/NCEPDEV/climate/Denise.Worthen/WORK/ufs-weather-model-gnu/FV3/atmos_cubed_sphere/tools/fv_iau_mod.F90:364:46:
364 | iau_state%hr2=IPD_Control%iaufhrs(t2)
| 1
Warning: Legacy Extension: REAL array index at (1)
/scratch2/NCEPDEV/climate/Denise.Worthen/WORK/ufs-weather-model-gnu/FV3/atmos_cubed_sphere/tools/fv_iau_mod.F90:366:98:
366 | if (is_master()) print *,'reading next increment file',trim(IPD_Control%iau_inc_files(t2))
| 1
Warning: Legacy Extension: REAL array index at (1)
/scratch2/NCEPDEV/climate/Denise.Worthen/WORK/ufs-weather-model-gnu/FV3/atmos_cubed_sphere/tools/fv_iau_mod.F90:367:102:
367 | call read_iau_forcing(IPD_Control,iau_state%inc2,'INPUT/'//trim(IPD_Control%iau_inc_files(t2)))
| 1
Warning: Legacy Extension: REAL array index at (1)
System Environment
ufs-weather-model on hera uses the following module list:
Currently Loaded Modules:
1) miniconda3/3.7.3 7) mpich/3.3.2 13) netcdf/4.7.4 19) ip/3.3.3 25) w3emc/2.7.3 31) ufs_common
2) sutils/default 8) hpc-mpich/3.3.2 14) pio/2.5.2 20) sp/2.3.3 26) crtm/2.3.0 32) ufs_hera.gnu
3) cmake/3.20.1 9) jasper/2.0.22 15) esmf/8_1_1 21) sigio/2.3.2 27) upp/10.0.8
4) hpc/1.1.0 10) zlib/1.2.11 16) fms/2020.04.03 22) bacio/2.4.1 28) gftl-shared/v1.3.0
5) gnu/9.2.0 11) png/1.6.35 17) g2/3.4.3 23) w3nco/2.4.1 29) yafyaml/v0.5.1
6) hpc-gnu/9.2.0 12) hdf5/1.10.6 18) g2tmpl/1.10.0 24) nemsio/2.5.2 30) mapl/v2.7.3
Additional context
Add any other context about the problem. If applicable, include where any files
that help describe, or reproduce the problem exist.
bensonr commented
@DeniseWorthen - thanks for alerting us to the inconsistencies. We'll get them fixed and push them to the repo soon.
laurenchilutti commented
This Issue will be resolved with PR #160