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 13443 for NEMO/branches/UKMO/NEMO_4.0.1_NGMS_couple_stage2/src/OCE/SBC/sbcmod.F90 – NEMO

Ignore:
Timestamp:
2020-08-28T17:01:04+02:00 (4 years ago)
Author:
frrh
Message:

Commit changes which allow first working 2 way coupling exchanges between GO8
and LFRic aquaplanet.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/branches/UKMO/NEMO_4.0.1_NGMS_couple_stage2/src/OCE/SBC/sbcmod.F90

    r11914 r13443  
    9898         &             ln_rnf   , nn_fwb   , ln_ssr   , ln_isf    , ln_apr_dyn ,     & 
    9999         &             ln_wave  , ln_cdgw  , ln_sdw   , ln_tauwoc  , ln_stcor   ,     & 
    100          &             ln_tauw  , nn_lsm, nn_sdrift 
     100         &             ln_tauw  , nn_lsm, nn_sdrift, ln_couple_test 
    101101      !!---------------------------------------------------------------------- 
    102102      ! 
     
    139139         WRITE(numout,*) '      Type of coupling (Ocean/Ice/Atmosphere) : ' 
    140140         WRITE(numout,*) '         ocean-atmosphere coupled formulation       ln_cpl        = ', ln_cpl 
     141         WRITE(numout,*) '         ocean-atmos test coupling ONLY             ln_couple_test   = ', ln_couple_test 
    141142         WRITE(numout,*) '         mixed forced-coupled     formulation       ln_mixcpl     = ', ln_mixcpl 
    142143!!gm  lk_oasis is controlled by key_oasis3  ===>>>  It shoud be removed from the namelist  
     
    208209      END SELECT 
    209210      !                             !* coupled options 
    210       IF( ln_cpl ) THEN 
     211      IF( ln_cpl .OR. ln_couple_test ) THEN 
    211212         IF( .NOT. lk_oasis )   CALL ctl_stop( 'sbc_init : coupled mode with an atmosphere model (ln_cpl=T)',   & 
    212213            &                                  '           required to defined key_oasis3' ) 
     
    275276      IF( icpt /= 1 )    CALL ctl_stop( 'sbc_init : choose ONE and only ONE sbc option' ) 
    276277      ! 
    277       IF(lwp) THEN                     !- print the choice of surface flux formulation 
     278!RSRH      IF(lwp) THEN                     !- print the choice of surface flux formulation 
    278279         WRITE(numout,*) 
    279280         SELECT CASE( nsbc ) 
     
    287288         END SELECT 
    288289         IF( ll_not_nemo  )       WRITE(numout,*) '               + OASIS coupled SAS' 
    289       ENDIF 
     290!RSRH      ENDIF 
    290291      ! 
    291292      !                             !* OASIS initialization 
     
    421422      !                                            !==  sbc formulation  ==! 
    422423      !                                                    
     424WRITE(numout,*) "RSRH nsbc setting=", nsbc ;flush(numout) 
     425       
     426 
     427 
    423428      SELECT CASE( nsbc )                                ! Compute ocean surface boundary condition 
    424429      !                                                  ! (i.e. utau,vtau, qns, qsr, emp, sfx) 
     
    432437      CASE( jp_none    ) 
    433438         IF( ll_opa    )       CALL sbc_cpl_rcv   ( kt, nn_fsbc, nn_ice )   ! OPA-SAS coupling: OPA receiving fields from SAS 
     439 
    434440      END SELECT 
    435441      ! 
    436442      IF( ln_mixcpl )          CALL sbc_cpl_rcv   ( kt, nn_fsbc, nn_ice )   ! forced-coupled mixed formulation after forcing 
     443 
     444      ! RSRH for test/dev only   
     445      IF( ln_couple_test )      CALL sbc_cpl_rcv   ( kt, nn_fsbc, nn_ice )   ! Purely for testing/development of 
     446                                                                             ! coupled models if none of the above 
     447                                                                             ! cases are true. In this case we are likely 
     448                                                                             ! be running a forced configuration and 
     449                                                                             ! simply exchanging dummy fields which 
     450                                                                             ! have no bearing on model evolution.          
    437451      ! 
    438452      IF ( ln_wave .AND. (ln_tauwoc .OR. ln_tauw) ) CALL sbc_wstress( )      ! Wind stress provided by waves  
Note: See TracChangeset for help on using the changeset viewer.