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 11129 for NEMO/branches/2019/ENHANCE-03_domcfg/src/nemogcm.F90 – NEMO

Ignore:
Timestamp:
2019-06-18T17:11:36+02:00 (5 years ago)
Author:
mathiot
Message:

simplification of domcfg (rm all var_n and var_b as it is not needed) (ticket #2143)

Location:
NEMO/branches/2019/ENHANCE-03_domcfg
Files:
1 edited
1 copied

Legend:

Unmodified
Added
Removed
  • NEMO/branches/2019/ENHANCE-03_domcfg/src/nemogcm.F90

    r10727 r11129  
    4444   !!   factorise     : calculate the factors of the no. of MPI processes 
    4545   !!---------------------------------------------------------------------- 
    46    USE step_oce       ! module used in the ocean time stepping module (step.F90) 
     46   USE dom_oce        ! ocean space and time domain variables 
     47   USE in_out_manager ! I/O manager 
     48   USE iom            ! 
    4749   USE domcfg         ! domain configuration               (dom_cfg routine) 
    4850   USE mppini         ! shared/distributed memory setting (mpp_init routine) 
     
    9799      CALL nemo_init               !==  Initialisations  ==! 
    98100      !                            !-----------------------! 
     101      PRINT *, 'end nemo init' 
    99102 
    100103#if defined key_agrif     
     
    126129      ! 
    127130      ! 
     131      PRINT *, 'close file' 
    128132      CALL nemo_closefile 
     133      PRINT *, 'The end' 
    129134      ! 
    130135      ! 
     
    141146      INTEGER  ::   ios, ilocal_comm   ! local integers 
    142147      CHARACTER(len=120), DIMENSION(60) ::   cltxt, cltxt2, clnam 
    143        ! 
    144       NAMELIST/namctl/ ln_ctl   , sn_cfctl, nn_print,ln_timing 
     148      !! 
     149      NAMELIST/namctl/ ln_ctl   , sn_cfctl, nn_print, nn_ictls, nn_ictle,   & 
     150         &             nn_isplt , nn_jsplt, nn_jctls, nn_jctle,             & 
     151         &             ln_timing, ln_diacfl 
    145152      NAMELIST/namcfg/ ln_e3_dep,                                & 
    146153         &             cp_cfg, cp_cfz, jp_cfg, jpidta, jpjdta, jpkdta, jpiglo, jpjglo, & 
     
    154161      CALL ctl_opn( numnam_cfg, 'namelist_cfg', 'OLD', 'FORMATTED', 'SEQUENTIAL', -1, 6, .FALSE. ) 
    155162      ! 
    156       REWIND( numnam_ref )              ! Namelist namctl in reference namelist : Control prints & Benchmark 
     163      REWIND( numnam_ref )              ! Namelist namctl in reference namelist 
    157164      READ  ( numnam_ref, namctl, IOSTAT = ios, ERR = 901 ) 
    158 901   IF( ios /= 0 ) CALL ctl_nam ( ios , 'namctl in reference namelist', .TRUE. ) 
    159  
    160       REWIND( numnam_cfg )              ! Namelist namctl in confguration namelist : Control prints & Benchmark 
     165901   IF( ios /= 0 )   CALL ctl_nam ( ios , 'namctl in reference namelist', .TRUE. ) 
     166      REWIND( numnam_cfg )              ! Namelist namctl in confguration namelist 
    161167      READ  ( numnam_cfg, namctl, IOSTAT = ios, ERR = 902 ) 
    162       902   IF( ios /= 0 ) CALL ctl_nam ( ios , 'namctl in configuration namelist', .TRUE. ) 
    163  
    164       ! 
    165       REWIND( numnam_ref )              ! Namelist namcfg in reference namelist : Control prints & Benchmark 
     168902   IF( ios >  0 )   CALL ctl_nam ( ios , 'namctl in configuration namelist', .TRUE. ) 
     169      ! 
     170      REWIND( numnam_ref )              ! Namelist namcfg in reference namelist 
    166171      READ  ( numnam_ref, namcfg, IOSTAT = ios, ERR = 903 ) 
    167 903   IF( ios /= 0 ) CALL ctl_nam ( ios , 'namcfg in reference namelist', .TRUE. ) 
    168  
    169       REWIND( numnam_cfg )              ! Namelist namcfg in confguration namelist : Control prints & Benchmark 
     172903   IF( ios /= 0 )   CALL ctl_nam ( ios , 'namcfg in reference namelist', .TRUE. ) 
     173      REWIND( numnam_cfg )              ! Namelist namcfg in confguration namelist 
    170174      READ  ( numnam_cfg, namcfg, IOSTAT = ios, ERR = 904 ) 
    171 904   IF( ios /= 0 ) CALL ctl_nam ( ios , 'namcfg in configuration namelist', .TRUE. )    
     175904   IF( ios >  0 )  CALL ctl_nam ( ios , 'namcfg in configuration namelist', .TRUE. )    
    172176 
    173177! Force values for AGRIF zoom (cf. agrif_user.F90) 
     
    265269                            CALL     dom_cfg    ! Domain configuration 
    266270                            CALL     dom_init   ! Domain 
    267       IF( ln_ctl        )   CALL prt_ctl_init   ! Print control 
    268271      ! 
    269272   END SUBROUTINE nemo_init 
     
    409412      !!---------------------------------------------------------------------- 
    410413      ! 
    411       ierr =        oce_alloc       ()          ! ocean 
    412       ierr = ierr + dom_oce_alloc   ()          ! ocean domain 
     414      ierr = dom_oce_alloc   ()          ! ocean domain 
    413415      ! 
    414416      CALL mpp_sum( 'nemogcm', ierr ) 
Note: See TracChangeset for help on using the changeset viewer.