[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[netCDF #BNK-554715]: nf90_open_par question



Hello,

You will need to first install the netCDF-C library with netCDF-4 support; at 
which point, you will need to recompile the netCDF-Fortran library and link it 
against this new C library with nc4 support.  You can find instructions for 
building netCDF-C with netCDF-4 support at the following location: 

* 
https://www.unidata.ucar.edu/software/netcdf/docs/getting_and_building_netcdf.html

I hope this helps!

-Ward

> Hi, I compile the HRLDAS model with dependency netcdf, and it shows me the 
> error
> 
> cpp -P -traditional -DMPP_LAND -D_PARALLEL_  -D_HRLDAS_OFFLINE_  
> -I/stor9000/apps/users/NWSUAF/2014011989/soft/netcdf-c-intel/include 
> -I/stor9000/apps/users/NWSUAF/2014011989/soft/netcdf-f-intel/include 
> module_hrldas_netcdf_io.F > module_hrldas_netcdf_io.f90
> mpif90  -f90=ifort  -o module_hrldas_netcdf_io.o -c -convert big_endian -g 
> -O0  -free -I ../MPP -I../Utility_routines 
> -I/stor9000/apps/users/NWSUAF/2014011989/soft/netcdf-c-intel/include 
> -I/stor9000/apps/users/NWSUAF/2014011989/soft/netcdf-f-intel/include  
> module_hrldas_netcdf_io.f90
> module_hrldas_netcdf_io.f90(414): error #6404: This name does not have a 
> type, and must have an explicit type.   [NF90_OPEN_PAR]
> ierr = nf90_open_par(wrfinput_flnm, NF90_NOWRITE, MPI_COMM_WORLD, 
> MPI_INFO_NULL, ncid)
> -----------^
> module_hrldas_netcdf_io.f90(504): error #6404: This name does not have a 
> type, and must have an explicit type.   [NF90_OPEN_PAR]
> ierr = nf90_open_par(wrfinput_flnm, NF90_NOWRITE, MPI_COMM_WORLD, 
> MPI_INFO_NULL, ncid)
> -----------^
> module_hrldas_netcdf_io.f90(557): error #6404: This name does not have a 
> type, and must have an explicit type.   [NF90_OPEN_PAR]
> ierr = nf90_open_par(wrfinput_flnm, NF90_NOWRITE, MPI_COMM_WORLD, 
> MPI_INFO_NULL, ncid)
> -----------^
> module_hrldas_netcdf_io.f90(1188): error #6404: This name does not have a 
> type, and must have an explicit type.   [NF90_OPEN_PAR]
> ierr = nf90_open_par(netcdf_flnm, NF90_NOWRITE, MPI_COMM_WORLD, 
> MPI_INFO_NULL, ncid)
> -----------^
> module_hrldas_netcdf_io.f90(1435): error #6404: This name does not have a 
> type, and must have an explicit type.   [NF90_OPEN_PAR]
> iret = nf90_open_par(flnm, NF90_NOWRITE, MPI_COMM_WORLD, MPI_INFO_NULL, ncid)
> -----------^
> module_hrldas_netcdf_io.f90(1580): error #6404: This name does not have a 
> type, and must have an explicit type.   [NF90_OPEN_PAR]
> ierr = nf90_open_par(flnm, NF90_NOWRITE, MPI_COMM_WORLD, MPI_INFO_NULL, ncid)
> --------------^
> module_hrldas_netcdf_io.f90(1900): error #6404: This name does not have a 
> type, and must have an explicit type.   [NF90_OPEN_PAR]
> ierr = nf90_open_par(flnm, NF90_NOWRITE, MPI_COMM_WORLD, MPI_INFO_NULL, ncid)
> -----------^
> module_hrldas_netcdf_io.f90(3181): error #6627: This is an actual argument 
> keyword name, and not a dummy argument name.   [COMM]
> OR(NF90_CLOBBER, NF90_NETCDF4), ncid, comm=MPI_COMM_WORLD, info=MPI_INFO_NULL)
> --------------------------------------------------^
> module_hrldas_netcdf_io.f90(3181): error #6627: This is an actual argument 
> keyword name, and not a dummy argument name.   [INFO]
> OR(NF90_CLOBBER, NF90_NETCDF4), ncid, comm=MPI_COMM_WORLD, info=MPI_INFO_NULL)
> -----------------------------------------------------------------------^
> module_hrldas_netcdf_io.f90(4833): error #6627: This is an actual argument 
> keyword name, and not a dummy argument name.   [COMM]
> OR(NF90_CLOBBER, NF90_NETCDF4), ncid, comm=MPI_COMM_WORLD, info=MPI_INFO_NULL)
> -----------------------------------------------^
> module_hrldas_netcdf_io.f90(4833): error #6627: This is an actual argument 
> keyword name, and not a dummy argument name.   [INFO]
> OR(NF90_CLOBBER, NF90_NETCDF4), ncid, comm=MPI_COMM_WORLD, info=MPI_INFO_NULL)
> --------------------------------------------------------------------^
> module_hrldas_netcdf_io.f90(4990): error #6404: This name does not have a 
> type, and must have an explicit type.   [NF90_OPEN_PAR]
> ierr = nf90_open_par(trim(output_flnm), NF90_WRITE, MPI_COMM_WORLD, 
> MPI_INFO_NULL, ncid)
> -----------^
> module_hrldas_netcdf_io.f90(5060): error #6404: This name does not have a 
> type, and must have an explicit type.   [NF90_OPEN_PAR]
> ierr = nf90_open_par(trim(output_flnm), NF90_WRITE, MPI_COMM_WORLD, 
> MPI_INFO_NULL, ncid)
> -----------^
> module_hrldas_netcdf_io.f90(5141): error #6404: This name does not have a 
> type, and must have an explicit type.   [NF90_OPEN_PAR]
> ierr = nf90_open_par(trim(output_flnm), NF90_WRITE, MPI_COMM_WORLD, 
> MPI_INFO_NULL, ncid)
> -----------^
> module_hrldas_netcdf_io.f90(5224): error #6404: This name does not have a 
> type, and must have an explicit type.   [NF90_OPEN_PAR]
> ierr = nf90_open_par(trim(restart_flnm), NF90_NOWRITE, MPI_COMM_WORLD, 
> MPI_INFO_NULL, ncid)
> -----------^
> module_hrldas_netcdf_io.f90(5375): error #6404: This name does not have a 
> type, and must have an explicit type.   [NF90_OPEN_PAR]
> ierr = nf90_open_par(trim(restart_filename_remember), NF90_NOWRITE, 
> MPI_COMM_WORLD, MPI_INFO_NULL, ncid)
> -----------^
> module_hrldas_netcdf_io.f90(5427): error #6404: This name does not have a 
> type, and must have an explicit type.   [NF90_OPEN_PAR]
> ierr = nf90_open_par(trim(restart_filename_remember), NF90_NOWRITE, 
> MPI_COMM_WORLD, MPI_INFO_NULL, ncid)
> -----------^
> module_hrldas_netcdf_io.f90(5478): error #6404: This name does not have a 
> type, and must have an explicit type.   [NF90_OPEN_PAR]
> ierr = nf90_open_par(trim(restart_filename_remember), NF90_NOWRITE, 
> MPI_COMM_WORLD, MPI_INFO_NULL, ncid)
> -----------^
> module_hrldas_netcdf_io.f90(5579): error #6404: This name does not have a 
> type, and must have an explicit type.   [NF90_OPEN_PAR]
> ierr = nf90_open_par(trim(flnm), NF90_NOWRITE, MPI_COMM_WORLD, MPI_INFO_NULL, 
> ncid)
> -----------^
> compilation aborted for module_hrldas_netcdf_io.f90 (code 1)
> 
> So I think this error is related to my netcdf-fortran installtion. I searched 
> many website: https://bb.cgd.ucar.edu/error-when-building-pio, this one told 
> me I didnot install fortran library with netcdf4. Then I use nf-config 
> âall, and got:
> 
> --cc        -> mpiicc
> --cflags    ->  
> -I/stor9000/apps/users/NWSUAF/2014011989/soft/netcdf-f-intel/include 
> -I/stor9000/apps/users/NWSUAF/2014011989/soft/netcdf-c-intel/include
> 
> --fc        -> mpiifort
> --fflags    -> 
> -I/stor9000/apps/users/NWSUAF/2014011989/soft/netcdf-f-intel/include
> --flibs     -> 
> -L/stor9000/apps/users/NWSUAF/2014011989/soft/netcdf-f-intel/lib -lnetcdff 
> -L/stor9000/apps/users/NWSUAF/2014011989/soft/netcdf-c-intel/lib -lnetcdf
> --has-f90   -> no
> --has-f03   -> yes
> 
> --has-nc2   -> no
> --has-nc4   -> no
> 
> --prefix    -> /stor9000/apps/users/NWSUAF/2014011989/soft/netcdf-f-intel
> --includedir-> 
> /stor9000/apps/users/NWSUAF/2014011989/soft/netcdf-f-intel/include
> --version   -> netCDF-Fortran 4.4.4
> 
> May you give me some suggestion, and how could I install netcdf-fortran to 
> make âhas-nc4 is yes?
> 
> Thank you!
> 
> 
> 
> 


Ticket Details
===================
Ticket ID: BNK-554715
Department: Support netCDF
Priority: Normal
Status: Closed
===================
NOTE: All email exchanges with Unidata User Support are recorded in the Unidata 
inquiry tracking system and then made publicly available through the web.  If 
you do not want to have your interactions made available in this way, you must 
let us know in each email you send to us.



NOTE: All email exchanges with Unidata User Support are recorded in the Unidata inquiry tracking system and then made publicly available through the web. If you do not want to have your interactions made available in this way, you must let us know in each email you send to us.