New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
Changeset 12351 for NEMO/branches/2019/dev_r12072_MERGE_OPTION2_2019/src/OCE/SBC/fldread.F90 – NEMO

Ignore:
Timestamp:
2020-01-29T12:12:54+01:00 (4 years ago)
Author:
smueller
Message:

Rectification of a defect that halved the maximum length of the interval between restarts in model runs with enabled temporal interpolation of forcing fields (field-information flag ln_tint set to .true.)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/branches/2019/dev_r12072_MERGE_OPTION2_2019/src/OCE/SBC/fldread.F90

    r12256 r12351  
    900900      ENDIF 
    901901      ! 
    902       IF( sdjf%ln_tint ) THEN   ! record time defined in the middle of the record 
    903          sdjf%nrecsec(1:sdjf%nreclast) = 0.5 * ( sdjf%nrecsec(0:sdjf%nreclast-1) + sdjf%nrecsec(1:sdjf%nreclast) ) 
     902      IF( sdjf%ln_tint ) THEN   ! record time defined in the middle of the record, computed using an implementation 
     903                                ! of the rounded average that is valid over the full integer range 
     904         sdjf%nrecsec(1:sdjf%nreclast) = sdjf%nrecsec(0:sdjf%nreclast-1) / 2 + sdjf%nrecsec(1:sdjf%nreclast) / 2 + & 
     905            & MAX( MOD( sdjf%nrecsec(0:sdjf%nreclast-1), 2 ), MOD( sdjf%nrecsec(1:sdjf%nreclast), 2 ) ) 
    904906      END IF 
    905907      ! 
Note: See TracChangeset for help on using the changeset viewer.