MCIP install problem in netcdf issue

Hi all,
Thanks for reading.
I got some problems in compiling MCIP 4.1. It seems the wrf_netcdf_mod.f90 module can not accept the netcdf I installed in my library. The error message is showing as below:
make[1]: Entering directory /uufs/chpc.utah.edu/common/home/holmes-group1/copycky/model/CMAQ/CMAQv5.0.1/CMAQ-5.0.1/scripts/mcip4.1/src' ifort -O3 -xHost -ip -no-prec-div -static-intel -I/uufs/chpc.utah.edu/common/home/u6034993/Netcdf413/include -I/uufs/chpc.utah.edu/common/home/holmes-group1/copycky/model/CMAQ/CMAQv5.0.1/CMAQ-5.0.1//lib/x86_64/ifort/ioapi_3.1//Linux2_x86_64ifort -c const_mod.f90 ifort -O3 -xHost -ip -no-prec-div -static-intel -I/uufs/chpc.utah.edu/common/home/u6034993/Netcdf413/include -I/uufs/chpc.utah.edu/common/home/holmes-group1/copycky/model/CMAQ/CMAQv5.0.1/CMAQ-5.0.1//lib/x86_64/ifort/ioapi_3.1//Linux2_x86_64ifort -c const_pbl_mod.f90 ifort -O3 -xHost -ip -no-prec-div -static-intel -I/uufs/chpc.utah.edu/common/home/u6034993/Netcdf413/include -I/uufs/chpc.utah.edu/common/home/holmes-group1/copycky/model/CMAQ/CMAQv5.0.1/CMAQ-5.0.1//lib/x86_64/ifort/ioapi_3.1//Linux2_x86_64ifort -c coord_mod.f90 ifort -O3 -xHost -ip -no-prec-div -static-intel -I/uufs/chpc.utah.edu/common/home/u6034993/Netcdf413/include -I/uufs/chpc.utah.edu/common/home/holmes-group1/copycky/model/CMAQ/CMAQv5.0.1/CMAQ-5.0.1//lib/x86_64/ifort/ioapi_3.1//Linux2_x86_64ifort -c date_time_mod.f90 ifort -O3 -xHost -ip -no-prec-div -static-intel -I/uufs/chpc.utah.edu/common/home/u6034993/Netcdf413/include -I/uufs/chpc.utah.edu/common/home/holmes-group1/copycky/model/CMAQ/CMAQv5.0.1/CMAQ-5.0.1//lib/x86_64/ifort/ioapi_3.1//Linux2_x86_64ifort -c date_pack_mod.f90 ifort -O3 -xHost -ip -no-prec-div -static-intel -I/uufs/chpc.utah.edu/common/home/u6034993/Netcdf413/include -I/uufs/chpc.utah.edu/common/home/holmes-group1/copycky/model/CMAQ/CMAQv5.0.1/CMAQ-5.0.1//lib/x86_64/ifort/ioapi_3.1//Linux2_x86_64ifort -c files_mod.f90 ifort -O3 -xHost -ip -no-prec-div -static-intel -I/uufs/chpc.utah.edu/common/home/u6034993/Netcdf413/include -I/uufs/chpc.utah.edu/common/home/holmes-group1/copycky/model/CMAQ/CMAQv5.0.1/CMAQ-5.0.1//lib/x86_64/ifort/ioapi_3.1//Linux2_x86_64ifort -c groutcom_mod.f90 ifort -O3 -xHost -ip -no-prec-div -static-intel -I/uufs/chpc.utah.edu/common/home/u6034993/Netcdf413/include -I/uufs/chpc.utah.edu/common/home/holmes-group1/copycky/model/CMAQ/CMAQv5.0.1/CMAQ-5.0.1//lib/x86_64/ifort/ioapi_3.1//Linux2_x86_64ifort -c luvars_mod.f90 ifort -O3 -xHost -ip -no-prec-div -static-intel -I/uufs/chpc.utah.edu/common/home/u6034993/Netcdf413/include -I/uufs/chpc.utah.edu/common/home/holmes-group1/copycky/model/CMAQ/CMAQv5.0.1/CMAQ-5.0.1//lib/x86_64/ifort/ioapi_3.1//Linux2_x86_64ifort -c mcipparm_mod.f90 ifort -O3 -xHost -ip -no-prec-div -static-intel -I/uufs/chpc.utah.edu/common/home/u6034993/Netcdf413/include -I/uufs/chpc.utah.edu/common/home/holmes-group1/copycky/model/CMAQ/CMAQv5.0.1/CMAQ-5.0.1//lib/x86_64/ifort/ioapi_3.1//Linux2_x86_64ifort -c mcoutcom_mod.f90 ifort -O3 -xHost -ip -no-prec-div -static-intel -I/uufs/chpc.utah.edu/common/home/u6034993/Netcdf413/include -I/uufs/chpc.utah.edu/common/home/holmes-group1/copycky/model/CMAQ/CMAQv5.0.1/CMAQ-5.0.1//lib/x86_64/ifort/ioapi_3.1//Linux2_x86_64ifort -c mdoutcom_mod.f90 ifort -O3 -xHost -ip -no-prec-div -static-intel -I/uufs/chpc.utah.edu/common/home/u6034993/Netcdf413/include -I/uufs/chpc.utah.edu/common/home/holmes-group1/copycky/model/CMAQ/CMAQv5.0.1/CMAQ-5.0.1//lib/x86_64/ifort/ioapi_3.1//Linux2_x86_64ifort -c metinfo_mod.f90 ifort -O3 -xHost -ip -no-prec-div -static-intel -I/uufs/chpc.utah.edu/common/home/u6034993/Netcdf413/include -I/uufs/chpc.utah.edu/common/home/holmes-group1/copycky/model/CMAQ/CMAQv5.0.1/CMAQ-5.0.1//lib/x86_64/ifort/ioapi_3.1//Linux2_x86_64ifort -c metvars_mod.f90 ifort -O3 -xHost -ip -no-prec-div -static-intel -I/uufs/chpc.utah.edu/common/home/u6034993/Netcdf413/include -I/uufs/chpc.utah.edu/common/home/holmes-group1/copycky/model/CMAQ/CMAQv5.0.1/CMAQ-5.0.1//lib/x86_64/ifort/ioapi_3.1//Linux2_x86_64ifort -c vgrd_mod.f90 ifort -O3 -xHost -ip -no-prec-div -static-intel -I/uufs/chpc.utah.edu/common/home/u6034993/Netcdf413/include -I/uufs/chpc.utah.edu/common/home/holmes-group1/copycky/model/CMAQ/CMAQv5.0.1/CMAQ-5.0.1//lib/x86_64/ifort/ioapi_3.1//Linux2_x86_64ifort -c wrf_netcdf_mod.f90 wrf_netcdf_mod.f90(63): error #7013: This module file was not generated by any release of this compiler. [NETCDF] USE netcdf ------^ wrf_netcdf_mod.f90(123): error #7013: This module file was not generated by any release of this compiler. [NETCDF] USE netcdf ------^ wrf_netcdf_mod.f90(179): error #7013: This module file was not generated by any release of this compiler. [NETCDF] USE netcdf ------^ wrf_netcdf_mod.f90(81): error #6404: This name does not have a type, and must have an explicit type. [NF90_INQ_VARID] rcode = nf90_inq_varid (cdfid, var, id_data) ----------^ wrf_netcdf_mod.f90(82): error #6404: This name does not have a type, and must have an explicit type. [NF90_NOERR] IF ( rcode /= nf90_noerr ) RETURN ----------------^ wrf_netcdf_mod.f90(84): error #6632: Keyword arguments are invalid without an explicit interface. [START] rcode = nf90_get_var (cdfid, id_data, dum3d, start=(/1,1,1,it/), & -----------------------------------------------^ wrf_netcdf_mod.f90(85): error #6632: Keyword arguments are invalid without an explicit interface. [COUNT] count=(/nx,ny,nz,1/)) ------------------------^ wrf_netcdf_mod.f90(84): error #6404: This name does not have a type, and must have an explicit type. [NF90_GET_VAR] rcode = nf90_get_var (cdfid, id_data, dum3d, start=(/1,1,1,it/), & ----------^ wrf_netcdf_mod.f90(110): error #6404: This name does not have a type, and must have an explicit type. [NF90_INQ_VARID] rcode = nf90_inq_varid (cdfid, var, id_data) ----------^ wrf_netcdf_mod.f90(113): error #6632: Keyword arguments are invalid without an explicit interface. [START] rcode = nf90_get_var (cdfid, id_data, dum2d, start=(/1,1,it/), & -----------------------------------------------^ wrf_netcdf_mod.f90(114): error #6632: Keyword arguments are invalid without an explicit interface. [COUNT] count=(/nx,ny,1/)) ------------------------^ wrf_netcdf_mod.f90(113): error #6404: This name does not have a type, and must have an explicit type. [NF90_GET_VAR] rcode = nf90_get_var (cdfid, id_data, dum2d, start=(/1,1,it/), & ----------^ wrf_netcdf_mod.f90(139): error #6404: This name does not have a type, and must have an explicit type. [NF90_INQ_VARID] rcode = nf90_inq_varid (cdfid, var, id_data) ----------^ wrf_netcdf_mod.f90(142): error #6632: Keyword arguments are invalid without an explicit interface. [START] rcode = nf90_get_var (cdfid, id_data, idum2d, start=(/1,1,it/), & ------------------------------------------------^ wrf_netcdf_mod.f90(143): error #6632: Keyword arguments are invalid without an explicit interface. [COUNT] count=(/nx,ny,1/)) ------------------------^ wrf_netcdf_mod.f90(142): error #6404: This name does not have a type, and must have an explicit type. [NF90_GET_VAR] rcode = nf90_get_var (cdfid, id_data, idum2d, start=(/1,1,it/), & ----------^ wrf_netcdf_mod.f90(166): error #6404: This name does not have a type, and must have an explicit type. [NF90_INQ_VARID] rcode = nf90_inq_varid (cdfid, var, id_data) ----------^ wrf_netcdf_mod.f90(169): error #6632: Keyword arguments are invalid without an explicit interface. [START] rcode = nf90_get_var (cdfid, id_data, dum1d, start=(/1,it/), & -----------------------------------------------^ wrf_netcdf_mod.f90(170): error #6632: Keyword arguments are invalid without an explicit interface. [COUNT] count=(/nx,1/)) ------------------------^ wrf_netcdf_mod.f90(169): error #6404: This name does not have a type, and must have an explicit type. [NF90_GET_VAR] rcode = nf90_get_var (cdfid, id_data, dum1d, start=(/1,it/), & ----------^ wrf_netcdf_mod.f90(189): error #6404: This name does not have a type, and must have an explicit type. [NF90_INQ_VARID] rcode = nf90_inq_varid (cdfid, var, id_data) ----------^ wrf_netcdf_mod.f90(192): error #6404: This name does not have a type, and must have an explicit type. [NF90_GET_VAR] rcode = nf90_get_var (cdfid, id_data, scalar) ----------^ compilation aborted for wrf_netcdf_mod.f90 (code 1) make[1]: *** [wrf_netcdf_mod.o] Error 1 make[1]: Leaving directory /uufs/chpc.utah.edu/common/home/holmes-group1/copycky/model/CMAQ/CMAQv5.0.1/CMAQ-5.0.1/scripts/mcip4.1/src’
make: *** [all] Error 2

As the error shown, it seem the compiler I used in installing Netcdf not matching the module released in MCIP. I reinstall Nefcdf with intel compiler but again it shows a same error. My IOAPI and Netcdf are all installed with intel compiler and I have no idea how to solve this problem. Is there any one can help me with this issue?

Thanks for help.

Best,
Kai

I would expect netcdf.mod to be in some directory something/netcdf-fortran-4.4.4/fortran/ but I don’t see that in any of the include ( -I... ) directives in your compile.

Hi,
Thanks for your reply. Actually, netcdf.mod is located at the include directory as I had in “-I/uufs/chpc.utah.edu/common/home/u6034993/Netcdf413/include”. I try to as a flag like “-lnetcdff -lnetcdf” after this path but still got the same error. Do you know how to do with it?

Best,
K

CMAQv5.0.1 and MCIPv4.1 were released in 2012. Why are you using such an old version?

Your make flags are telling the Intel compiler to look for a file named netcdf.mod in one of these directories:
/uufs/chpc.utah.edu/common/home/u6034993/Netcdf413/include
/uufs/chpc.utah.edu/common/home/holmes-group1/copycky/model/CMAQ/CMAQv5.0.1/CMAQ-5.0.1//lib/x86_64/ifort/ioapi_3.1//Linux2_x86_64ifort

Is there a version of netcdf.mod in both directories? If there is, then perhaps the compiler is choosing the wrong one.

Thanks for your reply. The netcdf.mod is located at /uufs/chpc.utah.edu/common/home/u6034993/Netcdf413/include. So I think the path is correct. But I didn’t put it in the IOAPI Linux2_x86_64ifort directory, is it necessary to have a copy in this directory? And I compile both netcdf and ioapi with intel compiler so I am not sure why it told me a wrong compiler.

Hello,

Hello, I ran into the same error when i was making mcip (wrf_netcdf_mod.f90(63): error #7013: This module file was not generated by any release of this compiler. [NETCDF]), have you fixed it ?

Hi, I re-install all libraries and compile models using the gfortran instead of intel compiler eventually to solve this issue.

Thanks for your reply, It works well for me!