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 14644 for NEMO/branches/2020/dev_r14116_HPC-04_mcastril_Mixed_Precision_implementation_final/src/OFF/nemogcm.F90 – NEMO

Ignore:
Timestamp:
2021-03-26T15:33:49+01:00 (3 years ago)
Author:
sparonuz
Message:

Merge trunk -r14642:HEAD

Location:
NEMO/branches/2020/dev_r14116_HPC-04_mcastril_Mixed_Precision_implementation_final
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • NEMO/branches/2020/dev_r14116_HPC-04_mcastril_Mixed_Precision_implementation_final

    • Property svn:externals
      •  

        old new  
        99 
        1010# SETTE 
        11 ^/utils/CI/sette_wave@13990         sette 
         11^/utils/CI/sette@14244        sette 
  • NEMO/branches/2020/dev_r14116_HPC-04_mcastril_Mixed_Precision_implementation_final/src/OFF/nemogcm.F90

    r14053 r14644  
    5757   USE mppini         ! shared/distributed memory setting (mpp_init routine) 
    5858   USE lib_mpp        ! distributed memory computing 
    59 #if defined key_iomput 
     59#if defined key_xios 
    6060   USE xios           ! xIOserver 
    6161#endif  
     
    7777 
    7878   CHARACTER (len=64) ::   cform_aaa="( /, 'AAAAAAAA', / ) "   ! flag for output listing 
    79 #if defined key_mpp_mpi 
     79#if ! defined key_mpi_off 
    8080   ! need MPI_Wtime 
    8181   INCLUDE 'mpif.h' 
     
    138138         IF( istp /= nit000 )   CALL day        ( istp )         ! Calendar (day was already called at nit000 in day_init) 
    139139                                CALL iom_setkt  ( istp - nit000 + 1, cxios_context )   ! say to iom that we are at time step kstp 
    140 #if defined key_sed_off 
    141                                 CALL dta_dyn_sed( istp,      Nnn      )       ! Interpolation of the dynamical fields 
    142 #else 
     140#if ! defined key_sed_off 
    143141                                CALL dta_dyn    ( istp, Nbb, Nnn, Naa )       ! Interpolation of the dynamical fields 
    144 #endif 
    145 #if ! defined key_sed_off 
    146142         IF( .NOT.ln_linssh ) THEN 
    147143                                CALL dta_dyn_atf( istp, Nbb, Nnn, Naa )       ! time filter of sea  surface height and vertical scale factors 
     
    151147         ENDIF 
    152148                                CALL trc_stp    ( istp, Nbb, Nnn, Nrhs, Naa ) ! time-stepping 
    153 # if defined key_qco 
    154                                 !r3t(:,:,Nnn) = r3t_f(:,:)                     ! update ssh to h0 ratio 
    155                                 !r3u(:,:,Nnn) = r3u_f(:,:) 
    156                                 !r3v(:,:,Nnn) = r3v_f(:,:) 
    157 # endif 
    158 #endif 
    159149         ! Swap time levels 
    160150         Nrhs = Nbb 
    161          Nbb = Nnn 
    162          Nnn = Naa 
    163          Naa = Nrhs 
     151         Nbb  = Nnn 
     152         Nnn  = Naa 
     153         Naa  = Nrhs 
    164154         ! 
    165155#if ! defined key_qco 
    166 # if ! defined key_sed_off 
    167156         IF( .NOT.ln_linssh )   CALL dta_dyn_sf_interp( istp, Nnn )  ! calculate now grid parameters 
    168 # endif 
    169 #endif          
     157#endif   
     158 
     159#else 
     160                                CALL dta_dyn_sed( istp,      Nnn      )       ! Interpolation of the dynamical fields 
     161 
     162#endif 
    170163         CALL stp_ctl    ( istp )             ! Time loop: control and print 
    171164         istp = istp + 1 
     
    175168      END DO 
    176169      ! 
    177 #if defined key_iomput 
     170#if defined key_xios 
    178171      CALL iom_context_finalize( cxios_context ) ! needed for XIOS+AGRIF 
    179172#endif 
     
    194187      CALL nemo_closefile 
    195188      ! 
    196 #if defined key_iomput 
     189#if defined key_xios 
    197190                     CALL xios_finalize   ! end mpp communications with xios 
    198191#else 
     
    230223      !                             !-------------------------------------------------! 
    231224      ! 
    232 #if defined key_iomput 
     225#if defined key_xios 
    233226      CALL xios_initialize( "for_xios_mpi_id", return_comm=ilocal_comm )   ! nemo local communicator given by xios 
    234227      CALL mpp_start( ilocal_comm ) 
     
    316309      ! 
    317310      IF( ln_read_cfg ) THEN              ! Read sizes in domain configuration file 
    318          CALL domain_cfg ( cn_cfg, nn_cfg, Ni0glo, Nj0glo, jpkglo, jperio ) 
     311         CALL domain_cfg ( cn_cfg, nn_cfg, Ni0glo, Nj0glo, jpkglo, l_Iperio, l_Jperio, l_NFold, c_NFtype ) 
    319312      ELSE                                ! user-defined namelist 
    320          CALL usr_def_nam( cn_cfg, nn_cfg, Ni0glo, Nj0glo, jpkglo, jperio ) 
     313         CALL usr_def_nam( cn_cfg, nn_cfg, Ni0glo, Nj0glo, jpkglo, l_Iperio, l_Jperio, l_NFold, c_NFtype ) 
    321314      ENDIF 
    322315      ! 
     
    456449      !!                     ***  ROUTINE nemo_alloc  *** 
    457450      !! 
    458       !! ** Purpose :   Allocate all the dynamic arrays of the OPA modules 
     451      !! ** Purpose :   Allocate all the dynamic arrays of the OCE modules 
    459452      !! 
    460453      !! ** Method  : 
Note: See TracChangeset for help on using the changeset viewer.