Due to the current gap in continued funding from the U.S. National Science Foundation (NSF), the NSF Unidata Program Center has temporarily paused most operations. See NSF Unidata Pause in Most Operations for details.

[netcdfgroup] nf90_netcdf4, nf90_mpiio, etc. names cannot be found

Hi, I'm porting a library which uses netcdf calls
to an Intel environment. I get errors similar to:

cgca_m2netcdf.f90(157): error #6404: This name does not have a type, and must 
have an explicit type.   [NF90_NETCDF4]
call check( nf90_create(fname, ior(nf90_netcdf4,nf90_mpiio), ncid, &
-----------------------------------^
cgca_m2netcdf.f90(157): error #6404: This name does not have a type, and must 
have an explicit type.   [NF90_MPIIO]
call check( nf90_create(fname, ior(nf90_netcdf4,nf90_mpiio), ncid, &
------------------------------------------------^

cgca_m2netcdf.f90(176): error #6404: This name does not have a type, and must 
have an explicit type.   [NF90_DEF_VAR_FILL]
call check ( nf90_def_var_fill(ncid, varid, 1, 1) )
-------------^
cgca_m2netcdf.f90(184): error #6404: This name does not have a type, and must 
have an explicit type.   [NF90_COLLECTIVE]
call check( nf90_var_par_access(ncid, varid, nf90_collective) )
---------------------------------------------^

$ mpiifort --version
ifort (IFORT) 16.0.2 20160204

$ nc-config --all 

This netCDF 4.3.0 has been built with the following features: 

  --cc        -> mpiicc
  --cflags    ->  
-I/cm/shared/libraries/intel_build/netcdf-4-intel-16.par/include 
-I/cm/shared/libraries/intel_build/hdf5-1.8.12-intel-16.par/include
  --libs      -> -L/cm/shared/libraries/intel_build/netcdf-4-intel-16.par/lib 
-L/cm/shared/libraries/intel_build/hdf5-1.8.12-intel-16.par/lib -lnetcdf 
-lhdf5_hl -lhdf5 -lm -lcurl 

  --has-c++   -> no
  --cxx       -> 
  --has-c++4  -> no
  --cxx4      -> 

  --fc        -> mpiifort
  --fflags    -> -O3 -xHost -ip -no-prec-div -static-intel 
-I/cm/shared/libraries/intel_build/netcdf-4-intel-16.par/include
  --flibs     -> -L/cm/shared/libraries/intel_build/netcdf-4-intel-16.par/lib 
-lnetcdff -L/cm/shared/libraries/intel_build/hdf5-1.8.12-intel-16.par/lib 
-L/cm/shared/libraries/intel_build/netcdf-4-intel-16.par/lib -lnetcdf
  --has-f90   -> yes

  --has-dap   -> yes
  --has-nc2   -> yes
  --has-nc4   -> yes
  --has-hdf5  -> yes
  --has-hdf4  -> no
  --has-pnetcdf-> no

  --prefix    -> /cm/shared/libraries/intel_build/netcdf-4-intel-16.par
  --includedir-> /cm/shared/libraries/intel_build/netcdf-4-intel-16.par/include
  --version   -> netCDF 4.3.0

When use linux strings(1) on
/cm/shared/libraries/intel_build/netcdf-4-intel-16.par/include/netcdf.mod

there are lots of entites starting with NF90:

$ strings 
/cm/shared/libraries/intel_build/netcdf-4-intel-16.par/include/netcdf.mod | 
grep -i nf90 | wc -l
1465

but I cannot find the above names:

$ strings 
/cm/shared/libraries/intel_build/netcdf-4-intel-16.par/include/netcdf.mod | 
grep -i nf90_net
$ strings 
/cm/shared/libraries/intel_build/netcdf-4-intel-16.par/include/netcdf.mod | 
grep -i nf90_mpi
$ strings 
/cm/shared/libraries/intel_build/netcdf-4-intel-16.par/include/netcdf.mod | 
grep -i nf90_def_var_fill
$ strings 
/cm/shared/libraries/intel_build/netcdf-4-intel-16.par/include/netcdf.mod | 
grep -i nf90_coll

What's wrong with my netcdf installation?

Thanks

Anton



  • 2017 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the netcdfgroup archives: