68#if defined BALANCE_OPERATOR && defined ZETA_ELLIPTIC
91 logical,
intent(inout) :: first
93 integer,
intent(in),
optional :: mpiCOMM
97 logical :: allocate_vars = .true.
100 integer :: MyError, MySize
102 integer :: STDrec, Tindex
103 integer :: chunk_size, ng, thread
105 integer :: my_threadnum
108 character (len=*),
parameter :: MyFile = &
109 & __FILE__//
", ROMS_initialize"
117 IF (
PRESENT(mpicomm))
THEN
167#elif defined DISTRIBUTE
184 10
FORMAT (/,
' Process Information:',/)
188 DO thread=thread_range
201#if defined MCT_LIB && (defined ATM_COUPLING || defined WAV_COUPLING)
209 CALL initialize_ocn2atm_coupling (ng,
myrank)
212 CALL initialize_ocn2wav_coupling (ng,
myrank)
243#ifdef ADJUST_BOUNDARY
254#if defined ADJUST_WSTRESS || defined ADJUST_STFLUX
282 real(dp),
intent(in) :: RunInterval
286 logical :: Lposterior
289 integer :: Lbck, Lini, Rec, Rec1, Rec2
292 real (r8) :: str_day, end_day
294 character (len=6) :: driver
296 character (len=*),
parameter :: MyFile = &
297 & __FILE__//
", ROMS_run"
337#ifdef BALANCE_OPERATOR
412#ifdef ADJUST_BOUNDARY
417#if defined ADJUST_WSTRESS || defined ADJUST_STFLUX
437#ifdef ADJUST_BOUNDARY
442#if defined ADJUST_WSTRESS || defined ADJUST_STFLUX
456 IF ((
dstrs(ng).eq.0.0_r8).and.(
dends(ng).eq.0.0_r8))
THEN
463 IF ((
dstrs(ng).gt.str_day).or.(
dstrs(ng).lt.end_day))
THEN
469 IF ((
dends(ng).gt.str_day).or.(
dends(ng).lt.end_day))
THEN
498 & rec1, rec2, lposterior)
535 10
FORMAT (/,
'AD ROMS: adjoint forcing time range: ', &
536 & f12.4,
' - ',f12.4 ,/)
537 20
FORMAT (/,
' Out of range adjoint forcing time, ',a,f12.4,/, &
538 &
' It must be between ',f12.4,
' and ',f12.4)
539 30
FORMAT (/,1x,a,1x,
'ROMS: started time-stepping:', &
540 &
' (Grid: ',i2.2,
' TimeSteps: ',i0,
' - ',i0,
')',/)
556 integer :: Fcount, ng, thread
558 character (len=*),
parameter :: MyFile = &
559 & __FILE__//
", ROMS_finalize"
570 10
FORMAT (/,
' Blowing-up: Saving latest model state into ', &
596 20
FORMAT (/,
'Elapsed wall CPU time for each process (seconds):',/)
600 DO thread=thread_range
subroutine ad_initial(ng)
subroutine ad_main3d(runinterval)
subroutine edit_multifile(task)
subroutine, public close_out
subroutine, public close_inp(ng, model)
subroutine, public error_covariance(model, driver, outloop, innloop, rbck, rini, rold, rnew, rec1, rec2, lposterior)
subroutine, public def_norm(ng, model, ifile)
subroutine, public get_state(ng, model, msg, s, inirec, tindex)
subroutine, public inp_par(model)
subroutine, public roms_initialize_arrays
subroutine, public roms_allocate_arrays(allocate_vars)
logical, dimension(:), allocatable wrtzetaref
type(t_io), dimension(:,:), allocatable std
type(t_io), dimension(:,:), allocatable nrm
type(t_io), dimension(:), allocatable fwd
type(t_io), dimension(:), allocatable rst
type(t_io), dimension(:), allocatable ini
subroutine, public initialize_parallel
integer, dimension(:), allocatable first_tile
integer, dimension(:), allocatable last_tile
integer, dimension(:), allocatable ntilex
integer, dimension(:), allocatable ntilee
logical, dimension(:,:), allocatable lwrtnrm
integer, dimension(:), allocatable ntimes
logical, dimension(:), allocatable ldefitl
real(dp), dimension(:), allocatable dt
logical, dimension(:), allocatable balance
logical, dimension(:), allocatable lreadfrc
real(dp), dimension(:), allocatable tdays
real(r8), dimension(:), allocatable dends
logical, dimension(:), allocatable ldefadj
logical, dimension(:), allocatable lcycleadj
logical, dimension(:), allocatable lwrtadj
real(dp), parameter sec2day
integer, dimension(:), allocatable ntend
logical, dimension(:), allocatable lcycletlm
logical, dimension(:,:), allocatable ldefnrm
real(r8), dimension(:), allocatable dstrs
logical, dimension(:), allocatable lwrttlm
logical, dimension(:), allocatable lwrtrst
logical, dimension(:), allocatable ldeftlm
integer, dimension(:), allocatable ntstart
logical, dimension(:), allocatable lreadfwd
logical, dimension(:), allocatable lcyclerst
logical, dimension(:), allocatable lreadblk
integer, dimension(:), allocatable lold
integer, dimension(:), allocatable lnew
subroutine, public normalization(ng, tile, ifac)
subroutine, public roms_finalize
subroutine, public roms_run(runinterval)
subroutine, public roms_initialize(first, mpicomm)
integer function, public stdout_unit(mymaster)
logical, save set_stdoutunit
logical function, public founderror(flag, noerr, line, routine)
subroutine, public tl_def_ini(ng)
subroutine, public wrt_rst(ng, tile)
subroutine, public biconj(ng, tile, model, lbck)
subroutine, public balance_ref(ng, tile, lbck)
recursive subroutine wclock_off(ng, model, region, line, routine)
recursive subroutine wclock_on(ng, model, region, line, routine)
subroutine tl_initial(ng)
subroutine tl_main3d(runinterval)