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

20010314: exit code interpretation: -31



Hugh,

A netCDF error code of -31 corresponds to a system error.  Basically,
the netCDF library called an operating system function (e.g. write())
and the function failed.  Why the system function failed should be
explained by the system error code variable "errno" in the system
include-file "errno.h".

netCDF error codes are enumerated in the netCDF include-file
"netcdf.h".

Since you're using some code that, itself, uses the netCDF library, I'm
afraid that you'll have to uncover the underlying problem by either 
using a debugger or modifying the code to display the value of "errno".

Regards,
Steve Emmerson

> ------- Original Message
> 
> >To: address@hidden
> >cc: address@hidden
> >From: Hugh Ellis <address@hidden>
> >Subject: exit code interpretation
> >Organization: UCAR/Unidata
> >Keywords: 200103141703.f2EH3KL02469
> 
> Dear netCDF support:
> 
> We're getting a netCDF error while running CCTM (in models3). The error
> message is copied below. Could you please tell me where I can find an
> interpretation for netCDF error -31. I have repeatedly searched the netCDF
> site and so far have been unable to find an answer. We have a Sun Ultra 60
> running Solaris 2.6
> 
> Thanks,
> 
> Hugh Ellis
> 
> 
> **************************************************************************
>      >>> WARNING in subroutine WRVARS <<<
>      Error writing variable NO2              to file CTM_CONC_1      
>      netCDF error number  -31
> 
> 
>  IOAPI file ID   4
>  netCDF ID       9
>  variable        2
>  dims array      1  1  1  47  0
>  delts array     69  60  30  1  0
>  
> 
>      Error writing NO2              to CTM_CONC_1       for 1990122:220000
> 
> 
>      *** ERROR ABORT in subroutine DRIVER          
>      Could not write NO2              to CTM_CONC_1
>      Date and time 22:00:00 May 2, 1990     (1990122:220000)
> ***************************************************************************
> 
> 
> 
> 
> #################################################################
> ##    Hugh Ellis                                               ##
> ##    Professor and Chairman                                   ##
> ##    Department of Geography and Environmental Engineering    ##
> ##    Ames 312                                                 ##
> ##    The Johns Hopkins University                             ##
> ##    Charles and 34th Streets                                 ##
> ##    Baltimore, Maryland 21218                                ##
> ##                                                             ##
> ##    Tel: 410-516-6537                                        ##
> ##    Fax: 410-516-8996                                        ##
> ##    Email: address@hidden                                ##
> #################################################################
> 
> 
> ------- End of Original Message