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/OCE/SBC/sbcmod.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/OCE/SBC/sbcmod.F90

    r14219 r14644  
    121121      IF(lwm) WRITE( numond, namsbc ) 
    122122      ! 
    123 #if defined key_mpp_mpi 
     123#if ! defined key_mpi_off 
    124124      ncom_fsbc = nn_fsbc    ! make nn_fsbc available for lib_mpp 
    125125#endif 
     
    164164      !                       !**  check option consistency 
    165165      ! 
    166       IF(lwp) WRITE(numout,*)       !* Single / Multi - executable (NEMO / OPA+SAS) 
     166      IF(lwp) WRITE(numout,*)       !* Single / Multi - executable (NEMO / OCE+SAS) 
    167167      SELECT CASE( nn_components ) 
    168168      CASE( jp_iam_nemo ) 
    169          IF(lwp) WRITE(numout,*) '   ==>>>   NEMO configured as a single executable (i.e. including both OPA and Surface module)' 
    170       CASE( jp_iam_opa  ) 
    171          IF(lwp) WRITE(numout,*) '   ==>>>   Multi executable configuration. Here, OPA component' 
    172          IF( .NOT.lk_oasis )   CALL ctl_stop( 'sbc_init : OPA-SAS coupled via OASIS, but key_oasis3 disabled' ) 
    173          IF( ln_cpl        )   CALL ctl_stop( 'sbc_init : OPA-SAS coupled via OASIS, but ln_cpl = T in OPA'   ) 
    174          IF( ln_mixcpl     )   CALL ctl_stop( 'sbc_init : OPA-SAS coupled via OASIS, but ln_mixcpl = T in OPA' ) 
     169         IF(lwp) WRITE(numout,*) '   ==>>>   NEMO configured as a single executable (i.e. including both OCE and Surface module)' 
     170      CASE( jp_iam_oce  ) 
     171         IF(lwp) WRITE(numout,*) '   ==>>>   Multi executable configuration. Here, OCE component' 
     172         IF( .NOT.lk_oasis )   CALL ctl_stop( 'sbc_init : OCE-SAS coupled via OASIS, but key_oasis3 disabled' ) 
     173         IF( ln_cpl        )   CALL ctl_stop( 'sbc_init : OCE-SAS coupled via OASIS, but ln_cpl = T in OCE'   ) 
     174         IF( ln_mixcpl     )   CALL ctl_stop( 'sbc_init : OCE-SAS coupled via OASIS, but ln_mixcpl = T in OCE' ) 
    175175      CASE( jp_iam_sas  ) 
    176176         IF(lwp) WRITE(numout,*) '   ==>>>   Multi executable configuration. Here, SAS component' 
    177          IF( .NOT.lk_oasis )   CALL ctl_stop( 'sbc_init : OPA-SAS coupled via OASIS, but key_oasis3 disabled' ) 
    178          IF( ln_mixcpl     )   CALL ctl_stop( 'sbc_init : OPA-SAS coupled via OASIS, but ln_mixcpl = T in OPA' ) 
     177         IF( .NOT.lk_oasis )   CALL ctl_stop( 'sbc_init : OCE-SAS coupled via OASIS, but key_oasis3 disabled' ) 
     178         IF( ln_mixcpl     )   CALL ctl_stop( 'sbc_init : OCE-SAS coupled via OASIS, but ln_mixcpl = T in OCE' ) 
    179179      CASE DEFAULT 
    180180         CALL ctl_stop( 'sbc_init : unsupported value for nn_components' ) 
     
    225225      ! 
    226226      IF( nn_ice == 0 ) THEN        !* No sea-ice in the domain : ice fraction is always zero 
    227          IF( nn_components /= jp_iam_opa )   fr_i(:,:) = 0._wp    ! except for OPA in SAS-OPA coupled case 
     227         IF( nn_components /= jp_iam_oce )   fr_i(:,:) = 0._wp    ! except for OCE in SAS-OCE coupled case 
    228228      ENDIF 
    229229      ! 
     
    238238      IF( ln_dm2dc ) THEN           !* daily mean to diurnal cycle 
    239239         !LB:nday_qsr = -1   ! allow initialization at the 1st call 
    240          IF( .NOT.( ln_flx .OR. ln_blk .OR. ln_abl ) .AND. nn_components /= jp_iam_opa )   & 
     240         IF( .NOT.( ln_flx .OR. ln_blk .OR. ln_abl ) .AND. nn_components /= jp_iam_oce )   & 
    241241            &   CALL ctl_stop( 'qsr diurnal cycle from daily values requires flux, bulk or abl formulation' ) 
    242242      ENDIF 
     
    245245      ! 
    246246      ll_purecpl  = ln_cpl .AND. .NOT.ln_mixcpl 
    247       ll_opa      = nn_components == jp_iam_opa 
     247      ll_opa      = nn_components == jp_iam_oce 
    248248      ll_not_nemo = nn_components /= jp_iam_nemo 
    249249      icpt = 0 
     
    267267         CASE( jp_purecpl )   ;   WRITE(numout,*) '   ==>>>   pure coupled formulation' 
    268268!!gm abusive use of jp_none ??   ===>>> need to be check and changed by adding a jp_sas parameter 
    269          CASE( jp_none    )   ;   WRITE(numout,*) '   ==>>>   OPA coupled to SAS via oasis' 
     269         CASE( jp_none    )   ;   WRITE(numout,*) '   ==>>>   OCE coupled to SAS via oasis' 
    270270            IF( ln_mixcpl )       WRITE(numout,*) '               + forced-coupled mixed formulation' 
    271271         END SELECT 
     
    277277      IF( lk_oasis )   CALL sbc_cpl_init( nn_ice )   ! Must be done before: (1) first time step 
    278278      !                                              !                      (2) the use of nn_fsbc 
    279       !     nn_fsbc initialization if OPA-SAS coupling via OASIS 
     279      !     nn_fsbc initialization if OCE-SAS coupling via OASIS 
    280280      !     SAS time-step has to be declared in OASIS (mandatory) -> nn_fsbc has to be modified accordingly 
    281281      IF( nn_components /= jp_iam_nemo ) THEN 
    282          IF( nn_components == jp_iam_opa )   nn_fsbc = cpl_freq('O_SFLX') / NINT(rn_Dt) 
     282         IF( nn_components == jp_iam_oce )   nn_fsbc = cpl_freq('O_SFLX') / NINT(rn_Dt) 
    283283         IF( nn_components == jp_iam_sas )   nn_fsbc = cpl_freq('I_SFLX') / NINT(rn_Dt) 
    284284         ! 
    285285         IF(lwp)THEN 
    286286            WRITE(numout,*) 
    287             WRITE(numout,*)"   OPA-SAS coupled via OASIS : nn_fsbc re-defined from OASIS namcouple ", nn_fsbc 
     287            WRITE(numout,*)"   OCE-SAS coupled via OASIS : nn_fsbc re-defined from OASIS namcouple ", nn_fsbc 
    288288            WRITE(numout,*) 
    289289         ENDIF 
     
    405405      ! 
    406406      ll_sas = nn_components == jp_iam_sas               ! component flags 
    407       ll_opa = nn_components == jp_iam_opa 
     407      ll_opa = nn_components == jp_iam_oce 
    408408      ! 
    409409      IF( .NOT.ll_sas )   CALL sbc_ssm ( kt, Kbb, Kmm )  ! mean ocean sea surface variables (sst_m, sss_m, ssu_m, ssv_m) 
     
    417417      CASE( jp_flx     )   ;   CALL sbc_flx       ( kt )                             ! flux formulation 
    418418      CASE( jp_blk     ) 
    419          IF( ll_sas    )       CALL sbc_cpl_rcv   ( kt, nn_fsbc, nn_ice, Kbb, Kmm )   ! OPA-SAS coupling: SAS receiving fields from OPA 
     419         IF( ll_sas    )       CALL sbc_cpl_rcv   ( kt, nn_fsbc, nn_ice, Kbb, Kmm )   ! OCE-SAS coupling: SAS receiving fields from OCE 
    420420!!!!!!!!!!! ATTENTION:ln_wave is not only used for oasis coupling !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 
    421421         IF( ln_wave )   THEN 
    422              IF ( lk_oasis )  CALL sbc_cpl_rcv ( kt, nn_fsbc, nn_ice, Kbb, Kmm )   ! OPA-wave coupling 
     422             IF ( lk_oasis )  CALL sbc_cpl_rcv ( kt, nn_fsbc, nn_ice, Kbb, Kmm )   ! OCE-wave coupling 
    423423             CALL sbc_wave ( kt, Kmm ) 
    424424         ENDIF 
     
    426426                               ! 
    427427      CASE( jp_abl     ) 
    428          IF( ll_sas    )       CALL sbc_cpl_rcv   ( kt, nn_fsbc, nn_ice, Kbb, Kmm )   ! OPA-SAS coupling: SAS receiving fields from OPA 
     428         IF( ll_sas    )       CALL sbc_cpl_rcv   ( kt, nn_fsbc, nn_ice, Kbb, Kmm )   ! OCE-SAS coupling: SAS receiving fields from OCE 
    429429                               CALL sbc_abl       ( kt )                    ! ABL  formulation for the ocean 
    430430                               ! 
    431431      CASE( jp_purecpl )   ;   CALL sbc_cpl_rcv   ( kt, nn_fsbc, nn_ice, Kbb, Kmm )   ! pure coupled formulation 
    432432      CASE( jp_none    ) 
    433          IF( ll_opa    )       CALL sbc_cpl_rcv   ( kt, nn_fsbc, nn_ice, Kbb, Kmm )  ! OPA-SAS coupling: OPA receiving fields from SAS 
     433         IF( ll_opa    )       CALL sbc_cpl_rcv   ( kt, nn_fsbc, nn_ice, Kbb, Kmm )  ! OCE-SAS coupling: OCE receiving fields from SAS 
    434434      END SELECT 
    435435      ! 
Note: See TracChangeset for help on using the changeset viewer.