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 12465 for NEMO/branches/UKMO/r12083_coupling_sequence/src/OCE/nemogcm.F90 – NEMO

Ignore:
Timestamp:
2020-02-26T10:27:04+01:00 (4 years ago)
Author:
jcastill
Message:

Changes as in the original branch but updated to vn4.1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/branches/UKMO/r12083_coupling_sequence/src/OCE/nemogcm.F90

    r11715 r12465  
    8787   USE lbcnfd  , ONLY : isendto, nsndto, nfsloop, nfeloop   ! Setup of north fold exchanges  
    8888   USE lib_fortran    ! Fortran utilities (allows no signed zero when 'key_nosignedzero' defined) 
     89   USE sbccpl 
    8990#if defined key_iomput 
    9091   USE xios           ! xIOserver 
     
    199200            ENDIF 
    200201             
     202            IF (lk_oasis) CALL sbc_cpl_snd( istp )  ! Coupling to atmos 
    201203            CALL stp        ( istp )  
     204            ! We don't couple on the final timestep because   
     205            ! our restart file has already been written   
     206            ! and contains all the necessary data for a   
     207            ! restart. sbc_cpl_snd could be called here   
     208            ! but it would require   
     209            ! a) A test to ensure it was not performed   
     210            !    on the very last time-step   
     211            ! b) the presence of another call to   
     212            !    sbc_cpl_snd call prior to the main DO loop   
     213            ! This solution produces identical results   
     214            ! with fewer lines of code. 
    202215            istp = istp + 1 
    203216 
     
    279292      IF( Agrif_Root() ) THEN 
    280293         IF( lk_oasis ) THEN 
    281             CALL cpl_init( "oceanx", ilocal_comm )                               ! nemo local communicator given by oasis 
     294            CALL cpl_init( "toyoce", ilocal_comm )                               ! nemo local communicator given by oasis 
    282295            CALL xios_initialize( "not used"       , local_comm =ilocal_comm )   ! send nemo communicator to xios 
    283296         ELSE 
     
    289302      IF( lk_oasis ) THEN 
    290303         IF( Agrif_Root() ) THEN 
    291             CALL cpl_init( "oceanx", ilocal_comm )          ! nemo local communicator given by oasis 
     304            CALL cpl_init( "toyoce", ilocal_comm )          ! nemo local communicator given by oasis 
    292305         ENDIF 
    293306         CALL mpp_start( ilocal_comm ) 
     
    493506      ! 
    494507      IF(lwp) WRITE(numout,cform_aaa)           ! Flag AAAAAAA 
     508      ! 
     509      IF (nstop > 0) THEN   
     510        CALL CTL_STOP('STOP','Critical errors in NEMO initialisation')   
     511      END IF 
    495512      ! 
    496513      IF( ln_timing    )   CALL timing_stop( 'nemo_init') 
Note: See TracChangeset for help on using the changeset viewer.