Changeset 11909
- Timestamp:
- 2019-11-14T21:31:36+01:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
NEMO/branches/2019/dev_r11879_ENHANCE-05_SimonM-Harmonic_Analysis/src/OCE/IOM/iom.F90
r11554 r11909 56 56 LOGICAL, PUBLIC, PARAMETER :: lk_iomput = .FALSE. !: iom_put flag 57 57 #endif 58 PUBLIC iom_init, iom_ swap, iom_open, iom_close, iom_setkt, iom_varid, iom_get58 PUBLIC iom_init, iom_init_closedef, iom_swap, iom_open, iom_close, iom_setkt, iom_varid, iom_get 59 59 PUBLIC iom_chkatt, iom_getatt, iom_putatt, iom_getszuld, iom_rstput, iom_delay_rst, iom_put 60 PUBLIC iom_use, iom_context_finalize, iom_ miss_val60 PUBLIC iom_use, iom_context_finalize, iom_update_file_name, iom_miss_val 61 61 62 62 PRIVATE iom_rp0d, iom_rp1d, iom_rp2d, iom_rp3d … … 65 65 #if defined key_iomput 66 66 PRIVATE iom_set_domain_attr, iom_set_axis_attr, iom_set_field_attr, iom_set_file_attr, iom_get_file_attr, iom_set_grid_attr 67 PRIVATE set_grid, set_grid_bounds, set_scalar, set_xmlatt, set_mooring, iom_ update_file_name, iom_sdate67 PRIVATE set_grid, set_grid_bounds, set_scalar, set_xmlatt, set_mooring, iom_sdate 68 68 PRIVATE iom_set_rst_context, iom_set_rstw_active, iom_set_rstr_active 69 69 # endif … … 93 93 CONTAINS 94 94 95 SUBROUTINE iom_init( cdname, fname, ld_tmppatch )95 SUBROUTINE iom_init( cdname, fname, ld_tmppatch, ld_closedef ) 96 96 !!---------------------------------------------------------------------- 97 97 !! *** ROUTINE *** … … 103 103 CHARACTER(len=*), OPTIONAL, INTENT(in) :: fname 104 104 LOGICAL , OPTIONAL, INTENT(in) :: ld_tmppatch 105 LOGICAL , OPTIONAL, INTENT(in) :: ld_closedef 105 106 #if defined key_iomput 106 107 ! … … 115 116 INTEGER :: nldi_save, nlei_save !: and close boundaries in output files 116 117 INTEGER :: nldj_save, nlej_save !: 118 LOGICAL :: ll_closedef = .TRUE. 117 119 !!---------------------------------------------------------------------- 118 120 ! … … 129 131 IF( njmpp + jpj - 1 == jpjglo ) nlej = jpj 130 132 ENDIF 133 IF ( PRESENT(ld_closedef) ) ll_closedef = ld_closedef 131 134 ! 132 135 ALLOCATE( zt_bnds(2,jpk), zw_bnds(2,jpk) ) … … 243 246 ENDIF 244 247 ! 245 ! end file definition248 ! set time step length 246 249 dtime%second = rdt 247 250 CALL xios_set_timestep( dtime ) 248 CALL xios_close_context_definition() 249 CALL xios_update_calendar( 0 ) 251 ! 252 ! conditional closure of context definition 253 IF ( ll_closedef ) CALL iom_init_closedef 250 254 ! 251 255 DEALLOCATE( zt_bnds, zw_bnds ) … … 258 262 ! 259 263 END SUBROUTINE iom_init 264 265 SUBROUTINE iom_init_closedef 266 !!---------------------------------------------------------------------- 267 !! *** SUBROUTINE iom_init_closedef *** 268 !!---------------------------------------------------------------------- 269 !! 270 !! ** Purpose : Closure of context definition 271 !! 272 !!---------------------------------------------------------------------- 273 274 CALL xios_close_context_definition() 275 CALL xios_update_calendar( 0 ) 276 277 END SUBROUTINE iom_init_closedef 260 278 261 279 SUBROUTINE iom_set_rstw_var_active(field)
Note: See TracChangeset
for help on using the changeset viewer.