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 8280 for branches/UKMO/dev_r5518_GO6_package/NEMOGCM/NEMO/OPA_SRC/nemogcm.F90 – NEMO

Ignore:
Timestamp:
2017-07-05T10:28:51+02:00 (7 years ago)
Author:
timgraham
Message:

331: Merge of MEDUSA stable branch and HadGEM3 coupling branches into GO6 package branch.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/UKMO/dev_r5518_GO6_package/NEMOGCM/NEMO/OPA_SRC/nemogcm.F90

    r7563 r8280  
    6868   USE icbini          ! handle bergs, initialisation 
    6969   USE icbstp          ! handle bergs, calving, themodynamics and transport 
     70   USE sbccpl  
    7071   USE cpl_oasis3      ! OASIS3 coupling 
    7172   USE c1d             ! 1D configuration 
     
    7475#if defined key_top 
    7576   USE trcini          ! passive tracer initialisation 
     77   USE trc, ONLY: numstr  ! tracer stats unit number 
    7678#endif 
    7779   USE lib_mpp         ! distributed memory computing 
     
    169171            CALL stp                         ! AGRIF: time stepping 
    170172#else 
    171             CALL stp( istp )                 ! standard time stepping 
     173            IF (lk_oasis) CALL sbc_cpl_snd( istp )  ! Coupling to atmos 
     174       CALL stp( istp ) 
     175            ! We don't couple on the final timestep because 
     176            ! our restart file has already been written 
     177            ! and contains all the necessary data for a 
     178            ! restart. sbc_cpl_snd could be called here 
     179            ! but it would require 
     180            ! a) A test to ensure it was not performed 
     181            !    on the very last time-step 
     182            ! b) the presence of another call to 
     183            !    sbc_cpl_snd call prior to the main DO loop 
     184            ! This solution produces identical results 
     185            ! with fewer lines of code.  
    172186#endif 
    173187            istp = istp + 1 
     
    283297      IF( Agrif_Root() ) THEN 
    284298         IF( lk_oasis ) THEN 
    285             CALL cpl_init( "oceanx", ilocal_comm )                     ! nemo local communicator given by oasis 
     299            CALL cpl_init( "toyoce", ilocal_comm )                     ! nemo local communicator given by oasis 
    286300            CALL xios_initialize( "not used",local_comm=ilocal_comm )    ! send nemo communicator to xios 
    287301         ELSE 
     
    294308      IF( lk_oasis ) THEN 
    295309         IF( Agrif_Root() ) THEN 
    296             CALL cpl_init( "oceanx", ilocal_comm )                      ! nemo local communicator given by oasis 
     310            CALL cpl_init( "toyoce", ilocal_comm )                      ! nemo local communicator given by oasis 
    297311         ENDIF 
    298312         ! Nodes selection (control print return in cltxt) 
     
    474488      IF( lk_asminc     )   CALL asm_inc_init   ! Initialize assimilation increments 
    475489      IF(lwp) WRITE(numout,*) 'Euler time step switch is ', neuler 
     490       
     491      IF (nstop > 0) THEN 
     492        CALL CTL_STOP('STOP','Critical errors in NEMO initialisation') 
     493      END IF 
     494 
    476495      ! 
    477496   END SUBROUTINE nemo_init 
     
    609628      IF( numdct_heat     /= -1 )   CLOSE( numdct_heat     )   ! heat transports 
    610629      IF( numdct_salt     /= -1 )   CLOSE( numdct_salt     )   ! salt transports 
    611  
     630#if defined key_top 
     631      IF( numstr          /= -1 )   CLOSE( numstr          )   ! tracer statistics  
     632#endif 
    612633      ! 
    613634      numout = 6                                     ! redefine numout in case it is used after this point... 
Note: See TracChangeset for help on using the changeset viewer.