43 integer,
intent(in) :: ng
47 logical :: Ldefine, Lupdate, NewFile, wrtHIS
49 integer :: Fcount, ifile, status
51 character (len=*),
parameter :: MyFile = &
120 adm(ng)%load=
adm(ng)%load+1
121 IF (
adm(ng)%load.gt.
adm(ng)%Nfiles)
THEN
123 WRITE (
stdout,10)
'TLM(ng)%load = ',
adm(ng)%load, &
124 &
adm(ng)%Nfiles, trim(
adm(ng)%base), &
129 & __line__, myfile))
RETURN
132 adm(ng)%Nrec(fcount)=0
134 WRITE (
adm(ng)%name,20) trim(
adm(ng)%base), ifile
139 adm(ng)%files(fcount)=trim(
adm(ng)%name)
164 & (mod(
iic(ng)-1,
nadj(ng)).eq.0))
THEN
174 wrthis=(mod(
iic(ng)-1,
nadj(ng)).eq.0)
178 & (mod(
iic(ng)-1,
nadj(ng)).eq.0)
180# if defined WEAK_CONSTRAINT && !defined WEAK_NOINTERP
182 wrthis=(mod(
iic(ng)-1,
nadj(ng)).eq.0)
185 & (mod(
iic(ng)-1,
nadj(ng)).eq.0)
187 wrthis=(mod(
iic(ng)-1,
nadj(ng)).eq.0)
249 avg(ng)%load=
avg(ng)%load+1
250 IF (
avg(ng)%load.gt.
avg(ng)%Nfiles)
THEN
252 WRITE (
stdout,10)
'AVG(ng)%load = ',
avg(ng)%load, &
253 &
avg(ng)%Nfiles, trim(
avg(ng)%base), &
258 & __line__, myfile))
RETURN
261 avg(ng)%Nrec(fcount)=0
263 WRITE (
avg(ng)%name,20) trim(
avg(ng)%base), ifile
268 avg(ng)%files(fcount)=trim(
avg(ng)%name)
288 & (mod(
iic(ng),
navg(ng)).eq.1))
THEN
308 10
FORMAT (/,
' AD_OUTPUT - multi-file counter ',a,i0, &
309 &
', is greater than Nfiles = ',i0,1x,
'dimension', &
310 & /,13x,
'in structure when creating next file: ', &
311 & a,
'_',i4.4,
'.nc', &
312 & /,13x,
'Incorrect OutFiles logic in ''read_phypar''.')
313 20
FORMAT (a,
'_',i4.4,
'.nc')
subroutine, public ad_def_his(ng, ldef)
subroutine, public ad_wrt_his(ng, tile)
subroutine, public close_file(ng, model, s, ncname, lupdate)
subroutine, public def_avg(ng, ldef)
type(t_io), dimension(:), allocatable adm
type(t_io), dimension(:), allocatable avg
character(len=256) sourcefile
integer, dimension(:), allocatable idefadj
integer, dimension(:), allocatable idefavg
integer, dimension(:), allocatable nrrec
integer, dimension(:), allocatable ntimes
integer, dimension(:), allocatable iic
logical, dimension(:), allocatable ldefavg
integer, dimension(:), allocatable navg
logical, dimension(:), allocatable lwrtavg
logical, dimension(:), allocatable ldefadj
logical, dimension(:), allocatable lwrtadj
integer, dimension(:), allocatable ndefavg
logical, dimension(:), allocatable lwrtper
logical, dimension(:), allocatable ldefout
integer, dimension(:), allocatable ntstart
integer, dimension(:), allocatable ndefadj
integer, dimension(:), allocatable nadj
logical function, public founderror(flag, noerr, line, routine)
subroutine, public wrt_avg(ng, tile)
recursive subroutine wclock_off(ng, model, region, line, routine)
recursive subroutine wclock_on(ng, model, region, line, routine)