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 1219 – NEMO

Changeset 1219


Ignore:
Timestamp:
2008-10-28T11:13:34+01:00 (16 years ago)
Author:
smasson
Message:

bugfix in fldread when looking for the last record of previous year(month) file. WARNING: change the results, see ticket:277

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEMO/OPA_SRC/SBC/fldread.F90

    r1212 r1219  
    220220               IF( sdjf%cltype == 'monthly' ) THEN   ! monthly file 
    221221                  sdjf%rec_b(1) = 24. / sdjf%freqh * REAL( nmonth_len(nmonth-1), wp )   ! last record of previous month 
    222                   llprevmth = sdjf%ln_clim                                              ! use previous month file? 
    223                   llprevyr  = sdjf%ln_clim .AND. nmonth == 1                            ! use previous year  file? 
     222                  llprevmth = .NOT. sdjf%ln_clim                                        ! use previous month file? 
     223                  llprevyr  = .NOT. sdjf%ln_clim .AND. nmonth == 1                      ! use previous year  file? 
    224224               ELSE                                  ! yearly file 
    225225                  sdjf%rec_b(1) = 24. / sdjf%freqh * REAL( nyear_len(0), wp )           ! last record of year month 
    226                   llprevyr = sdjf%ln_clim                                               ! use previous year  file? 
     226                  llprevyr  = .NOT. sdjf%ln_clim                                        ! use previous year  file? 
    227227               ENDIF 
    228228            ENDIF 
Note: See TracChangeset for help on using the changeset viewer.