New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
Changeset 12184 for NEMO/branches/2019/dev_r12072_MERGE_OPTION2_2019/src/OCE/IOM – NEMO

Ignore:
Timestamp:
2019-12-11T14:35:26+01:00 (4 years ago)
Author:
smueller
Message:

Merging of the developments in /NEMO/branches/2019/dev_r11879_ENHANCE-05_SimonM-Harmonic_Analysis@12122 with respect to /NEMO/trunk@12072 into /NEMO/branches/2019/dev_r12072_MERGE_OPTION2_2019 (tickets #2175 and #2194)

Location:
NEMO/branches/2019/dev_r12072_MERGE_OPTION2_2019
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • NEMO/branches/2019/dev_r12072_MERGE_OPTION2_2019

    • Property svn:externals
      •  

        old new  
        22^/utils/build/makenemo@HEAD   makenemo 
        33^/utils/build/mk@HEAD         mk 
        4 ^/utils/tools@HEAD            tools 
         4^/utils/tools_dev_r11751_ENHANCE-05_SimonM-Harmonic_Analysis@HEAD tools 
        55^/vendors/AGRIF/dev@HEAD      ext/AGRIF 
        66^/vendors/FCM@HEAD            ext/FCM 
  • NEMO/branches/2019/dev_r12072_MERGE_OPTION2_2019/src/OCE/IOM/iom.F90

    r12166 r12184  
    5656   LOGICAL, PUBLIC, PARAMETER ::   lk_iomput = .FALSE.       !: iom_put flag 
    5757#endif 
    58    PUBLIC iom_init, iom_swap, iom_open, iom_close, iom_setkt, iom_varid, iom_get, iom_get_var 
     58   PUBLIC iom_init, iom_init_closedef, iom_swap, iom_open, iom_close, iom_setkt, iom_varid, iom_get, iom_get_var 
    5959   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_val 
     60   PUBLIC iom_use, iom_context_finalize, iom_update_file_name, iom_miss_val 
    6161 
    6262   PRIVATE iom_rp0d, iom_rp1d, iom_rp2d, iom_rp3d 
     
    6565#if defined key_iomput 
    6666   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_sdate 
     67   PRIVATE set_grid, set_grid_bounds, set_scalar, set_xmlatt, set_mooring, iom_sdate 
    6868   PRIVATE iom_set_rst_context, iom_set_rstw_active, iom_set_rstr_active 
    6969# endif 
     
    9393CONTAINS 
    9494 
    95    SUBROUTINE iom_init( cdname, fname, ld_tmppatch )  
     95   SUBROUTINE iom_init( cdname, fname, ld_tmppatch, ld_closedef )  
    9696      !!---------------------------------------------------------------------- 
    9797      !!                     ***  ROUTINE   *** 
     
    103103      CHARACTER(len=*), OPTIONAL, INTENT(in)  :: fname 
    104104      LOGICAL         , OPTIONAL, INTENT(in)  :: ld_tmppatch 
     105      LOGICAL         , OPTIONAL, INTENT(in)  :: ld_closedef 
    105106#if defined key_iomput 
    106107      ! 
     
    117118      INTEGER ::   nldi_save, nlei_save    !:      and close boundaries in output files 
    118119      INTEGER ::   nldj_save, nlej_save    !: 
     120      LOGICAL ::   ll_closedef = .TRUE. 
    119121      !!---------------------------------------------------------------------- 
    120122      ! 
     
    131133         IF( njmpp + jpj - 1 == jpjglo ) nlej = jpj 
    132134      ENDIF 
     135      IF ( PRESENT(ld_closedef) ) ll_closedef = ld_closedef 
    133136      ! 
    134137      ALLOCATE( zt_bnds(2,jpk), zw_bnds(2,jpk) ) 
     
    269272      ENDIF 
    270273      ! 
    271       ! end file definition 
     274      ! set time step length 
    272275      dtime%second = rdt 
    273276      CALL xios_set_timestep( dtime ) 
    274       CALL xios_close_context_definition() 
    275       CALL xios_update_calendar( 0 ) 
     277      ! 
     278      ! conditional closure of context definition 
     279      IF ( ll_closedef ) CALL iom_init_closedef 
    276280      ! 
    277281      DEALLOCATE( zt_bnds, zw_bnds ) 
     
    284288      ! 
    285289   END SUBROUTINE iom_init 
     290 
     291   SUBROUTINE iom_init_closedef 
     292      !!---------------------------------------------------------------------- 
     293      !!            ***  SUBROUTINE iom_init_closedef  *** 
     294      !!---------------------------------------------------------------------- 
     295      !! 
     296      !! ** Purpose : Closure of context definition 
     297      !! 
     298      !!---------------------------------------------------------------------- 
     299 
     300      CALL xios_close_context_definition() 
     301      CALL xios_update_calendar( 0 ) 
     302 
     303   END SUBROUTINE iom_init_closedef 
    286304 
    287305   SUBROUTINE iom_set_rstw_var_active(field) 
Note: See TracChangeset for help on using the changeset viewer.