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

Ignore:
Timestamp:
2015-07-08T17:13:59+02:00 (9 years ago)
Author:
davestorkey
Message:

Upgrade UKMO/dev_r5107_hadgem3_mct branch to trunk revision 5518
( = branching point for NEMO 3.6_stable).

File:
1 edited

Legend:

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

    r5279 r5568  
    8282   USE crsini          ! initialise grid coarsening utility 
    8383   USE lbcnfd, ONLY: isendto, nsndto, nfsloop, nfeloop ! Setup of north fold exchanges  
     84   USE sbc_oce, ONLY: lk_oasis 
     85   USE stopar 
     86   USE stopts 
    8487 
    8588   IMPLICIT NONE 
     
    195198#if defined key_iomput 
    196199      CALL xios_finalize                ! end mpp communications with xios 
    197       IF( lk_cpl ) CALL cpl_finalize    ! end coupling and mpp communications with OASIS 
     200      IF( lk_oasis ) CALL cpl_finalize    ! end coupling and mpp communications with OASIS 
    198201#else 
    199       IF( lk_cpl ) THEN  
     202      IF( lk_oasis ) THEN  
    200203         CALL cpl_finalize              ! end coupling and mpp communications with OASIS 
    201204      ELSE 
     
    222225         &             nn_bench, nn_timing 
    223226      NAMELIST/namcfg/ cp_cfg, cp_cfz, jp_cfg, jpidta, jpjdta, jpkdta, jpiglo, jpjglo, & 
    224          &             jpizoom, jpjzoom, jperio 
     227         &             jpizoom, jpjzoom, jperio, ln_use_jattr 
    225228      !!---------------------------------------------------------------------- 
    226229      ! 
    227230      cltxt = '' 
     231      cxios_context = 'nemo' 
    228232      ! 
    229233      !                             ! Open reference namelist and configuration namelist files 
     
    261265      nperio  = 0 
    262266      jperio  = 0 
     267      ln_use_jattr = .false. 
    263268   ENDIF 
    264269#endif 
     
    271276#if defined key_iomput 
    272277      IF( Agrif_Root() ) THEN 
    273          IF( lk_cpl ) THEN 
    274             CALL cpl_init( ilocal_comm )                               ! nemo local communicator given by oasis 
    275             CALL xios_initialize( "oceanx",local_comm=ilocal_comm )    ! send nemo communicator to xios 
     278         IF( lk_oasis ) THEN 
     279            CALL cpl_init( "oceanx", ilocal_comm )                     ! nemo local communicator given by oasis 
     280            CALL xios_initialize( "not used",local_comm=ilocal_comm )    ! send nemo communicator to xios 
    276281         ELSE 
    277             CALL  xios_initialize( "nemo",return_comm=ilocal_comm )    ! nemo local communicator given by xios 
     282            CALL  xios_initialize( "for_xios_mpi_id",return_comm=ilocal_comm )    ! nemo local communicator given by xios 
    278283         ENDIF 
    279284      ENDIF 
    280       narea = mynode( cltxt, numnam_ref, numnam_cfg, numond , nstop, ilocal_comm )   ! Nodes selection 
     285      ! Nodes selection (control print return in cltxt) 
     286      narea = mynode( cltxt, 'output.namelist.dyn', numnam_ref, numnam_cfg, numond , nstop, ilocal_comm ) 
    281287#else 
    282       IF( lk_cpl ) THEN 
     288      IF( lk_oasis ) THEN 
    283289         IF( Agrif_Root() ) THEN 
    284             CALL cpl_init( ilocal_comm )                       ! nemo local communicator given by oasis 
     290            CALL cpl_init( "oceanx", ilocal_comm )                      ! nemo local communicator given by oasis 
    285291         ENDIF 
    286          narea = mynode( cltxt, numnam_ref, numnam_cfg, numond , nstop, ilocal_comm )   ! Nodes selection (control print return in cltxt) 
     292         ! Nodes selection (control print return in cltxt) 
     293         narea = mynode( cltxt, 'output.namelist.dyn', numnam_ref, numnam_cfg, numond , nstop, ilocal_comm ) 
    287294      ELSE 
    288295         ilocal_comm = 0 
    289          narea = mynode( cltxt, numnam_ref, numnam_cfg, numond , nstop )                ! Nodes selection (control print return in cltxt) 
     296         ! Nodes selection (control print return in cltxt) 
     297         narea = mynode( cltxt, 'output.namelist.dyn', numnam_ref, numnam_cfg, numond , nstop ) 
    290298      ENDIF 
    291299#endif 
     
    341349         WRITE(numout,*) '                       NEMO team' 
    342350         WRITE(numout,*) '            Ocean General Circulation Model' 
    343          WRITE(numout,*) '                  version 3.4  (2011) ' 
     351         WRITE(numout,*) '                  version 3.6  (2015) ' 
    344352         WRITE(numout,*) 
    345353         WRITE(numout,*) 
     
    383391      IF( lk_tide       )   CALL    tide_init( nit000 )    ! Initialisation of the tidal harmonics 
    384392 
     393                            CALL     sbc_init   ! Forcings : surface module (clem: moved here for bdy purpose) 
     394 
    385395      IF( lk_bdy        )   CALL     bdy_init   ! Open boundaries initialisation 
    386396      IF( lk_bdy        )   CALL bdy_dta_init   ! Open boundaries initialisation of external data arrays 
     
    389399 
    390400                            CALL dyn_nept_init  ! simplified form of Neptune effect 
    391  
    392401      !      
    393402      IF( ln_crs        )   CALL     crs_init   ! Domain initialization of coarsened grid 
    394403      ! 
    395404                                ! Ocean physics 
    396                             CALL     sbc_init   ! Forcings : surface module 
    397405      !                                         ! Vertical physics 
    398406                            CALL     zdf_init      ! namelist read 
     
    431439      IF( nn_cla == 1 .AND. cp_cfg == 'orca' .AND. jp_cfg == 2 )   CALL cla_init       ! Cross Land Advection 
    432440                            CALL icb_init( rdt, nit000)   ! initialise icebergs instance 
     441                            CALL sto_par_init   ! Stochastic parametrization 
     442      IF( ln_sto_eos     )  CALL sto_pts_init   ! RRandom T/S fluctuations 
    433443      
    434444#if defined key_top 
     
    506516         WRITE(numout,*) '      left bottom j index of the zoom (in data domain) jpizoom = ', jpjzoom 
    507517         WRITE(numout,*) '      lateral cond. type (between 0 and 6) jperio = ', jperio    
     518         WRITE(numout,*) '      use file attribute if exists as i/p j-start ln_use_jattr = ', ln_use_jattr 
    508519      ENDIF 
    509520      !                             ! Parameter control 
Note: See TracChangeset for help on using the changeset viewer.