Opened 12 years ago

Closed 12 years ago

#568 closed bug (Fixed)

warning in wrt_info — at Version 1

Reported by: kate Owned by: arango
Priority: major Milestone: Release ROMS/TOMS 3.6
Component: Nonlinear Version: 3.6
Keywords: Cc:

Description (last modified by arango)

Trying the Cray compiler:

              ioerror=status
ftn-7212 crayftn: WARNING WRT_INFO, File = wrt_info.f90, Line = 384 
  Variable "status" is used before it is defined. 

It's true that if a variable is not found, status does not get set, though it does get used. ioerror should get set to a "not found" value instead of to status.

Change History (1)

comment:1 by arango, 12 years ago

Description: modified (diff)
Resolution: Fixed
Status: newclosed

Indeed, the value for status is not assigned. I am setting ioerror=nf90_enotvar. The parameter nf90_enotvar is the NetCDF error code for Variable not found. Good catch.

Note: See TracTickets for help on using tickets.