I got an error while compiling MPAS 6.1 using PGI 18.4 and netcdf 4.6.1. Here is the error.
mpif90 -D_MPI -DUNDERSCORE -DCORE_ATMOSPHERE -DMPAS_NAMELIST_SUFFIX=atmosphere -DMPAS_EXE_NAME=atmosphere_model -DMPAS_NATIVE_TIMERS -DMPAS_GIT_VERSION=unknown -O3 -byteswapio -Mfree -r8 -c mpas_io.F -I/home/vy57456/application/pgi/18.4/ParallelIO-pio1_7_1/include -I/home/vy57456/application/pgi/18.4/parallel-netcdf-1.8.1/include -I/home/vy57456/application/pgi/18.4/netcdf-4.6.1/include -I/home/vy57456/application/pgi/18.4/ParallelIO-pio1_7_1/include -I/home/vy57456/application/pgi/18.4/parallel-netcdf-1.8.1/include -I/home/vy57456/application/pgi/18.4/netcdf-4.6.1/include -I../external/esmf_time_f90
PGF90-S-0087-Non-constant expression where constant expression required (mpas_io.F: 30)
PGF90-S-0155-Intrinsic not supported in initialization: achar (mpas_io.F: 31)
PGF90-S-0087-Non-constant expression where constant expression required (mpas_io.F: 44)
  0 inform,   0 warnings,   3 severes, 0 fatal for mpas_io
PGF90-S-0038-Symbol, nf_fill_char, has not been explicitly declared (mpas_io.F)
I know it's related to netcdf. In order to make sure netcdf work, I add 
But it still did not work. Any ideas on it? Please see attached file for detail