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

Ignore:
Timestamp:
2015-07-09T12:14:37+02:00 (9 years ago)
Author:
davestorkey
Message:

Update UKMO/dev_r5107_hadgem3_cplseq branch to trunk revision 5518
(= branching point of NEMO 3.6_stable).

File:
1 edited

Legend:

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

    r5481 r5572  
    8383   USE crsini          ! initialise grid coarsening utility 
    8484   USE lbcnfd, ONLY: isendto, nsndto, nfsloop, nfeloop ! Setup of north fold exchanges  
     85   USE sbc_oce, ONLY: lk_oasis 
     86   USE stopar 
     87   USE stopts 
    8588 
    8689   IMPLICIT NONE 
     
    208211#if defined key_iomput 
    209212      CALL xios_finalize                ! end mpp communications with xios 
    210       IF( lk_cpl ) CALL cpl_finalize    ! end coupling and mpp communications with OASIS 
     213      IF( lk_oasis ) CALL cpl_finalize    ! end coupling and mpp communications with OASIS 
    211214#else 
    212       IF( lk_cpl ) THEN  
     215      IF( lk_oasis ) THEN  
    213216         CALL cpl_finalize              ! end coupling and mpp communications with OASIS 
    214217      ELSE 
     
    235238         &             nn_bench, nn_timing 
    236239      NAMELIST/namcfg/ cp_cfg, cp_cfz, jp_cfg, jpidta, jpjdta, jpkdta, jpiglo, jpjglo, & 
    237          &             jpizoom, jpjzoom, jperio 
     240         &             jpizoom, jpjzoom, jperio, ln_use_jattr 
    238241      !!---------------------------------------------------------------------- 
    239242      ! 
    240243      cltxt = '' 
     244      cxios_context = 'nemo' 
    241245      ! 
    242246      !                             ! Open reference namelist and configuration namelist files 
     
    274278      nperio  = 0 
    275279      jperio  = 0 
     280      ln_use_jattr = .false. 
    276281   ENDIF 
    277282#endif 
     
    284289#if defined key_iomput 
    285290      IF( Agrif_Root() ) THEN 
    286          IF( lk_cpl ) THEN 
    287             CALL cpl_init( ilocal_comm )                               ! nemo local communicator given by oasis 
    288             CALL xios_initialize( "oceanx",local_comm=ilocal_comm )    ! send nemo communicator to xios 
     291         IF( lk_oasis ) THEN 
     292            CALL cpl_init( "oceanx", ilocal_comm )                     ! nemo local communicator given by oasis 
     293            CALL xios_initialize( "not used",local_comm=ilocal_comm )    ! send nemo communicator to xios 
    289294         ELSE 
    290             CALL  xios_initialize( "nemo",return_comm=ilocal_comm )    ! nemo local communicator given by xios 
     295            CALL  xios_initialize( "for_xios_mpi_id",return_comm=ilocal_comm )    ! nemo local communicator given by xios 
    291296         ENDIF 
    292297      ENDIF 
    293       narea = mynode( cltxt, numnam_ref, numnam_cfg, numond , nstop, ilocal_comm )   ! Nodes selection 
     298      ! Nodes selection (control print return in cltxt) 
     299      narea = mynode( cltxt, 'output.namelist.dyn', numnam_ref, numnam_cfg, numond , nstop, ilocal_comm ) 
    294300#else 
    295       IF( lk_cpl ) THEN 
     301      IF( lk_oasis ) THEN 
    296302         IF( Agrif_Root() ) THEN 
    297             CALL cpl_init( ilocal_comm )                       ! nemo local communicator given by oasis 
     303            CALL cpl_init( "oceanx", ilocal_comm )                      ! nemo local communicator given by oasis 
    298304         ENDIF 
    299          narea = mynode( cltxt, numnam_ref, numnam_cfg, numond , nstop, ilocal_comm )   ! Nodes selection (control print return in cltxt) 
     305         ! Nodes selection (control print return in cltxt) 
     306         narea = mynode( cltxt, 'output.namelist.dyn', numnam_ref, numnam_cfg, numond , nstop, ilocal_comm ) 
    300307      ELSE 
    301308         ilocal_comm = 0 
    302          narea = mynode( cltxt, numnam_ref, numnam_cfg, numond , nstop )                ! Nodes selection (control print return in cltxt) 
     309         ! Nodes selection (control print return in cltxt) 
     310         narea = mynode( cltxt, 'output.namelist.dyn', numnam_ref, numnam_cfg, numond , nstop ) 
    303311      ENDIF 
    304312#endif 
     
    354362         WRITE(numout,*) '                       NEMO team' 
    355363         WRITE(numout,*) '            Ocean General Circulation Model' 
    356          WRITE(numout,*) '                  version 3.4  (2011) ' 
     364         WRITE(numout,*) '                  version 3.6  (2015) ' 
    357365         WRITE(numout,*) 
    358366         WRITE(numout,*) 
     
    396404      IF( lk_tide       )   CALL    tide_init( nit000 )    ! Initialisation of the tidal harmonics 
    397405 
     406                            CALL     sbc_init   ! Forcings : surface module (clem: moved here for bdy purpose) 
     407 
    398408      IF( lk_bdy        )   CALL     bdy_init   ! Open boundaries initialisation 
    399409      IF( lk_bdy        )   CALL bdy_dta_init   ! Open boundaries initialisation of external data arrays 
     
    402412 
    403413                            CALL dyn_nept_init  ! simplified form of Neptune effect 
    404  
    405414      !      
    406415      IF( ln_crs        )   CALL     crs_init   ! Domain initialization of coarsened grid 
    407416      ! 
    408417                                ! Ocean physics 
    409                             CALL     sbc_init   ! Forcings : surface module 
    410418      !                                         ! Vertical physics 
    411419                            CALL     zdf_init      ! namelist read 
     
    444452      IF( nn_cla == 1 .AND. cp_cfg == 'orca' .AND. jp_cfg == 2 )   CALL cla_init       ! Cross Land Advection 
    445453                            CALL icb_init( rdt, nit000)   ! initialise icebergs instance 
     454                            CALL sto_par_init   ! Stochastic parametrization 
     455      IF( ln_sto_eos     )  CALL sto_pts_init   ! RRandom T/S fluctuations 
    446456      
    447457#if defined key_top 
     
    519529         WRITE(numout,*) '      left bottom j index of the zoom (in data domain) jpizoom = ', jpjzoom 
    520530         WRITE(numout,*) '      lateral cond. type (between 0 and 6) jperio = ', jperio    
     531         WRITE(numout,*) '      use file attribute if exists as i/p j-start ln_use_jattr = ', ln_use_jattr 
    521532      ENDIF 
    522533      !                             ! Parameter control 
Note: See TracChangeset for help on using the changeset viewer.