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 13197 for NEMO/branches/2020/dev_r12563_ASINTER-06_ABL_improvement/tests/STATION_ASF/MY_SRC/nemogcm.F90 – NEMO

Ignore:
Timestamp:
2020-07-01T16:09:00+02:00 (4 years ago)
Author:
gsamson
Message:

merge with trunk@r13136 with a more recent svn version; pass all SETTE tests; results identical to trunk@r13136; ticket #2419

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/branches/2020/dev_r12563_ASINTER-06_ABL_improvement/tests/STATION_ASF/MY_SRC/nemogcm.F90

    r13159 r13197  
    22   !!====================================================================== 
    33   !!                       ***  MODULE nemogcm   *** 
    4    !! StandAlone Surface module : surface fluxes 
     4   !!                      STATION_ASF (SAS meets C1D) 
    55   !!====================================================================== 
    66   !! History :  3.6  ! 2011-11  (S. Alderson, G. Madec) original code 
     
    1919   !!---------------------------------------------------------------------- 
    2020   USE step_oce       ! module used in the ocean time stepping module (step.F90) 
    21    USE sbc_oce        ! surface boundary condition: ocean #LB: rm? 
    2221   USE phycst         ! physical constant                  (par_cst routine) 
    2322   USE domain         ! domain initialization   (dom_init & dom_cfg routines) 
    2423   USE closea         ! treatment of closed seas (for ln_closea) 
    2524   USE usrdef_nam     ! user defined configuration 
     25   USE istate         ! initial state setting          (istate_init routine) 
    2626   USE step, ONLY : Nbb, Nnn, Naa, Nrhs ! time level indices 
    2727   USE daymod         ! calendar 
    2828   USE restart        ! open  restart file 
    29    !LB:USE step           ! NEMO time-stepping                 (stp     routine) 
    3029   USE c1d            ! 1D configuration 
    3130   USE step_c1d       ! Time stepping loop for the 1D configuration 
    32    USE sbcssm         ! 
    3331   ! 
     32   USE in_out_manager ! I/O manager 
    3433   USE lib_mpp        ! distributed memory computing 
    3534   USE mppini         ! shared/distributed memory setting (mpp_init routine) 
     
    4948   !!---------------------------------------------------------------------- 
    5049   !! NEMO/OCE 4.0 , NEMO Consortium (2018) 
    51    !! $Id: nemogcm.F90 11536 2019-09-11 13:54:18Z smasson $ 
     50   !! $Id: nemogcm.F90 12489 2020-02-28 15:55:11Z davestorkey $ 
    5251   !! Software governed by the CeCILL license (see ./LICENSE) 
    5352   !!---------------------------------------------------------------------- 
     
    8483      !                            !==   time stepping   ==! 
    8584      !                            !-----------------------! 
     85      ! 
     86      !                                               !== set the model time-step  ==! 
     87      ! 
    8688      istp = nit000 
    8789      ! 
     
    107109      ! 
    108110#if defined key_iomput 
    109       CALL xios_finalize  ! end mpp communications with xios 
     111                                    CALL xios_finalize  ! end mpp communications with xios 
    110112#else 
    111       IF( lk_mpp   ) THEN   ;   CALL mppstop      ! end mpp communications 
    112       ENDIF 
     113      IF( lk_mpp )                  CALL mppstop      ! end mpp communications 
    113114#endif 
    114115      ! 
     
    162163      IF( lwm )   CALL ctl_opn(     numout,        'ocean.output', 'REPLACE', 'FORMATTED', 'SEQUENTIAL', -1, -1, .FALSE. ) 
    163164      ! open reference and configuration namelist files 
    164       CALL load_nml( numnam_ref,        'namelist_ref',                                           -1, lwm ) 
    165       CALL load_nml( numnam_cfg,        'namelist_cfg',                                           -1, lwm ) 
     165                  CALL load_nml( numnam_ref,        'namelist_ref',                                           -1, lwm ) 
     166                  CALL load_nml( numnam_cfg,        'namelist_cfg',                                           -1, lwm ) 
    166167      IF( lwm )   CALL ctl_opn(     numond, 'output.namelist.dyn', 'REPLACE', 'FORMATTED', 'SEQUENTIAL', -1, -1, .FALSE. ) 
    167168      ! open /dev/null file to be able to supress output write easily 
    168       CALL ctl_opn(     numnul,           '/dev/null', 'REPLACE', 'FORMATTED', 'SEQUENTIAL', -1, -1, .FALSE. ) 
     169      IF( Agrif_Root() ) THEN 
     170                  CALL ctl_opn(     numnul,           '/dev/null', 'REPLACE', 'FORMATTED', 'SEQUENTIAL', -1, -1, .FALSE. ) 
     171#ifdef key_agrif 
     172      ELSE 
     173                  numnul = Agrif_Parent(numnul)    
     174#endif 
     175      ENDIF 
    169176      ! 
    170177      !                             !--------------------! 
     
    222229903   IF( ios /= 0 )   CALL ctl_nam ( ios , 'namcfg in reference namelist' ) 
    223230      READ  ( numnam_cfg, namcfg, IOSTAT = ios, ERR = 904 ) 
    224 904   IF( ios >  0 )   CALL ctl_nam ( ios , 'namcfg in configuration namelist' ) 
     231904   IF( ios >  0 )   CALL ctl_nam ( ios , 'namcfg in configuration namelist' )    
    225232      ! 
    226233      IF( ln_read_cfg ) THEN            ! Read sizes in domain configuration file 
     
    253260      IF( ln_timing    )   CALL timing_start( 'nemo_init') 
    254261      ! 
    255       CALL     phy_cst         ! Physical constants 
    256       CALL     eos_init        ! Equation of state 
     262                           CALL     phy_cst         ! Physical constants 
     263                           CALL     eos_init        ! Equation of state 
    257264      IF( lk_c1d       )   CALL     c1d_init        ! 1D column configuration 
    258       CALL     dom_init( Nbb, Nnn, Naa, "OPA") ! Domain 
     265                           CALL     dom_init( Nbb, Nnn, Naa, "OPA") ! Domain 
    259266      IF( sn_cfctl%l_prtctl )   & 
    260267         &                 CALL prt_ctl_init        ! Print control 
    261  
    262       IF( ln_rstart ) THEN                    ! Restart from a file                                                                                  
    263          !                                    ! -------------------                                                                                  
    264          CALL rst_read( Nbb, Nnn )            ! Read the restart file                                                                                
    265          CALL day_init                        ! model calendar (using both namelist and restart infos)                                               
    266          !                                                                                                                                           
    267       ELSE                                    ! Start from rest                                                                                      
    268          !                                    ! ---------------                                                                                      
    269          numror = 0                           ! define numror = 0 -> no restart file to read                                                         
    270          neuler = 0                           ! Set time-step indicator at nit000 (euler forward)                                                    
    271          CALL day_init                        ! model calendar (using both namelist and restart infos)                                               
    272       ENDIF 
    273       ! 
    274  
    275       !                                      ! external forcing 
    276       CALL     sbc_init( Nbb, Nnn, Naa )    ! surface boundary conditions (including sea-ice) 
     268      ! 
     269       
     270                           CALL  istate_init( Nbb, Nnn, Naa )    ! ocean initial state (Dynamics and tracers) 
     271 
     272      !                                      ! external forcing  
     273                           CALL     sbc_init( Nbb, Nnn, Naa )    ! surface boundary conditions (including sea-ice) 
    277274 
    278275      ! 
     
    305302         WRITE(numout,*) '                              sn_cfctl%l_prttrc  = ', sn_cfctl%l_prttrc 
    306303         WRITE(numout,*) '                              sn_cfctl%l_oasout  = ', sn_cfctl%l_oasout 
    307          WRITE(numout,*) '                              sn_cfctl%procmin   = ', sn_cfctl%procmin 
    308          WRITE(numout,*) '                              sn_cfctl%procmax   = ', sn_cfctl%procmax 
    309          WRITE(numout,*) '                              sn_cfctl%procincr  = ', sn_cfctl%procincr 
    310          WRITE(numout,*) '                              sn_cfctl%ptimincr  = ', sn_cfctl%ptimincr 
     304         WRITE(numout,*) '                              sn_cfctl%procmin   = ', sn_cfctl%procmin   
     305         WRITE(numout,*) '                              sn_cfctl%procmax   = ', sn_cfctl%procmax   
     306         WRITE(numout,*) '                              sn_cfctl%procincr  = ', sn_cfctl%procincr  
     307         WRITE(numout,*) '                              sn_cfctl%ptimincr  = ', sn_cfctl%ptimincr  
    311308         WRITE(numout,*) '      level of print                  nn_print   = ', nn_print 
    312309         WRITE(numout,*) '      Start i indice for SUM control  nn_ictls   = ', nn_ictls 
     
    423420      !!---------------------------------------------------------------------- 
    424421      ! 
    425       ierr =        oce_alloc    ()    ! ocean 
     422      ierr =        oce_alloc    ()    ! ocean  
    426423      ierr = ierr + dia_wri_alloc() 
    427424      ierr = ierr + dom_oce_alloc()    ! ocean domain 
     
    432429   END SUBROUTINE nemo_alloc 
    433430 
    434  
     431    
    435432   SUBROUTINE nemo_set_cfctl(sn_cfctl, setto ) 
    436433      !!---------------------------------------------------------------------- 
     
    456453   !!====================================================================== 
    457454END MODULE nemogcm 
     455 
Note: See TracChangeset for help on using the changeset viewer.