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/SAS/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/SAS/nemogcm.F90

    r13015 r13176  
    3535   USE step_diu       ! diurnal bulk SST timestepping (called from here if run offline) 
    3636   ! 
     37   USE prtctl         ! Print control 
    3738   USE in_out_manager ! I/O manager 
    3839   USE lib_mpp        ! distributed memory computing 
     
    202203      INTEGER ::   ios, ilocal_comm   ! local integers 
    203204      !! 
    204       NAMELIST/namctl/ sn_cfctl, nn_print, nn_ictls, nn_ictle,              & 
    205          &             nn_isplt , nn_jsplt, nn_jctls, nn_jctle,             & 
    206          &             ln_timing, ln_diacfl 
     205      NAMELIST/namctl/ sn_cfctl, ln_timing, ln_diacfl,                                & 
     206         &             nn_isplt,  nn_jsplt,  nn_ictls, nn_ictle, nn_jctls, nn_jctle             
    207207      NAMELIST/namcfg/ ln_read_cfg, cn_domcfg, ln_closea, ln_write_cfg, cn_domcfg_out, ln_use_jattr 
    208208      !!---------------------------------------------------------------------- 
     
    410410         WRITE(numout,*) '                              sn_cfctl%procincr  = ', sn_cfctl%procincr  
    411411         WRITE(numout,*) '                              sn_cfctl%ptimincr  = ', sn_cfctl%ptimincr  
    412          WRITE(numout,*) '      level of print                  nn_print   = ', nn_print 
    413          WRITE(numout,*) '      Start i indice for SUM control  nn_ictls   = ', nn_ictls 
    414          WRITE(numout,*) '      End i indice for SUM control    nn_ictle   = ', nn_ictle 
    415          WRITE(numout,*) '      Start j indice for SUM control  nn_jctls   = ', nn_jctls 
    416          WRITE(numout,*) '      End j indice for SUM control    nn_jctle   = ', nn_jctle 
    417          WRITE(numout,*) '      number of proc. following i     nn_isplt   = ', nn_isplt 
    418          WRITE(numout,*) '      number of proc. following j     nn_jsplt   = ', nn_jsplt 
    419412         WRITE(numout,*) '      timing by routine               ln_timing  = ', ln_timing 
    420413         WRITE(numout,*) '      CFL diagnostics                 ln_diacfl  = ', ln_diacfl 
    421414      ENDIF 
    422415      ! 
    423       nprint    = nn_print          ! convert DOCTOR namelist names into OLD names 
    424       nictls    = nn_ictls 
    425       nictle    = nn_ictle 
    426       njctls    = nn_jctls 
    427       njctle    = nn_jctle 
    428       isplt     = nn_isplt 
    429       jsplt     = nn_jsplt 
    430  
     416      IF( .NOT.ln_read_cfg )   ln_closea = .FALSE.   ! dealing possible only with a domcfg file 
    431417      IF(lwp) THEN                  ! control print 
    432418         WRITE(numout,*) 
     
    439425         WRITE(numout,*) '      use file attribute if exists as i/p j-start   ln_use_jattr     = ', ln_use_jattr 
    440426      ENDIF 
    441       IF( .NOT.ln_read_cfg )   ln_closea = .false.   ! dealing possible only with a domcfg file 
    442       ! 
    443       !                             ! Parameter control 
    444       ! 
    445       IF( sn_cfctl%l_prtctl .OR. sn_cfctl%l_prttrc ) THEN              ! sub-domain area indices for the control prints 
    446          IF( lk_mpp .AND. jpnij > 1 ) THEN 
    447             isplt = jpni   ;   jsplt = jpnj   ;   ijsplt = jpni*jpnj   ! the domain is forced to the real split domain 
    448          ELSE 
    449             IF( isplt == 1 .AND. jsplt == 1  ) THEN 
    450                CALL ctl_warn( ' - isplt & jsplt are equal to 1',   & 
    451                   &           ' - the print control will be done over the whole domain' ) 
    452             ENDIF 
    453             ijsplt = isplt * jsplt            ! total number of processors ijsplt 
    454          ENDIF 
    455          IF(lwp) WRITE(numout,*)'          - The total number of processors over which the' 
    456          IF(lwp) WRITE(numout,*)'            print control will be done is ijsplt : ', ijsplt 
    457          ! 
    458          !                              ! indices used for the SUM control 
    459          IF( nictls+nictle+njctls+njctle == 0 )   THEN    ! print control done over the default area 
    460             lsp_area = .FALSE. 
    461          ELSE                                             ! print control done over a specific  area 
    462             lsp_area = .TRUE. 
    463             IF( nictls < 1 .OR. nictls > jpiglo )   THEN 
    464                CALL ctl_warn( '          - nictls must be 1<=nictls>=jpiglo, it is forced to 1' ) 
    465                nictls = 1 
    466             ENDIF 
    467             IF( nictle < 1 .OR. nictle > jpiglo )   THEN 
    468                CALL ctl_warn( '          - nictle must be 1<=nictle>=jpiglo, it is forced to jpiglo' ) 
    469                nictle = jpiglo 
    470             ENDIF 
    471             IF( njctls < 1 .OR. njctls > jpjglo )   THEN 
    472                CALL ctl_warn( '          - njctls must be 1<=njctls>=jpjglo, it is forced to 1' ) 
    473                njctls = 1 
    474             ENDIF 
    475             IF( njctle < 1 .OR. njctle > jpjglo )   THEN 
    476                CALL ctl_warn( '          - njctle must be 1<=njctle>=jpjglo, it is forced to jpjglo' ) 
    477                njctle = jpjglo 
    478             ENDIF 
    479          ENDIF 
    480       ENDIF 
    481427      ! 
    482428      IF( 1._wp /= SIGN(1._wp,-0._wp)  )   CALL ctl_stop( 'nemo_ctl: The intrinsec SIGN function follows f2003 standard.',  & 
Note: See TracChangeset for help on using the changeset viewer.