Opened 12 years ago

Closed 12 years ago

#192 closed bug (Fixed)

Incorrect error explanations when reading NetCDF

Reported by: ianthomas Owned by: arango
Priority: trivial Milestone: Release ROMS/TOMS 3.2
Component: Nonlinear Version: 3.2
Keywords: Cc:

Description (last modified by arango)

Firstly, in ROMS/Utility/get_grid.F, lines 171-175 are

      IF (.not.find_string(var_name,n_var,'mask_psi',vindex)) THEN
        IF (Master) WRITE (stdout,10) 'mask_rho', TRIM(ncname)
        exit_flag=2
        RETURN
      END IF

The second line should be

       IF (Master) WRITE (stdout,10) 'mask_psi', TRIM(ncname)

Secondly, in ROMS/Utility/checkvars.F, lines 343-348 are

      IF (.not.have_var(idtime)) THEN
        IF (Master) WRITE (stdout,10) string, TRIM(tvarnam),            &
     &                                TRIM(ncname)
        exit_flag=2
        RETURN
      END IF

I think the second line should instead be

        IF (Master) WRITE (stdout,10) string, TRIM(Vname(1,idtime)),     &

Change History (1)

comment:1 Changed 12 years ago by arango

  • Description modified (diff)
  • Resolution set to Fixed
  • Status changed from new to closed

Yes. The second fix done but it was still correct. The variable tvarnam and Vname(1,idtime) have the same value. I guess that the change is done for consistency.

Note: See TracTickets for help on using tickets.