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 14789 for NEMO/branches/2021/dev_r13747_HPC-11_mcastril_HPDAonline_DiagGPU/src/TOP/PISCES/SED/sedrst.F90 – NEMO

Ignore:
Timestamp:
2021-05-05T13:18:04+02:00 (3 years ago)
Author:
mcastril
Message:

[2021/HPC-11_mcastril_HPDAonline_DiagGPU] Update externals

Location:
NEMO/branches/2021/dev_r13747_HPC-11_mcastril_HPDAonline_DiagGPU
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • NEMO/branches/2021/dev_r13747_HPC-11_mcastril_HPDAonline_DiagGPU

    • Property svn:externals
      •  

        old new  
        33^/utils/build/mk@HEAD         mk 
        44^/utils/tools@HEAD            tools 
        5 ^/vendors/AGRIF/dev_r12970_AGRIF_CMEMS      ext/AGRIF 
         5^/vendors/AGRIF/dev@HEAD      ext/AGRIF 
        66^/vendors/FCM@HEAD            ext/FCM 
        77^/vendors/IOIPSL@HEAD         ext/IOIPSL 
         8^/vendors/PPR@HEAD            ext/PPR 
        89 
        910# SETTE 
        10 ^/utils/CI/sette@13559        sette 
         11^/utils/CI/sette@14244        sette 
  • NEMO/branches/2021/dev_r13747_HPC-11_mcastril_HPDAonline_DiagGPU/src/TOP/PISCES/SED/sedrst.F90

    r13286 r14789  
    4242      CHARACTER(LEN=50)   ::   clname   ! trc output restart file name 
    4343      CHARACTER(LEN=256)  ::   clpath   ! full path to ocean output restart file 
     44      CHARACTER(LEN=52)   ::   clpname   ! trc output restart file name including AGRIF 
    4445      !!---------------------------------------------------------------------- 
    4546      ! 
     
    8081         IF(lwp) WRITE(numsed,*) & 
    8182             '             open sed restart.output NetCDF file: ',TRIM(clpath)//clname 
    82          CALL iom_open( TRIM(clpath)//TRIM(clname), numrsw, ldwrt = .TRUE., kdlev = jpksed, cdcomp = 'SED' ) 
     83         IF(.NOT.lwxios) THEN 
     84            CALL iom_open( TRIM(clpath)//TRIM(clname), numrsw, ldwrt = .TRUE., kdlev = jpksed, cdcomp = 'SED' ) 
     85         ELSE 
     86#if defined key_xios 
     87            cw_sedrst_cxt = "rstws_"//TRIM(ADJUSTL(clkt)) 
     88            IF( TRIM(Agrif_CFixed()) == '0' ) THEN 
     89               clpname = clname 
     90            ELSE 
     91               clpname = TRIM(Agrif_CFixed())//"_"//clname 
     92            ENDIF 
     93            numrsw = iom_xios_setid(TRIM(clpath)//TRIM(clpname)) 
     94            CALL iom_init( cw_sedrst_cxt, kdid = numrsw, ld_closedef = .FALSE. ) 
     95#else 
     96            CALL ctl_stop( 'Can not use XIOS in trc_rst_opn' ) 
     97#endif 
     98         ENDIF 
     99 
    83100         lrst_sed = .TRUE. 
    84101      ENDIF 
     
    196213      CALL pack_arr( jpoce, sedligand(1:jpoce,1:jpksed), & 
    197214         &             zdta2(1:jpi,1:jpj,1:jpksed), iarroce(1:jpoce) ) 
    198  
    199215      IF( ln_timing )  CALL timing_stop('sed_rst_read') 
    200216      
     
    240256      !! 1. WRITE in nutwrs 
    241257      !! ------------------ 
    242  
    243       zinfo(1) = REAL( kt) 
    244       CALL iom_rstput( kt, nitrst, numrsw, 'kt', zinfo  ) 
     258!     zinfo(1) = REAL( kt) 
     259      CALL iom_rstput( kt, nitrst, numrsw, 'kt', REAL( kt    , wp) ) 
    245260 
    246261      ! Back to 2D geometry 
     
    299314 
    300315      IF( kt == nitrst ) THEN 
    301           CALL iom_close( numrsw )     ! close the restart file (only at last time step) 
     316          IF(.NOT.lwxios) THEN 
     317             CALL iom_close( numrsw )     ! close the restart file (only at last time step) 
     318          ELSE 
     319             CALL iom_context_finalize( cw_sedrst_cxt )  
     320             iom_file(numrsw)%nfid       = 0 
     321             numrsw = 0 
     322          ENDIF 
    302323          IF( l_offline .AND. ln_rst_list ) THEN 
    303324             nrst_lst = nrst_lst + 1 
     
    342363      REAL(wp) ::  zkt, zrdttrc1 
    343364      REAL(wp) ::  zndastp 
     365      CHARACTER(len = 82) :: clpname 
    344366 
    345367      ! Time domain : restart 
     
    353375 
    354376         IF( ln_rst_sed ) THEN 
     377            lxios_sini = .FALSE. 
    355378            CALL iom_open( TRIM(cn_sedrst_indir)//'/'//cn_sedrst_in, numrsr ) 
     379 
     380            IF( lrxios) THEN 
     381                cr_sedrst_cxt = 'sed_rst' 
     382                IF(lwp) WRITE(numout,*) 'Enable restart reading by XIOS for SED' 
     383!               IF( TRIM(Agrif_CFixed()) == '0' ) THEN 
     384!                  clpname = cn_sedrst_in 
     385!               ELSE 
     386!                  clpname = TRIM(Agrif_CFixed())//"_"//cn_sedrst_in    
     387!               ENDIF 
     388                CALL iom_init( cr_sedrst_cxt, kdid = numrsr, ld_closedef = .TRUE. ) 
     389            ENDIF 
    356390            CALL iom_get ( numrsr, 'kt', zkt )   ! last time-step of previous run 
    357  
    358391            IF(lwp) THEN 
    359392               WRITE(numsed,*) ' *** Info read in restart : ' 
     
    402435            IF(lwp) WRITE(numsed,*) 'trc_wri : write the TOP restart file (NetCDF) at it= ', kt, ' date= ', ndastp 
    403436            IF(lwp) WRITE(numsed,*) '~~~~~~~' 
     437            IF( lwxios ) CALL iom_init_closedef(cw_sedrst_cxt) 
    404438         ENDIF 
    405439         CALL iom_rstput( kt, nitrst, numrsw, 'kt'     , REAL( kt    , wp) )   ! time-step 
    406440         CALL iom_rstput( kt, nitrst, numrsw, 'ndastp' , REAL( ndastp, wp) )   ! date 
    407          CALL iom_rstput( kt, nitrst, numrsw, 'adatrj' , adatrj            )   ! number of elapsed days since 
    408          !                                                                     ! the begining of the run [s] 
     441         CALL iom_rstput( kt, nitrst, numrsw, 'adatrj' , adatrj )   ! number of elapsed days since 
     442         !                                                                                      ! the begining of the run [s] 
    409443      ENDIF 
    410444 
Note: See TracChangeset for help on using the changeset viewer.