Code: Select all
45 DO i=1,nFfiles(ng)
46 IF ((FRC(i,ng)%Nfiles.gt.1).and.(FRC(i,ng)%ncid.ge.0)) THEN
47 FRCids(i,ng)=-1
48 DO j=1,NV
49 IF (ncFRCid(j,ng).eq.FRC(i,ng)%ncid) THEN
50 ncFRCid(j,ng)=-1
51 END IF
52 END DO
53 IF (model.eq.iADM) THEN
54 DO j=1,FRC(i,ng)%Nfiles
55 IF ((FRC(i,ng)%time_min(j).le.tdays(ng)).and. &
56 & (tdays(ng).le.FRC(i,ng)%time_max(j))) THEN
57 Fcount=j
58 EXIT
59 END IF
60 END DO
61 ELSE
62 Fcount=1
63 END IF
64 FRC(i,ng)%Fcount=Fcount
65 FRC(i,ng)%name=TRIM(FRC(i,ng)%files(Fcount))
66 lstr=LEN_TRIM(FRC(i,ng)%name)
67 FRC(i,ng)%base=FRC(i,ng)%name(1:lstr-3)
68 CALL netcdf_close (ng, model, FRC(i,ng)%ncid, &
69 & FRC(i,ng)%files(i), .FALSE.)
70 IF (exit_flag.ne.NoError) RETURN
71 END IF
72 END DO
Code: Select all
files(i)
Code: Select all
FRCNAME == my_tides.nc \ !
! my_lwrad_year1.nc | !
! my_lwrad_year2.nc \ !
! my_swrad_year1.nc | !
! my_swrad_year2.nc \ !
! my_winds_year1.nc | !
! my_winds_year2.nc \ !
! my_Pair_year1.nc | !
! my_Pair_year2.nc \ !
! my_Qair_year1.nc | !
! my_Qair_year2.nc \ !
! my_Tair_year1.nc | !
! my_Tair_year2.nc !
Code: Select all
files(i)
Code: Select all
files(Fcount)
I'm not sure whether other places in close_oi.F, like line 95
Code: Select all
BRY(ng)%files(i), .FALSE.)