Opened 8 years ago

Closed 8 years ago

#464 closed defect (fixed)

Cannot add extra data with the same name as existing extra data

Reported by: Ian Culverwell Owned by: Ian Culverwell
Priority: normal Milestone: 9.0
Component: ropp_io Version: 8.0
Keywords: vlists Cc:

Description

If you try to, you hit a netCDF error:

FATAL ERROR (from ropp_io_write_ncdf_def):  NetCDF: String match to name in use

Change history (3)

comment:1 by Ian Culverwell, 8 years ago

The simplest solution is to check that the name isn't already in use, and issue an ERROR message if it is, in which case the newly computed extra data will not be appended to the ROprof structure. This has been done at r4927. If you try to add extra data with a matching name to existing extra data, ROPP now says, for example,

ERROR (from ropp_io_addvar_rodataD2d):  The name "gradient_bangle" is already in use ... cannot add the newly computed variable to the ROprof structure.
... (from ropp_io_addvar_rodataD2d):  (Try removing it from the input file from which it was probably read.)

comment:2 by Ian Culverwell, 8 years ago

As a result of this change, ropp_fm_bg2ro_1d.f90 has been updated at r4928.

comment:3 by Ian Culverwell, 8 years ago

Resolution: fixed
Status: newclosed

This tests out OK, so closing ticket.

Note: See TracTickets for help on using tickets.