Opened 6 years ago

Closed 6 years ago

#763 closed upgrade (Done)

IMPORTANT: More robust logic in check_multifile.F

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

Description

Changed the logic in check_multifile.F to compute local variable Tfinal from:

!
!  Get final time string for simulation.
!
      IF (model.eq.iADM) THEN
        Tfinal=dstart*day2sec
      ELSE
        Tfinal=dstart*day2sec+ntimes(ng)*dt(ng)
      END IF
      CALL time_string (tfinal, F_code)

to

!
!  Get final time string for simulation.
!
      IF (model.eq.iADM) THEN
        Tfinal=time(ng)-ntimes(ng)*dt(ng)
      ELSE
        Tfinal=time(ng)+ntimes(ng)*dt(ng)
      END IF
      CALL time_string (tfinal, F_code)

The latest is more robust because it doesn't depend on the user manipulation of DSTART in ocean.in. Under certain conditions the checking of input files may fail in check_multifile.F.

Also, I added precise error reporting in the routine inquiry.F.

Many thanks to Julia Levin for bringing this to my attention.

Change History (1)

comment:1 by arango, 6 years ago

Resolution: Done
Status: newclosed
Note: See TracTickets for help on using tickets.