id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc 324,bug in fldread when reading the last record of previous year file with monthly non-climatological file,spolod,nemo,"Hi When using monthly non-climatological files (''frequency = -1'' and ''clim == false'' in namelist) , if we need to read the last record of previous year in another file, there is a bug: we read the last record of the current year file instead of the previous one. In fldread.F90 (SUBROUTINE fld_init) Add {{{ llprevyr = .NOT. sdjf%ln_clim }}} After line 331 {{{ 329 IF( sdjf%rec_b(1) == 0.e0 ) THEN ! we redefine record sdjf%rec_b(1) with the last record of previous year file 330 IF( sdjf%freqh == -1. ) THEN ! monthly mean 331 sdjf%rec_b(1) = 12. ! force to read december mean llprevyr = .NOT. sdjf%ln_clim 332 ELSE 333 IF( sdjf%cltype == 'monthly' ) THEN ! monthly file 334 sdjf%rec_b(1) = 24. / sdjf%freqh * REAL( nmonth_len(nmonth-1), wp ) ! last record of previous month 335 llprevmth = .NOT. sdjf%ln_clim ! use previous month file? 336 llprevyr = .NOT. sdjf%ln_clim .AND. nmonth == 1 ! use previous year file? 337 ELSE ! yearly file 338 sdjf%rec_b(1) = 24. / sdjf%freqh * REAL( nyear_len(0), wp ) ! last record of year month 339 llprevyr = .NOT. sdjf%ln_clim ! use previous year file? 340 ENDIF 341 ENDIF 342 ENDIF }}} Stephane ",Bug,closed,low,,OCE,v3.0,,fixed,OPA surface v3.0,