You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I built NetCDF-C with --enable-logging and NetCDF-Fortran with CPPFLAGS=-DLOGGING. Then, I try to call nf_set_log_level, but I get function not found.
Desktop/ufs-data/ufs-weather-model/FV3/io/module_write_netcdf_parallel.F90:87:12:
87 | ncerr = nf_set_log_level(3); NC_ERR_STOP(ncerr)
| 1
Error: Function 'nf_set_log_level' at (1) has no IMPLICIT type
nf_set_log_level is not included in netcdf.mod, and I found I have to #include "netcdf.inc" for it to work. I think there should be an nf90_set_log_level that works with the module.
It would also be nice if nf_set_log_level were documented somewhere and told you that you have to add -DLOGGING to the pre-processor, or automatically detect if NetCDF-C was compiled with --enable-logging.
The text was updated successfully, but these errors were encountered:
All good points. The netCDF-4 logging capability was developed and used internally (by me) when developing netCDF-4. I didn't think it would be useful to end users, but it is.
Meanwhile, @DennisHeimbigner developed his own logging system for the DAP code.
I did a better job with logging on the PIO library, which has logging similar to the netcdf-4 logging, but without some of the ugliness, and with separate output streams for each processor. This is absolutely essential when debugging parallel I/O problems, but is not in the netcdf-c logging yet.
So there is much to be done, and if I could clone myself 10 times, I just might be able to finish it all...
I built NetCDF-C with
--enable-logging
and NetCDF-Fortran withCPPFLAGS=-DLOGGING
. Then, I try to callnf_set_log_level
, but I get function not found.nf_set_log_level
is not included innetcdf.mod
, and I found I have to#include "netcdf.inc"
for it to work. I think there should be annf90_set_log_level
that works with the module.It would also be nice if
nf_set_log_level
were documented somewhere and told you that you have to add-DLOGGING
to the pre-processor, or automatically detect if NetCDF-C was compiled with--enable-logging
.The text was updated successfully, but these errors were encountered: