alex-robinson / ncio

Simple Fortran interface to NetCDF reading and writing.
23 stars 9 forks source link

Misleading error message when writing to non-existent file #7

Open sebastianbeyer opened 7 years ago

sebastianbeyer commented 7 years ago

When I try to write data into a non-existent file, the error message is misleading:

ncio:: error: NetCDF: String match to name in use

Example:

call nc_create     ("test.nc")
call nc_write_dim  ("nothere.nc", 'x', x=0, dx=1, nx=10)
alex-robinson commented 7 years ago

Thanks, this is strange. The error message itself comes from the NetCDF library. I'll have to see what triggers that particular message in this case.