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 5666 for branches/UKMO/2015_CO6_CO5_shelfdiagnostic/NEMOGCM/NEMO/OPA_SRC/nemogcm.F90 – NEMO

Ignore:
Timestamp:
2015-08-04T14:45:33+02:00 (9 years ago)
Author:
deazer
Message:

Upgraded branch to VERSION 3 6 STABLE

File:
1 edited

Legend:

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

    r5427 r5666  
    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   USE diatmb          ! Top,middle,bottom output 
    8588   USE dia25h          ! 25h mean output 
     
    186189      ! 
    187190#if defined key_agrif 
    188       CALL Agrif_ParentGrid_To_ChildGrid() 
    189       IF( lk_diaobs ) CALL dia_obs_wri 
    190       IF( nn_timing == 1 )   CALL timing_finalize 
    191       CALL Agrif_ChildGrid_To_ParentGrid() 
     191      IF ( Agrif_Level() < Agrif_MaxLevel() ) THEN  
     192         CALL Agrif_ParentGrid_To_ChildGrid() 
     193         IF( lk_diaobs ) CALL dia_obs_wri 
     194         IF( nn_timing == 1 )   CALL timing_finalize 
     195         CALL Agrif_ChildGrid_To_ParentGrid() 
     196      ENDIF 
    192197#endif 
    193198      IF( nn_timing == 1 )   CALL timing_finalize 
     
    197202#if defined key_iomput 
    198203      CALL xios_finalize                ! end mpp communications with xios 
    199       IF( lk_cpl ) CALL cpl_finalize    ! end coupling and mpp communications with OASIS 
     204      IF( lk_oasis ) CALL cpl_finalize    ! end coupling and mpp communications with OASIS 
    200205#else 
    201       IF( lk_cpl ) THEN  
     206      IF( lk_oasis ) THEN  
    202207         CALL cpl_finalize              ! end coupling and mpp communications with OASIS 
    203208      ELSE 
     
    228233      ! 
    229234      cltxt = '' 
     235      cxios_context = 'nemo' 
    230236      ! 
    231237      !                             ! Open reference namelist and configuration namelist files 
     
    274280#if defined key_iomput 
    275281      IF( Agrif_Root() ) THEN 
    276          IF( lk_cpl ) THEN 
    277             CALL cpl_init( ilocal_comm )                               ! nemo local communicator given by oasis 
    278             CALL xios_initialize( "oceanx",local_comm=ilocal_comm )    ! send nemo communicator to xios 
     282         IF( lk_oasis ) THEN 
     283            CALL cpl_init( "oceanx", ilocal_comm )                     ! nemo local communicator given by oasis 
     284            CALL xios_initialize( "not used",local_comm=ilocal_comm )    ! send nemo communicator to xios 
    279285         ELSE 
    280             CALL  xios_initialize( "nemo",return_comm=ilocal_comm )    ! nemo local communicator given by xios 
     286            CALL  xios_initialize( "for_xios_mpi_id",return_comm=ilocal_comm )    ! nemo local communicator given by xios 
    281287         ENDIF 
    282288      ENDIF 
    283       narea = mynode( cltxt, numnam_ref, numnam_cfg, numond , nstop, ilocal_comm )   ! Nodes selection 
     289      ! Nodes selection (control print return in cltxt) 
     290      narea = mynode( cltxt, 'output.namelist.dyn', numnam_ref, numnam_cfg, numond , nstop, ilocal_comm ) 
    284291#else 
    285       IF( lk_cpl ) THEN 
     292      IF( lk_oasis ) THEN 
    286293         IF( Agrif_Root() ) THEN 
    287             CALL cpl_init( ilocal_comm )                       ! nemo local communicator given by oasis 
     294            CALL cpl_init( "oceanx", ilocal_comm )                      ! nemo local communicator given by oasis 
    288295         ENDIF 
    289          narea = mynode( cltxt, numnam_ref, numnam_cfg, numond , nstop, ilocal_comm )   ! 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, ilocal_comm ) 
    290298      ELSE 
    291299         ilocal_comm = 0 
    292          narea = mynode( cltxt, numnam_ref, numnam_cfg, numond , nstop )                ! Nodes selection (control print return in cltxt) 
     300         ! Nodes selection (control print return in cltxt) 
     301         narea = mynode( cltxt, 'output.namelist.dyn', numnam_ref, numnam_cfg, numond , nstop ) 
    293302      ENDIF 
    294303#endif 
     
    434443      IF( nn_cla == 1 .AND. cp_cfg == 'orca' .AND. jp_cfg == 2 )   CALL cla_init       ! Cross Land Advection 
    435444                            CALL icb_init( rdt, nit000)   ! initialise icebergs instance 
     445                            CALL sto_par_init   ! Stochastic parametrization 
     446      IF( ln_sto_eos     )  CALL sto_pts_init   ! RRandom T/S fluctuations 
    436447      
    437448#if defined key_top 
Note: See TracChangeset for help on using the changeset viewer.