41# if defined FOUR_DVAR && !defined WEAK_CONSTRAINT
53 integer,
intent(in) :: ng
57 logical,
save :: First = .true.
58 logical :: Ldefine, Lupdate, NewFile
60 integer :: Fcount, ifile, status, tile
62 character (len=*),
parameter :: MyFile = &
131 tlm(ng)%load=
tlm(ng)%load+1
132 IF (
tlm(ng)%load.gt.
tlm(ng)%Nfiles)
THEN
134 WRITE (
stdout,10)
'TLM(ng)%load = ',
tlm(ng)%load, &
135 &
tlm(ng)%Nfiles, trim(
tlm(ng)%base), &
140 & __line__, myfile))
RETURN
143 tlm(ng)%Nrec(fcount)=0
145 WRITE (
tlm(ng)%name,20) trim(
tlm(ng)%base), ifile
150 tlm(ng)%files(fcount)=trim(
tlm(ng)%name)
176 & (mod(
iic(ng)-1,
ntlm(ng)).eq.0))
THEN
185 IF ((mod(
iic(ng)-1,
ntlm(ng)).eq.0).and. &
245 avg(ng)%load=
avg(ng)%load+1
246 IF (
avg(ng)%load.gt.
avg(ng)%Nfiles)
THEN
248 WRITE (
stdout,10)
'AVG(ng)%load = ',
avg(ng)%load, &
249 &
avg(ng)%Nfiles, trim(
avg(ng)%base), &
254 & __line__, myfile))
RETURN
257 avg(ng)%Nrec(fcount)=0
259 WRITE (
avg(ng)%name,20) trim(
avg(ng)%base), ifile
264 avg(ng)%files(fcount)=trim(
avg(ng)%name)
284 & (mod(
iic(ng)-1,
navg(ng)).eq.0))
THEN
297# ifndef WEAK_CONSTRAINT
329# if defined R4DVAR || defined R4DVAR_ANA_SENSITIVITY || \
347 10
FORMAT (/,
' RP_OUTPUT - multi-file counter ',a,i0, &
348 &
', is greater than Nfiles = ',i0,1x,
'dimension', &
349 & /,13x,
'in structure when creating next file: ', &
350 & a,
'_',i4.4,
'.nc', &
351 & /,13x,
'Incorrect OutFiles logic in ''read_phypar''.')
352 20
FORMAT (a,
'_',i4.4,
'.nc')
subroutine, public close_file(ng, model, s, ncname, lupdate)
subroutine, public def_avg(ng, ldef)
logical, dimension(:), allocatable processobs
type(t_io), dimension(:), allocatable tlm
type(t_io), dimension(:), allocatable avg
character(len=256) sourcefile
integer, dimension(:), allocatable idefavg
integer, dimension(:), allocatable ideftlm
integer, dimension(:), allocatable nrrec
real(dp), dimension(:), allocatable obstime
integer, dimension(:), allocatable iic
integer, dimension(:), allocatable ntlm
real(dp), dimension(:), allocatable dt
integer, dimension(:), allocatable ndeftlm
logical, dimension(:), allocatable ldefavg
integer, dimension(:), allocatable navg
logical, dimension(:), allocatable lwrtavg
integer, dimension(:), allocatable ndefavg
logical, dimension(:), allocatable lwrtper
logical, dimension(:), allocatable lwrttlm
logical, dimension(:), allocatable ldefout
real(dp), dimension(:), allocatable time
logical, dimension(:), allocatable ldeftlm
integer, dimension(:), allocatable ntstart
subroutine, public obs_read(ng, model, backward)
subroutine, public obs_write(ng, tile, model)
logical function, public founderror(flag, noerr, line, routine)
subroutine, public tl_def_his(ng, ldef)
subroutine, public tl_def_ini(ng)
subroutine, public tl_wrt_his(ng, tile)
subroutine, public wrt_avg(ng, tile)
subroutine obs_cost(ng, model)
recursive subroutine wclock_off(ng, model, region, line, routine)
recursive subroutine wclock_on(ng, model, region, line, routine)