I installed NetCDF3 finally. However, there are still may errors:
![Sad :(](./images/smilies/icon_sad.gif)
Can anyone tell me what is the problem? Is it possible because of the version of my compiler? Should I update the compiler?
Thank you very much!
The errors are in the following:
cd Build; /opt/intel/fc/9.1.043/bin/ifort -c -heap-arrays -fp-model precise -ip -O3 -xW -free strings.f90
cd Build; /opt/intel/fc/9.1.043/bin/ifort -c -heap-arrays -fp-model precise -ip -O3 -xW -free mod_netcdf.f90
fortcom: Error: mod_netcdf.f90, line 19: This module file was generated for a different platform or by an incompatible compiler or compiler release. It cannot be read. [NETCDF]
USE netcdf
----------^
fortcom: Error: mod_netcdf.f90, line 105: This symbol must be a defined parameter or an argument of an inquiry function that evaluates to a compile-time constant. [NF90_REAL]
integer, parameter :: NF_FOUT = nf90_real
--------------------------------------^
fortcom: Error: mod_netcdf.f90, line 106: This symbol must be a defined parameter or an argument of an inquiry function that evaluates to a compile-time constant. [NF90_DOUBLE]
integer, parameter :: NF_FRST = nf90_double
--------------------------------------^
fortcom: Error: mod_netcdf.f90, line 107: This symbol must be a defined parameter or an argument of an inquiry function that evaluates to a compile-time constant. [NF90_DOUBLE]
integer, parameter :: NF_TYPE = nf90_double
--------------------------------------^
fortcom: Error: mod_netcdf.f90, line 111: This symbol must be a defined parameter or an argument of an inquiry function that evaluates to a compile-time constant. [NF90_CLOBBER]
integer :: CMODE = nf90_clobber ! NetCDF classic format file
-------------------------^
fortcom: Error: mod_netcdf.f90, line 111: This is not a valid initialization expression. [NF90_CLOBBER]
integer :: CMODE = nf90_clobber ! NetCDF classic format file
-------------------------^
fortcom: Error: mod_netcdf.f90, line 105: This name does not have a type, and must have an explicit type. [NF90_REAL]
integer, parameter :: NF_FOUT = nf90_real
--------------------------------------^
fortcom: Error: mod_netcdf.f90, line 106: This name does not have a type, and must have an explicit type. [NF90_DOUBLE]
integer, parameter :: NF_FRST = nf90_double
--------------------------------------^
fortcom: Error: mod_netcdf.f90, line 111: This name does not have a type, and must have an explicit type. [NF90_CLOBBER]
integer :: CMODE = nf90_clobber ! NetCDF classic format file
-------------------------^
fortcom: Error: mod_netcdf.f90, line 218: This name does not have a type, and must have an explicit type. [NF90_INQUIRE]
status=nf90_inquire(ncid, n_dim, n_var, n_gatt, rec_id)
---------------^
fortcom: Error: mod_netcdf.f90, line 220: This name does not have a type, and must have an explicit type. [NF90_NOERR]
IF ((status.eq.nf90_noerr).and.(n_dim.le.Mdims)) THEN
-----------------------^
fortcom: Error: mod_netcdf.f90, line 227: This name does not have a type, and must have an explicit type. [NF90_INQUIRE_DIMENSION]
status=nf90_inquire_dimension(ncid, dim_id(i), &
-------------------^
fortcom: Error: mod_netcdf.f90, line 712: This name does not have a type, and must have an explicit type. [NF90_INQUIRE]
status=nf90_inquire(my_ncid, n_dim, n_var, n_gatt, rec_id)
---------------^
fortcom: Error: mod_netcdf.f90, line 721: This name does not have a type, and must have an explicit type. [NF90_INQUIRE_VARIABLE]
status=nf90_inquire_variable(my_ncid, var_id(i), &
-------------------^
fortcom: Error: mod_netcdf.f90, line 727: This name does not have a type, and must have an explicit type. [NF90_INQ_ATTNAME]
status=nf90_inq_attname(my_ncid, var_id(i), j, &
-----------------------^
fortcom: Error: mod_netcdf.f90, line 815: This name does not have a type, and must have an explicit type. [NF90_INQUIRE_DIMENSION]
status=nf90_inquire_dimension(my_ncid, var_Dids(i), &
---------------------^
fortcom: Error: mod_netcdf.f90, line 831: Keyword arguments are invalid without an explicit interface. [XTYPE]
& xtype = my_Atype, &
------------------------------------------------^
fortcom: Error: mod_netcdf.f90, line 832: Keyword arguments are invalid without an explicit interface. [LEN]
& len = my_Alen)
------------------------------------------------^
fortcom: Error: mod_netcdf.f90, line 829: This name does not have a type, and must have an explicit type. [NF90_INQUIRE_ATTRIBUTE]
status=nf90_inquire_attribute(my_ncid, my_id, &
-------------------------^
fortcom: Error: mod_netcdf.f90, line 834: This name does not have a type, and must have an explicit type. [NF90_INT]
IF (my_Atype.eq.NF90_INT) THEN
------------------------------------^
fortcom: Error: mod_netcdf.f90, line 835: This name does not have a type, and must have an explicit type. [NF90_GET_ATT]
status=nf90_get_att(my_ncid, my_id, &
-----------------------------^
fortcom: Error: mod_netcdf.f90, line 848: This name does not have a type, and must have an explicit type. [NF90_FLOAT]
ELSE IF ((my_Atype.eq.NF90_FLOAT ).or. &
------------------------------------------^
fortcom: Error: mod_netcdf.f90, line 863: This name does not have a type, and must have an explicit type. [NF90_CHAR]
ELSE IF (my_Atype.eq.NF90_CHAR) THEN
-----------------------------------------^
fortcom: Error: mod_netcdf.f90, line 986: This name does not have a type, and must have an explicit type. [NF90_INQ_VARID]
status=nf90_inq_varid(ncid, TRIM(myVarName), VarID)
---------------^
fortcom: Error: mod_netcdf.f90, line 1070: Keyword arguments are invalid without an explicit interface. [NAME]
& name = my_Vname, &
-------------------------------------^
fortcom: Error: mod_netcdf.f90, line 1071: Keyword arguments are invalid without an explicit interface. [NATTS]
& nAtts = my_natts)
-------------------------------------^
fortcom: Error: mod_netcdf.f90, line 1069: This name does not have a type, and must have an explicit type. [NF90_INQUIRE_VARIABLE]
status=nf90_inquire_variable(my_ncid, varid, &
---------------^
fortcom: Severe: Too many errors, exiting
compilation aborted for mod_netcdf.f90 (code 1)
make: *** [Build/mod_netcdf.o] Error 1
Best,
Q