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 5602 for branches/2015/dev_r5003_MERCATOR6_CRS/NEMOGCM/NEMO/OPA_SRC/nemogcm.F90 – NEMO

Ignore:
Timestamp:
2015-07-16T13:55:15+02:00 (9 years ago)
Author:
cbricaud
Message:

merge change from trunk rev 5003 to 5519 ( rev where branche 3.6_stable were created )

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2015/dev_r5003_MERCATOR6_CRS/NEMOGCM/NEMO/OPA_SRC/nemogcm.F90

    r5601 r5602  
    8383   USE lbcnfd, ONLY: isendto, nsndto, nfsloop, nfeloop ! Setup of north fold exchanges  
    8484   USE trabbl_crs 
     85   USE sbc_oce, ONLY: lk_oasis 
     86   USE stopar 
     87   USE stopts 
    8588 
    8689   IMPLICIT NONE 
     
    197200#if defined key_iomput 
    198201      CALL xios_finalize                ! end mpp communications with xios 
    199       IF( lk_cpl ) CALL cpl_finalize    ! end coupling and mpp communications with OASIS 
     202      IF( lk_oasis ) CALL cpl_finalize    ! end coupling and mpp communications with OASIS 
    200203#else 
    201       IF( lk_cpl ) THEN  
     204      IF( lk_oasis ) THEN  
    202205         CALL cpl_finalize              ! end coupling and mpp communications with OASIS 
    203206      ELSE 
     
    224227         &             nn_bench, nn_timing 
    225228      NAMELIST/namcfg/ cp_cfg, cp_cfz, jp_cfg, jpidta, jpjdta, jpkdta, jpiglo, jpjglo, & 
    226          &             jpizoom, jpjzoom, jperio 
     229         &             jpizoom, jpjzoom, jperio, ln_use_jattr 
    227230      !!---------------------------------------------------------------------- 
    228231      ! 
    229232      cltxt = '' 
     233      cxios_context = 'nemo' 
    230234      ! 
    231235      !                             ! Open reference namelist and configuration namelist files 
     
    263267      nperio  = 0 
    264268      jperio  = 0 
     269      ln_use_jattr = .false. 
    265270   ENDIF 
    266271#endif 
     
    273278#if defined key_iomput 
    274279      IF( Agrif_Root() ) THEN 
    275          IF( lk_cpl ) THEN 
    276             CALL cpl_init( ilocal_comm )                               ! nemo local communicator given by oasis 
    277             CALL xios_initialize( "oceanx",local_comm=ilocal_comm )    ! send nemo communicator to xios 
     280         IF( lk_oasis ) THEN 
     281            CALL cpl_init( "oceanx", ilocal_comm )                     ! nemo local communicator given by oasis 
     282            CALL xios_initialize( "not used",local_comm=ilocal_comm )    ! send nemo communicator to xios 
    278283         ELSE 
    279             CALL  xios_initialize( "nemo",return_comm=ilocal_comm )    ! nemo local communicator given by xios 
     284            CALL  xios_initialize( "for_xios_mpi_id",return_comm=ilocal_comm )    ! nemo local communicator given by xios 
    280285         ENDIF 
    281286      ENDIF 
    282       narea = mynode( cltxt, numnam_ref, numnam_cfg, numond , nstop, ilocal_comm )   ! Nodes selection 
     287      ! Nodes selection (control print return in cltxt) 
     288      narea = mynode( cltxt, 'output.namelist.dyn', numnam_ref, numnam_cfg, numond , nstop, ilocal_comm ) 
    283289#else 
    284       IF( lk_cpl ) THEN 
     290      IF( lk_oasis ) THEN 
    285291         IF( Agrif_Root() ) THEN 
    286             CALL cpl_init( ilocal_comm )                       ! nemo local communicator given by oasis 
     292            CALL cpl_init( "oceanx", ilocal_comm )                      ! nemo local communicator given by oasis 
    287293         ENDIF 
    288          narea = mynode( cltxt, numnam_ref, numnam_cfg, numond , nstop, ilocal_comm )   ! Nodes selection (control print return in cltxt) 
     294         ! Nodes selection (control print return in cltxt) 
     295         narea = mynode( cltxt, 'output.namelist.dyn', numnam_ref, numnam_cfg, numond , nstop, ilocal_comm ) 
    289296      ELSE 
    290297         ilocal_comm = 0 
    291          narea = mynode( cltxt, numnam_ref, numnam_cfg, numond , nstop )                ! Nodes selection (control print return in cltxt) 
     298         ! Nodes selection (control print return in cltxt) 
     299         narea = mynode( cltxt, 'output.namelist.dyn', numnam_ref, numnam_cfg, numond , nstop ) 
    292300      ENDIF 
    293301#endif 
     
    343351         WRITE(numout,*) '                       NEMO team' 
    344352         WRITE(numout,*) '            Ocean General Circulation Model' 
    345          WRITE(numout,*) '                  version 3.4  (2011) ' 
     353         WRITE(numout,*) '                  version 3.6  (2015) ' 
    346354         WRITE(numout,*) 
    347355         WRITE(numout,*) 
     
    385393      IF( lk_tide       )   CALL    tide_init( nit000 )    ! Initialisation of the tidal harmonics 
    386394 
     395                            CALL     sbc_init   ! Forcings : surface module (clem: moved here for bdy purpose) 
     396 
    387397      IF( lk_bdy        )   CALL     bdy_init   ! Open boundaries initialisation 
    388398      IF( lk_bdy        )   CALL bdy_dta_init   ! Open boundaries initialisation of external data arrays 
     
    391401 
    392402                            CALL dyn_nept_init  ! simplified form of Neptune effect 
    393  
    394403      !      
    395404      IF( ln_crs        )   CALL     crs_init   ! Domain initialization of coarsened grid 
    396405      ! 
    397406                                ! Ocean physics 
    398                             CALL     sbc_init   ! Forcings : surface module 
    399407      !                                         ! Vertical physics 
    400408                            CALL     zdf_init      ! namelist read 
     
    445453      IF( nn_cla == 1 .AND. cp_cfg == 'orca' .AND. jp_cfg == 2 )   CALL cla_init       ! Cross Land Advection 
    446454                            CALL icb_init( rdt, nit000)   ! initialise icebergs instance 
     455                            CALL sto_par_init   ! Stochastic parametrization 
     456      IF( ln_sto_eos     )  CALL sto_pts_init   ! RRandom T/S fluctuations 
    447457      
    448458#if defined key_top 
     
    522532         WRITE(numout,*) '      left bottom j index of the zoom (in data domain) jpizoom = ', jpjzoom 
    523533         WRITE(numout,*) '      lateral cond. type (between 0 and 6) jperio = ', jperio    
     534         WRITE(numout,*) '      use file attribute if exists as i/p j-start ln_use_jattr = ', ln_use_jattr 
    524535      ENDIF 
    525536      !                             ! Parameter control 
Note: See TracChangeset for help on using the changeset viewer.