Scheduled Downtime
On Friday 21 April 2023 @ 5pm MT, this website will be down for maintenance and expected to return online the morning of 24 April 2023 at the latest

when build WPS with intel : scan_input.f90(14): error #7013: This module file was not generated by any release of this compiler. [NETCDF]

xiaxx+666

New member
Like title,when I build WPS-4.3 with intel, I got geogrid.exe and ungrib.exe successlly but no metgrid.exe. WRF-4.3 have been built. The following is the error in the compile.log:


/lib/cpp -P -traditional -D_UNDERSCORE -DBYTESWAP -DLINUX -DIO_NETCDF -DIO_BINARY -DIO_GRIB1 -DBIT32 -D_MPI -D_METGRID -DUSE_JPEG2000 -DUSE_PNG -I/data/user/test/model/WRF-4.3/external/io_netcdf -I/data/user/test/model/WRF-4.3/external/io_grib_share -I/data/user/test/model/WRF-4.3/external/io_grib1 -I/data/user/test/model/WRF-4.3/external/io_int -I/data/user/test/model/WRF-4.3/inc -I/opt/software/new-env/netcdf-fortran-4.4.4/include scan_input.F > scan_input.f90
mpiifort -FR -convert big_endian -c scan_input.f90 -I/data/user/test/model/WRF-4.3/external/io_netcdf -I/data/user/test/model/WRF-4.3/external/io_grib_share -I/data/user/test/model/WRF-4.3/external/io_grib1 -I/data/user/test/model/WRF-4.3/external/io_int -I/data/user/test/model/WRF-4.3/inc -I/opt/software/new-env/netcdf-fortran-4.4.4/include
scan_input.f90(14): error #7013: This module file was not generated by any release of this compiler. [NETCDF]
use netcdf
--------^
scan_input.f90(74): error #6404: This name does not have a type, and must have an explicit type. [NF90_NOWRITE]
stat = nf90_open(trim(filename), NF90_NOWRITE, handle % ncid)
-----------------------------------------^
scan_input.f90(74): error #6404: This name does not have a type, and must have an explicit type. [NF90_OPEN]
stat = nf90_open(trim(filename), NF90_NOWRITE, handle % ncid)
---------------^
scan_input.f90(75): error #6404: This name does not have a type, and must have an explicit type. [NF90_NOERR]
if (stat /= NF90_NOERR) then
--------------------^
scan_input.f90(80): error #6632: Keyword arguments are invalid without an explicit interface. [NVARIABLES]
stat = nf90_inquire(handle % ncid, nVariables=handle % num_vars)
-------------------------------------------^
scan_input.f90(80): error #6404: This name does not have a type, and must have an explicit type. [NF90_INQUIRE]
stat = nf90_inquire(handle % ncid, nVariables=handle % num_vars)
---------------^
scan_input.f90(97): error #6632: Keyword arguments are invalid without an explicit interface. [UNLIMITEDDIMID]
stat = nf90_inquire(handle % ncid, unlimitedDimId=handle % unlimited_dimid)
-------------------------------------------^
scan_input.f90(104): error #6632: Keyword arguments are invalid without an explicit interface. [LEN]
stat = nf90_inquire_dimension(handle % ncid, handle % unlimited_dimid, len=nRecords)
-----------------------------------------------------------------------------------^
scan_input.f90(104): error #6404: This name does not have a type, and must have an explicit type. [NF90_INQUIRE_DIMENSION]
stat = nf90_inquire_dimension(handle % ncid, handle % unlimited_dimid, len=nRecords)
-------------------^
scan_input.f90(132): error #6404: This name does not have a type, and must have an explicit type. [NF90_CLOSE]
stat = nf90_close(handle % ncid)
---------------^
scan_input.f90(178): error #6632: Keyword arguments are invalid without an explicit interface. [NAME]
name=field % name, &
-------------------------------------^
scan_input.f90(179): error #6632: Keyword arguments are invalid without an explicit interface. [XTYPE]
xtype=field % xtype, &
-------------------------------------^
scan_input.f90(180): error #6632: Keyword arguments are invalid without an explicit interface. [NDIMS]
ndims=field % ndims)
-------------------------------------^
scan_input.f90(177): error #6404: This name does not have a type, and must have an explicit type. [NF90_INQUIRE_VARIABLE]
stat = nf90_inquire_variable(handle % ncid, field % varid, &
---------------^
scan_input.f90(186): error #6404: This name does not have a type, and must have an explicit type. [NF90_FLOAT]
if (field % xtype == NF90_FLOAT) then
-----------------------------^
scan_input.f90(188): error #6404: This name does not have a type, and must have an explicit type. [NF90_DOUBLE]
else if (field % xtype == NF90_DOUBLE) then
----------------------------------^
scan_input.f90(190): error #6404: This name does not have a type, and must have an explicit type. [NF90_INT]
else if (field % xtype == NF90_INT) then
----------------------------------^
scan_input.f90(192): error #6404: This name does not have a type, and must have an explicit type. [NF90_CHAR]
else if (field % xtype == NF90_CHAR) then
----------------------------------^
scan_input.f90(201): error #6632: Keyword arguments are invalid without an explicit interface. [DIMIDS]
dimids=field % dimids)
-------------------------------------^
scan_input.f90(213): error #6632: Keyword arguments are invalid without an explicit interface. [NAME]
name=field % dimnames(idim), &
------------------------------------------^
scan_input.f90(214): error #6632: Keyword arguments are invalid without an explicit interface. [LEN]
len=field % dimlens(idim))
------------------------------------------^
scan_input.f90(212): error #6404: This name does not have a type, and must have an explicit type. [NF90_INQUIRE_DIMENSION]
stat = nf90_inquire_dimension(handle % ncid, field % dimids(idim), &
-------------------^
scan_input.f90(239): error #6404: This name does not have a type, and must have an explicit type. [NF90_INQ_VARID]
stat = nf90_inq_varid(handle % ncid, trim(fieldname), field % varid)
---------------^
scan_input.f90(246): error #6632: Keyword arguments are invalid without an explicit interface. [NAME]
name=field % name, &
-------------------------------------^
scan_input.f90(247): error #6632: Keyword arguments are invalid without an explicit interface. [XTYPE]
xtype=field % xtype, &
-------------------------------------^
scan_input.f90(248): error #6632: Keyword arguments are invalid without an explicit interface. [NDIMS]
ndims=field % ndims)
-------------------------------------^
scan_input.f90(245): error #6404: This name does not have a type, and must have an explicit type. [NF90_INQUIRE_VARIABLE]
stat = nf90_inquire_variable(handle % ncid, field % varid, &
---------------^
scan_input.f90(269): error #6632: Keyword arguments are invalid without an explicit interface. [DIMIDS]
dimids=field % dimids)
-------------------------------------^
scan_input.f90(281): error #6632: Keyword arguments are invalid without an explicit interface. [NAME]
name=field % dimnames(idim), &
------------------------------------------^
scan_input.f90(282): error #6632: Keyword arguments are invalid without an explicit interface. [LEN]
len=field % dimlens(idim))
------------------------------------------^
scan_input.f90(608): catastrophic error: Too many errors, exiting
compilation aborted for scan_input.f90 (code 1)
make[1]: [scan_input.o] 错误 1 (忽略)
/bin/rm -f mpas_mesh.o mpas_mesh.mod
.....................(and so many errors like that )

And this is my configure.wps:
1657437473517.png

And my environment file:

1657437978325.png

Looking forward to your reply.
xiaxx
 

Attachments

  • configure.wps.txt
    3.8 KB · Views: 9
Thank you for your attention. I solved this problem by compiling a higher version of NetCDF library as a dependency. I hope this is useful to other people who encounter this problem.
 
Top