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

Ignore:
Timestamp:
2018-05-29T16:37:04+02:00 (6 years ago)
Author:
dancopsey
Message:

Merge in r8183 version of this branch (dev_r8183_GC_couple_pkg [8730:8734])

File:
1 edited

Legend:

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

    r9677 r9679  
    8686   USE lbcnfd  , ONLY : isendto, nsndto, nfsloop, nfeloop   ! Setup of north fold exchanges  
    8787   USE lib_fortran    ! Fortran utilities (allows no signed zero when 'key_nosignedzero' defined) 
     88   USE sbccpl  
    8889#if defined key_iomput 
    8990   USE xios           ! xIOserver 
     
    185186         ! 
    186187         DO WHILE( istp <= nitend .AND. nstop == 0 ) 
    187             CALL stp_diurnal( istp )   ! time step only the diurnal SST  
     188            IF ( .NOT. ln_diurnal_only ) THEN  
     189               IF (lk_oasis) CALL sbc_cpl_snd( istp )  ! Coupling to atmos 
     190               CALL stp( istp )                 ! standard time stepping  
     191               ! We don't couple on the final timestep because 
     192               ! our restart file has already been written 
     193               ! and contains all the necessary data for a 
     194               ! restart. sbc_cpl_snd could be called here 
     195               ! but it would require 
     196               ! a) A test to ensure it was not performed 
     197               !    on the very last time-step 
     198               ! b) the presence of another call to 
     199               !    sbc_cpl_snd call prior to the main DO loop 
     200               ! This solution produces identical results 
     201               ! with fewer lines of code.  
     202            ELSE 
     203               CALL stp_diurnal( istp )   ! time step only the diurnal SST  
     204            ENDIF 
    188205            istp = istp + 1 
    189206         END DO 
     
    284301      IF( Agrif_Root() ) THEN 
    285302         IF( lk_oasis ) THEN 
    286             CALL cpl_init( "oceanx", ilocal_comm )                               ! nemo local communicator given by oasis 
     303            CALL cpl_init( "toyoce", ilocal_comm )                     ! nemo local communicator given by oasis 
    287304            CALL xios_initialize( "not used"       ,local_comm= ilocal_comm )    ! send nemo communicator to xios 
    288305         ELSE 
     
    295312      IF( lk_oasis ) THEN 
    296313         IF( Agrif_Root() ) THEN 
    297             CALL cpl_init( "oceanx", ilocal_comm )          ! nemo local communicator given by oasis 
     314            CALL cpl_init( "toyoce", ilocal_comm )                      ! nemo local communicator given by oasis 
    298315         ENDIF 
    299316         ! Nodes selection (control print return in cltxt) 
     
    445462      ! 
    446463      IF(lwp) WRITE(numout,cform_aaa)           ! Flag AAAAAAA 
     464       
     465      IF (nstop > 0) THEN 
     466        CALL CTL_STOP('STOP','Critical errors in NEMO initialisation') 
     467      END IF 
     468       
    447469      ! 
    448470      IF( ln_timing    )   CALL timing_stop( 'nemo_init') 
Note: See TracChangeset for help on using the changeset viewer.