[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[netCDF #ULN-920732]: issues with netCDF library
- Subject: [netCDF #ULN-920732]: issues with netCDF library
- Date: Tue, 27 Sep 2011 21:59:19 -0600
Hi Avirup,
> I need to read and write netCDF files in Fortran. So I am planning to use
> netCDF Fortran 90 library interface. To do that I downloaded netcdf-4.1.3
> and build the solution for f90 in visual Fortran (My machine has windows
> operating system). It was built without showing any errors (there were many
> warning though). I got netcdf.lib, netcdf.mod, netcdf.obj, netcdf4.obj,
> typesizes.mod and typesizes.obj. After I built the library, I tried to test
> it using Unidata given example call simple_xy_par_wr.f90 in a separate
> project. I referenced netcdf.lib in my project. But when I run it, it is
> giving me 21 errors. The errors are:
>
>
>
> C:\Users\avirup\Desktop\UEBProject\Libraries\netcdf-4.1.3\examples\F90\simple_xy_par_wr.f90(23):
> error #5102: Cannot open include file 'mpif.h'
This error and the following errors are the result of the compiler not finding
the include file mpif.h, which
is part of the MPI installation for parallel I/O. Did you build the netCDF
library with the --enable-parallel
option? Are you intending to use the parallel I/O capabilities of netCDF with
an installed parallel file system?
If not, you should choose a different example for testing. The
simple_xy_par_wr.f90 example is intended
for testing the parallel I/O capabilities in the netCDF library, which uses the
parallel I/O capabilities in the
underlying HDF5 library, assuming it was built with the parallel I/O option.
--Russ
> C:\Users\avirup\Desktop\UEBProject\Libraries\netcdf-4.1.3\examples\F90\simple_xy_par_wr.f90(21):
> error #7002: Error in opening the compiled module file. Check INCLUDE
> paths. [NETCDF]
>
> C:\Users\avirup\Desktop\UEBProject\Libraries\netcdf-4.1.3\examples\F90\simple_xy_par_wr.f90(53):
> error #6404: This name does not have a type, and must have an explicit type.
> [MPI_COMM_WORLD]
>
> C:\Users\avirup\Desktop\UEBProject\Libraries\netcdf-4.1.3\examples\F90\simple_xy_par_wr.f90(67):
> error #6404: This name does not have a type, and must have an explicit type.
> [NF90_NETCDF4]
>
> C:\Users\avirup\Desktop\UEBProject\Libraries\netcdf-4.1.3\examples\F90\simple_xy_par_wr.f90(67):
> error #6404: This name does not have a type, and must have an explicit type.
> [NF90_MPIIO]
>
> C:\Users\avirup\Desktop\UEBProject\Libraries\netcdf-4.1.3\examples\F90\simple_xy_par_wr.f90(67):
> warning #7319: This argument's data type is incompatible with this intrinsic
> procedure; procedure assumed EXTERNAL. [IOR]
>
> C:\Users\avirup\Desktop\UEBProject\Libraries\netcdf-4.1.3\examples\F90\simple_xy_par_wr.f90(67):
> error #6404: This name does not have a type, and must have an explicit type.
> [IOR]
>
> C:\Users\avirup\Desktop\UEBProject\Libraries\netcdf-4.1.3\examples\F90\simple_xy_par_wr.f90(68):
> error #6632: Keyword arguments are invalid without an explicit interface.
> [COMM]
>
> C:\Users\avirup\Desktop\UEBProject\Libraries\netcdf-4.1.3\examples\F90\simple_xy_par_wr.f90(68):
> error #6632: Keyword arguments are invalid without an explicit interface.
> [INFO]
>
> C:\Users\avirup\Desktop\UEBProject\Libraries\netcdf-4.1.3\examples\F90\simple_xy_par_wr.f90(68):
> error #6404: This name does not have a type, and must have an explicit type.
> [MPI_INFO_NULL]
>
> C:\Users\avirup\Desktop\UEBProject\Libraries\netcdf-4.1.3\examples\F90\simple_xy_par_wr.f90(67):
> error #6404: This name does not have a type, and must have an explicit type.
> [NF90_CREATE]
>
> C:\Users\avirup\Desktop\UEBProject\Libraries\netcdf-4.1.3\examples\F90\simple_xy_par_wr.f90(72):
> error #6404: This name does not have a type, and must have an explicit type.
> [NF90_DEF_DIM]
>
> C:\Users\avirup\Desktop\UEBProject\Libraries\netcdf-4.1.3\examples\F90\simple_xy_par_wr.f90(82):
> error #6404: This name does not have a type, and must have an explicit type.
> [NF90_INT]
>
> C:\Users\avirup\Desktop\UEBProject\Libraries\netcdf-4.1.3\examples\F90\simple_xy_par_wr.f90(82):
> error #6404: This name does not have a type, and must have an explicit type.
> [NF90_DEF_VAR]
>
> C:\Users\avirup\Desktop\UEBProject\Libraries\netcdf-4.1.3\examples\F90\simple_xy_par_wr.f90(87):
> error #6404: This name does not have a type, and must have an explicit type.
> [NF90_ENDDEF]
>
> C:\Users\avirup\Desktop\UEBProject\Libraries\netcdf-4.1.3\examples\F90\simple_xy_par_wr.f90(92):
> error #6632: Keyword arguments are invalid without an explicit interface.
> [START]
>
> C:\Users\avirup\Desktop\UEBProject\Libraries\netcdf-4.1.3\examples\F90\simple_xy_par_wr.f90(93):
> error #6632: Keyword arguments are invalid without an explicit interface.
> [COUNT]
>
> C:\Users\avirup\Desktop\UEBProject\Libraries\netcdf-4.1.3\examples\F90\simple_xy_par_wr.f90(92):
> error #6404: This name does not have a type, and must have an explicit type.
> [NF90_PUT_VAR]
>
> C:\Users\avirup\Desktop\UEBProject\Libraries\netcdf-4.1.3\examples\F90\simple_xy_par_wr.f90(97):
> error #6404: This name does not have a type, and must have an explicit type.
> [NF90_CLOSE]
>
> C:\Users\avirup\Desktop\UEBProject\Libraries\netcdf-4.1.3\examples\F90\simple_xy_par_wr.f90(111):
> error #6404: This name does not have a type, and must have an explicit type.
> [NF90_NOERR]
>
> C:\Users\avirup\Desktop\UEBProject\Libraries\netcdf-4.1.3\examples\F90\simple_xy_par_wr.f90(112):
> error #6404: This name does not have a type, and must have an explicit type.
> [NF90_STRERROR]
>
> C:\Users\avirup\Desktop\UEBProject\Libraries\netcdf-4.1.3\examples\F90\simple_xy_par_wr.f90(112):
> error #6362: The data types of the argument(s) are invalid. [TRIM]
>
> compilation aborted for
> C:\Users\avirup\Desktop\UEBProject\Libraries\netcdf-4.1.3\examples\F90\simple_xy_par_wr.f90
> (code 1)
>
>
>
>
>
> Could you please tell me what wrong with this is. What should I do to
> eliminate those?
>
> I look forward t hearing from you.
>
> Thanks,
>
> Avirup
>
>
Russ Rew UCAR Unidata Program
address@hidden http://www.unidata.ucar.edu
Ticket Details
===================
Ticket ID: ULN-920732
Department: Support netCDF
Priority: Normal
Status: Closed