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

Symbol ‘nf_netcdf4’ at (1) has no IMPLICIT type; did you mean ‘nf_cdf5’?

Hi,
I first would like to apologize for the long delay in response. We were busy preparing for our WRF tutorial and have gotten behind on forum responses.
Are you still struggling with this error, or were you able to search online to find the solution? If you're still struggling, please provide additional information - such as which files you have modified and attach the error log, as well. Thanks!
 
Good day! Did you find the solution of this problem?
I tried to install 3DVAR with intel (dmpar): all 44 exe files were generated, but da_wrfvar.exe and gen_be didn't work correctly.
And I have the error message in compilation log file: da_rad_diags.f(1739): error #6404: This name does not have a type, and must have an explicit type. [NF_NETCDF4].
Thanks for reply!
 
I also ran into this problem this morning, the details is as follows:

gfortran -c -O2 -ftree-vectorize -funroll-loops -w -ffree-form -ffree-line-length-none -fconvert=big-endian -frecord-marker=4 -fdefault-real-8 -I/root/Build_WRF/LIBRARIES/netcdf/include da_rad_diags.f
da_rad_diags.f:1751:52:

1751 | ios = NF_CREATE(trim(ncname), NF_NETCDF4, ncid)
| 1
Error: Symbol ‘nf_netcdf4’ at (1) has no IMPLICIT type; did you mean ‘nf_cdf5’?

and the WRF version is 4.6.0

Best regards,
Ben
 
here is a workaround:

1. copy netcdf4.inc from folder netcdf-fortran-VERSION/fortran to the $NETCDF/include since the symbols needed are in this include file
2. open var/build/da_rad_diags.f90 and add #include "netcdf4.inc" right after the line #include "netcdf.inc" then save

now, every thing should work!
 
the root cause is:

netcdf4 was not enabled while configuring netcdf-c, so we *MUST* enable netcdf4, otherwise you will definitely run into more difficult problems soon :(
 
Top