Problems with NF_PUT_VARA_DOUBLE


 Hi All,

I'm trying to run a numeric ocean model called MOM (Modular Ocean Model) on a cray SV1. The model reads and generates netcdf files. I found a problem in generating one of these files. I'm using the netcdf library version 3.5.0. My problem is on a routine that reads a .nc file, interpolate the numeric values of these file and generate another .nc file. I found the following error message printed on my screen:

FATAL: NETCDF ERROR: Numeric conversion not representable
>
> > ^B
> > Abort
> >
> > Beginning of Traceback:
> > Interrupt at address 413007a in routine '_lwp_killm'.
> > Called from line 32 (address 407476a) in routine 'raise'.
> > Called from line 127 (address 325127d) in routine 'abort'.
> > Called from line 59 (address 665004a) in routine 'ABORT'.
> > Called from line 2672 (address 114617d) in routine
> > 'MPP_ERROR_BASIC_in_MPP_MOD'.
> > Called from line 3564 (address 50052a) in routine
> > 'NETCDF_ERR_in_MPP_IO_MOD'.
> > Called from line 2203 (address 25426c) in routine
> > 'WRITE_RECORD_in_MPP_IO_MOD'.
> > Called from line 7 (address 23405c) in routine
> > 'MPP_WRITE_R2D_in_MPP_IO_MOD'.
> > Called from line 255 (address 170706b) in routine
> > 'WRITE_GRID_FILE_in_GRID_IO_MOD'.
> > Called from line 26 (address 171233d) in routine 'GRID_GEN'.
> > Called from line 350 (address 346755c) in routine '$START$'.
> > End of Traceback.
> > Abort (core dumped)

I've started to debug the routine that the script works with and discovered that these problem seems to happen when the program try to write one of the variables of the output file. I found an error associated with the function NF_PUT_VARA_DOUBLE. I printed the numeric result of the error

if(error.ne.NF_NOERR)print*,'NETCDF ERROR:',error

 and obtained:

 NETCDF ERROR: -60

I've got to generate the output file but with very wrong values (so far of the reality) :


-5.95210664162498e+240, -6.37638669064104e+240,
-6.37638669064104e+240,
-6.34742765105198e+273, -6.34742765105198e+273

Does anyone have an idea of what it's happening and how can I solve this problem?

Thanks a lot for the help ,

         Luiz Paulo









  • 2003 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the netcdfgroup archives: