Error in compiling ioapi with gfortran compiler

I have following errors when compiling IOAPI with Fortran compiler. Could you comment on it, please?

ioapi-3.2/ioapi/modncfio.F90:2323:58:

2323 | ISTAT = NF_GET_VARA_REAL( FID, VID, DIMS, DELS, GRID )
| 1

13424 | ISTAT = NF_GET_VARA_REAL( FID, VID, DIMS, DELS, GRID )
| 2
Error: Rank mismatch between actual argument at (1) and actual argument at (2) (rank-1 and scalar)
make: *** [Makefile:287: modncfio.o] Error 1

See https://cjcoats.github.io/ioapi/ERRORS.html#gfort10:
This version of gfortran takes a particularly idiosyncratic interpretation of the (latest) Fortran-2018 Standard…

Since gfortran versions 10 and later are not compatible with previous versions of gfortran, you need to be using one of the following Makeinclude files, the corresponding BIN build-types, and correspondingly modified Makefiles for building other programs like CMAQ:

  • Makeinclude.Linux2_x86_64gfort10
  • Makeinclude.Linux2_x86_64gfort10_medium
  • Makeinclude.Linux2_x86_64gfort10_mediumdbg
  • Makeinclude.Linux2_x86_64gfort10dbg
  • Makeinclude.Linux2_x86_64gfort10mpi