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 6252 – NEMO

Changeset 6252


Ignore:
Timestamp:
2016-01-14T13:27:20+01:00 (8 years ago)
Author:
frrh
Message:

Merge branches/UKMO/dev_r5107_hadgem3_cplseq@5646

Again this was not at all straightforward because it reported
conflicts in:
DOC/TexFiles/Chapters/Chap_STO.tex
DOC/TexFiles/Namelist/namcfg_orca1
and
DOC/TexFiles/Namelist/namsbc_isf

I dont care about those for the purposes of this so I've run
fcm conflicts and in each case selected (y) to "accept the local delete"!

Location:
branches/UKMO/nemo_v3_6_STABLE_pkg/NEMOGCM
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • branches/UKMO/nemo_v3_6_STABLE_pkg/NEMOGCM/CONFIG/makenemo

    r6251 r6252  
    7575# ========== 
    7676# 
    77 # $Id$ 
     77# $Id: makenemo 5092 2015-02-17 17:30:01Z nicolasmartin $ 
    7878# 
    7979# 
  • branches/UKMO/nemo_v3_6_STABLE_pkg/NEMOGCM/NEMO/OPA_SRC/SBC/sbccpl.F90

    r6251 r6252  
    194194      ALLOCATE( a_i(jpi,jpj,1) , STAT=ierr(2) )  ! used in sbcice_if.F90 (done here as there is no sbc_ice_if_init) 
    195195#endif 
    196       ALLOCATE( xcplmask(jpi,jpj,0:nn_cplmodel) , STAT=ierr(3) ) 
     196      !ALLOCATE( xcplmask(jpi,jpj,0:nn_cplmodel) , STAT=ierr(3) ) 
     197      ! Hardwire only two models as nn_cplmodel has not been read in 
     198      ! from the namelist yet. 
     199      ALLOCATE( xcplmask(jpi,jpj,0:2) , STAT=ierr(3) )    
    197200      ! 
    198201      sbc_cpl_alloc = MAXVAL( ierr ) 
     
    293296 
    294297      !                                   ! allocate sbccpl arrays 
    295       IF( sbc_cpl_alloc() /= 0 )   CALL ctl_stop( 'STOP', 'sbc_cpl_alloc : unable to allocate arrays' ) 
     298      !IF( sbc_cpl_alloc() /= 0 )   CALL ctl_stop( 'STOP', 'sbc_cpl_alloc : unable to allocate arrays' ) 
    296299      
    297300      ! ================================ ! 
  • branches/UKMO/nemo_v3_6_STABLE_pkg/NEMOGCM/NEMO/OPA_SRC/SBC/sbcice_cice.F90

    r6250 r6252  
    302302      CALL wrk_dealloc( jpi,jpj, ztmp1, ztmp2 ) 
    303303      ! 
     304      ! In coupled mode get extra fields from CICE for passing back to atmosphere 
     305  
     306      IF ( ksbc == jp_purecpl ) CALL cice_sbc_hadgam(nit000) 
     307      !  
    304308      IF( nn_timing == 1 )  CALL timing_stop('cice_sbc_init') 
    305309      ! 
     
    734738      IF( nn_timing == 1 )  CALL timing_start('cice_sbc_hadgam') 
    735739      ! 
    736       IF( kt == nit000 )  THEN 
    737          IF(lwp) WRITE(numout,*)'cice_sbc_hadgam' 
    738          IF( sbc_cpl_alloc() /= 0 )   CALL ctl_stop( 'STOP', 'sbc_cpl_alloc : unable to allocate arrays' ) 
    739       ENDIF 
    740  
    741740      !                                         ! =========================== ! 
    742741      !                                         !   Prepare Coupling fields   ! 
  • branches/UKMO/nemo_v3_6_STABLE_pkg/NEMOGCM/NEMO/OPA_SRC/SBC/sbcmod.F90

    r5783 r6252  
    266266      ENDIF 
    267267      ! 
    268       IF( lk_oasis )   CALL sbc_cpl_init (nn_ice)   ! OASIS initialisation. must be done before: (1) first time step 
    269       !                                                     !                                            (2) the use of nn_fsbc 
     268      IF( lk_oasis ) THEN 
     269         IF( sbc_cpl_alloc() /= 0 )   CALL ctl_stop( 'STOP', 'sbc_cpl_alloc : unable to allocate arrays' )          
     270         CALL sbc_cpl_init (nn_ice)   ! OASIS initialisation. must be done before: (1) first time step 
     271                                      !                                            (2) the use of nn_fsbc 
     272      ENDIF 
    270273 
    271274!     nn_fsbc initialization if OPA-SAS coupling via OASIS 
  • branches/UKMO/nemo_v3_6_STABLE_pkg/NEMOGCM/NEMO/OPA_SRC/nemogcm.F90

    r5781 r6252  
    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 
     
    165166            CALL Agrif_Step( stp )           ! AGRIF: time stepping 
    166167#else 
    167             CALL stp( istp )                 ! standard time stepping 
     168            IF (lk_oasis) CALL sbc_cpl_snd( istp )  ! Coupling to atmos 
     169       CALL stp( istp ) 
     170            ! We don't couple on the final timestep because 
     171            ! our restart file has already been written 
     172            ! and contains all the necessary data for a 
     173            ! restart. sbc_cpl_snd could be called here 
     174            ! but it would require 
     175            ! a) A test to ensure it was not performed 
     176            !    on the very last time-step 
     177            ! b) the presence of another call to 
     178            !    sbc_cpl_snd call prior to the main DO loop 
     179            ! This solution produces identical results 
     180            ! with fewer lines of code.  
    168181#endif 
    169182            istp = istp + 1 
  • branches/UKMO/nemo_v3_6_STABLE_pkg/NEMOGCM/NEMO/OPA_SRC/step.F90

    r5781 r6252  
    357357      ! Coupled mode 
    358358      !<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 
    359       IF( lk_oasis         )   CALL sbc_cpl_snd( kstp )     ! coupled mode : field exchanges 
     359      !IF( lk_oasis         )   CALL sbc_cpl_snd( kstp )     ! coupled mode : field exchanges 
    360360      ! 
    361361#if defined key_iomput 
Note: See TracChangeset for help on using the changeset viewer.