50 integer,
intent(in) :: ng
54 logical :: Ldefine, Lupdate, NewFile
56 integer :: Fcount, ifile, status, tile
58 character (len=*),
parameter :: MyFile = &
127 tlm(ng)%load=
tlm(ng)%load+1
128 IF (
tlm(ng)%load.gt.
tlm(ng)%Nfiles)
THEN
130 WRITE (
stdout,10)
'TLM(ng)%load = ',
tlm(ng)%load, &
131 &
tlm(ng)%Nfiles, trim(
tlm(ng)%base), &
136 & __line__, myfile))
RETURN
139 tlm(ng)%Nrec(fcount)=0
141 WRITE (
tlm(ng)%name,20) trim(
tlm(ng)%base), ifile
146 tlm(ng)%files(fcount)=trim(
tlm(ng)%name)
170# if defined STOCHASTIC_OPT || defined FORCING_SV || \
171 defined hessian_so || defined hessian_fsv
175 IF (
iic(ng).eq.1)
THEN
186 & (mod(
iic(ng)-1,
ntlm(ng)).eq.0))
THEN
195 IF ((mod(
iic(ng)-1,
ntlm(ng)).eq.0).and. &
251 avg(ng)%load=
avg(ng)%load+1
257 IF (
avg(ng)%load.gt.
avg(ng)%Nfiles)
THEN
259 WRITE (
stdout,10)
'AVG(ng)%load = ',
avg(ng)%load, &
260 &
avg(ng)%Nfiles, trim(
avg(ng)%base), &
265 & __line__, myfile))
RETURN
268 avg(ng)%Nrec(fcount)=0
270 WRITE (
avg(ng)%name,20) trim(
avg(ng)%base), ifile
275 avg(ng)%files(fcount)=trim(
avg(ng)%name)
295 & (mod(
iic(ng)-1,
navg(ng)).eq.0))
THEN
306# if defined FOUR_DVAR
333# ifndef WEAK_CONSTRAINT
350 10
FORMAT (/,
' TL_OUTPUT - multi-file counter ',a,i0, &
351 &
', is greater than Nfiles = ',i0,1x,
'dimension', &
352 & /,13x,
'in structure when creating next file: ', &
353 & a,
'_',i4.4,
'.nc', &
354 & /,13x,
'Incorrect OutFiles logic in ''read_phypar''.')
355 20
FORMAT (a,
'_',i4.4,
'.nc')
subroutine, public close_file(ng, model, s, ncname, lupdate)
subroutine, public def_avg(ng, ldef)
logical, dimension(:), allocatable lsadd
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 ntend
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_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)