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 13176 for NEMO/branches/2020/dev_r12558_HPC-08_epico_Extra_Halo/src/OFF/nemogcm.F90 – NEMO

Ignore:
Timestamp:
2020-06-29T18:02:13+02:00 (4 years ago)
Author:
smasson
Message:

Extra_Halo: rewrite prtctl, supress nn_print, see #2366

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/branches/2020/dev_r12558_HPC-08_epico_Extra_Halo/src/OFF/nemogcm.F90

    r13015 r13176  
    179179      INTEGER ::   ios, ilocal_comm   ! local integers 
    180180      !! 
    181       NAMELIST/namctl/ sn_cfctl, nn_print, nn_ictls, nn_ictle,              & 
    182          &             nn_isplt , nn_jsplt, nn_jctls, nn_jctle,             & 
    183          &             ln_timing, ln_diacfl 
     181      NAMELIST/namctl/ sn_cfctl, ln_timing, ln_diacfl,                                & 
     182         &             nn_isplt,  nn_jsplt,  nn_ictls, nn_ictle, nn_jctls, nn_jctle 
    184183      NAMELIST/namcfg/ ln_read_cfg, cn_domcfg, ln_closea, ln_write_cfg, cn_domcfg_out, ln_use_jattr 
    185184      !!---------------------------------------------------------------------- 
     
    374373         WRITE(numout,*) '                              sn_cfctl%procincr  = ', sn_cfctl%procincr  
    375374         WRITE(numout,*) '                              sn_cfctl%ptimincr  = ', sn_cfctl%ptimincr  
    376          WRITE(numout,*) '      level of print                  nn_print   = ', nn_print 
    377          WRITE(numout,*) '      Start i indice for SUM control  nn_ictls   = ', nn_ictls 
    378          WRITE(numout,*) '      End i indice for SUM control    nn_ictle   = ', nn_ictle 
    379          WRITE(numout,*) '      Start j indice for SUM control  nn_jctls   = ', nn_jctls 
    380          WRITE(numout,*) '      End j indice for SUM control    nn_jctle   = ', nn_jctle 
    381          WRITE(numout,*) '      number of proc. following i     nn_isplt   = ', nn_isplt 
    382          WRITE(numout,*) '      number of proc. following j     nn_jsplt   = ', nn_jsplt 
    383375         WRITE(numout,*) '      timing by routine               ln_timing  = ', ln_timing 
    384376         WRITE(numout,*) '      CFL diagnostics                 ln_diacfl  = ', ln_diacfl 
    385377      ENDIF 
    386       ! 
    387       nprint    = nn_print          ! convert DOCTOR namelist names into OLD names 
    388       nictls    = nn_ictls 
    389       nictle    = nn_ictle 
    390       njctls    = nn_jctls 
    391       njctle    = nn_jctle 
    392       isplt     = nn_isplt 
    393       jsplt     = nn_jsplt 
    394  
     378 
     379      IF( .NOT.ln_read_cfg )   ln_closea = .false.   ! dealing possible only with a domcfg file 
    395380      IF(lwp) THEN                  ! control print 
    396381         WRITE(numout,*) 
     
    402387         WRITE(numout,*) '         filename to be written                      cn_domcfg_out = ', TRIM(cn_domcfg_out) 
    403388         WRITE(numout,*) '      use file attribute if exists as i/p j-start ln_use_jattr     = ', ln_use_jattr 
    404       ENDIF 
    405       IF( .NOT.ln_read_cfg )   ln_closea = .false.   ! dealing possible only with a domcfg file 
    406       ! 
    407       !                             ! Parameter control 
    408       ! 
    409       IF( sn_cfctl%l_prtctl .OR. sn_cfctl%l_prttrc ) THEN              ! sub-domain area indices for the control prints 
    410          IF( lk_mpp .AND. jpnij > 1 ) THEN 
    411             isplt = jpni   ;   jsplt = jpnj   ;   ijsplt = jpni*jpnj   ! the domain is forced to the real split domain 
    412          ELSE 
    413             IF( isplt == 1 .AND. jsplt == 1  ) THEN 
    414                CALL ctl_warn( ' - isplt & jsplt are equal to 1',   & 
    415                   &           ' - the print control will be done over the whole domain' ) 
    416             ENDIF 
    417             ijsplt = isplt * jsplt            ! total number of processors ijsplt 
    418          ENDIF 
    419          IF(lwp) WRITE(numout,*)'          - The total number of processors over which the' 
    420          IF(lwp) WRITE(numout,*)'            print control will be done is ijsplt : ', ijsplt 
    421          ! 
    422          !                              ! indices used for the SUM control 
    423          IF( nictls+nictle+njctls+njctle == 0 )   THEN    ! print control done over the default area 
    424             lsp_area = .FALSE. 
    425          ELSE                                             ! print control done over a specific  area 
    426             lsp_area = .TRUE. 
    427             IF( nictls < 1 .OR. nictls > jpiglo )   THEN 
    428                CALL ctl_warn( '          - nictls must be 1<=nictls>=jpiglo, it is forced to 1' ) 
    429                nictls = 1 
    430             ENDIF 
    431             IF( nictle < 1 .OR. nictle > jpiglo )   THEN 
    432                CALL ctl_warn( '          - nictle must be 1<=nictle>=jpiglo, it is forced to jpiglo' ) 
    433                nictle = jpiglo 
    434             ENDIF 
    435             IF( njctls < 1 .OR. njctls > jpjglo )   THEN 
    436                CALL ctl_warn( '          - njctls must be 1<=njctls>=jpjglo, it is forced to 1' ) 
    437                njctls = 1 
    438             ENDIF 
    439             IF( njctle < 1 .OR. njctle > jpjglo )   THEN 
    440                CALL ctl_warn( '          - njctle must be 1<=njctle>=jpjglo, it is forced to jpjglo' ) 
    441                njctle = jpjglo 
    442             ENDIF 
    443          ENDIF 
    444389      ENDIF 
    445390      ! 
Note: See TracChangeset for help on using the changeset viewer.