# MCIP install problem in netcdf issue

**URL:** <https://forum.cmascenter.org/t/mcip-install-problem-in-netcdf-issue/2208>\
**Category:** MCIP\
**Created:** [March 31, 2021, 9:15pm UTC](https://forum.cmascenter.org/t/mcip-install-problem-in-netcdf-issue/2208 "2021-03-31T21:15:29Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![copycky28](https://avatars.discourse-cdn.com/v4/letter/c/3be4f8/32.png) [@copycky28](https://forum.cmascenter.org/u/copycky28)\
**Post date:** [March 31, 2021, 9:15pm UTC](https://forum.cmascenter.org/t/mcip-install-problem-in-netcdf-issue/2208/1 "2021-03-31T21:15:30Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![cjcoats](https://avatars.discourse-cdn.com/v4/letter/c/ac8455/32.png) [@cjcoats](https://forum.cmascenter.org/u/cjcoats)\
**Post date:** [March 31, 2021, 9:23pm UTC](https://forum.cmascenter.org/t/mcip-install-problem-in-netcdf-issue/2208/2 "2021-03-31T21:23:44Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![copycky28](https://avatars.discourse-cdn.com/v4/letter/c/3be4f8/32.png) [@copycky28](https://forum.cmascenter.org/u/copycky28)\
**Post date:** [March 31, 2021, 9:46pm UTC](https://forum.cmascenter.org/t/mcip-install-problem-in-netcdf-issue/2208/3 "2021-03-31T21:46:39Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![cgnolte](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.cmascenter.org/cgnolte/32/53_2.png) [@cgnolte](https://forum.cmascenter.org/u/cgnolte)\
**Post date:** [March 31, 2021, 10:08pm UTC](https://forum.cmascenter.org/t/mcip-install-problem-in-netcdf-issue/2208/4 "2021-03-31T22:08:15Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![copycky28](https://avatars.discourse-cdn.com/v4/letter/c/3be4f8/32.png) [@copycky28](https://forum.cmascenter.org/u/copycky28)\
**Post date:** [March 31, 2021, 10:14pm UTC](https://forum.cmascenter.org/t/mcip-install-problem-in-netcdf-issue/2208/5 "2021-03-31T22:14:23Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![qiaqia](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.cmascenter.org/qiaqia/32/2086_2.png) [@qiaqia](https://forum.cmascenter.org/u/qiaqia)\
**Post date:** [February 21, 2022, 6:01am UTC](https://forum.cmascenter.org/t/mcip-install-problem-in-netcdf-issue/2208/6 "2022-02-21T06:01:35Z")

</div>

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 ?

---

<div class="post-metadata">

**Author:** ![copycky28](https://avatars.discourse-cdn.com/v4/letter/c/3be4f8/32.png) [@copycky28](https://forum.cmascenter.org/u/copycky28)\
**Post date:** [February 23, 2022, 7:15pm UTC](https://forum.cmascenter.org/t/mcip-install-problem-in-netcdf-issue/2208/7 "2022-02-23T19:15:02Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![qiaqia](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.cmascenter.org/qiaqia/32/2086_2.png) [@qiaqia](https://forum.cmascenter.org/u/qiaqia)\
**Post date:** [March 3, 2022, 6:37am UTC](https://forum.cmascenter.org/t/mcip-install-problem-in-netcdf-issue/2208/8 "2022-03-03T06:37:11Z")

</div>

Thanks for your reply, It works well for me!
