50 USE modi_write_file_map
52 USE modi_write_file_isbamap
65 CHARACTER(LEN=6),
INTENT(IN) :: HPROGRAM
66 INTEGER,
INTENT(IN) :: KI
72 REAL,
DIMENSION(:),
ALLOCATABLE :: ZAS
73 CHARACTER(LEN=30) :: YVAR
74 REAL(KIND=JPRB) :: ZHOOK_HANDLE
76 IF (
lhook)
CALL dr_hook(
'PREP_RESTART_COUPL_TOPD',0,zhook_handle)
82 WRITE(iluout,*)
'Write STOCK file' 84 CALL open_file(
'ASCII ',
nunit,hfile=
'stocks_sav.txt',hform=
'FORMATTED',haction=
'WRITE')
92 WRITE(iluout,*)
'Write pixels water content files' 94 yvar =
'_xwtop_sav.map' 99 WRITE(iluout,*)
'Write Asat files' 104 CALL open_file(
'ASCII ',
nunit,hfile=
'surfcont_sav.map',hform=
'FORMATTED',haction=
'WRITE')
109 IF (
lhook)
CALL dr_hook(
'PREP_RESTART_COUPL_TOPD',1,zhook_handle)
real, dimension(:,:), allocatable xwtopt
subroutine open_file(HPROGRAM, KUNIT, HFILE, HFORM, HACTION, HACCESS, KR
real, dimension(:,:), allocatable xqb_dr
real, dimension(:,:), allocatable xqb_run
subroutine write_file_isbamap(UG, KUNIT, PVAR, KI)
subroutine prep_restart_coupl_topd(UG, U, HPROGRAM, KI)
real, dimension(:), allocatable xas_nature
subroutine close_file(HPROGRAM, KUNIT)
subroutine get_luout(HPROGRAM, KLUOUT)
real, dimension(:,:), allocatable xdr_torout
subroutine write_file_map(PVAR, HVAR)
real, dimension(:,:), allocatable xrun_torout
real, dimension(:,:), allocatable xqtot