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 12210 for NEMO/branches/2019/dev_r12072_MERGE_OPTION2_2019/src/SAS/nemogcm.F90 – NEMO

Ignore:
Timestamp:
2019-12-12T13:15:13+01:00 (4 years ago)
Author:
cetlod
Message:

dev_merge_option2 : merge in fix_sn_cfctl_ticket2328 branch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/branches/2019/dev_r12072_MERGE_OPTION2_2019/src/SAS/nemogcm.F90

    r12202 r12210  
    185185      INTEGER ::   ios, ilocal_comm   ! local integers 
    186186      !! 
    187       NAMELIST/namctl/ ln_ctl   , sn_cfctl, nn_print, nn_ictls, nn_ictle,   & 
     187      NAMELIST/namctl/ sn_cfctl, nn_print, nn_ictls, nn_ictle,              & 
    188188         &             nn_isplt , nn_jsplt, nn_jctls, nn_jctle,             & 
    189189         &             ln_timing, ln_diacfl 
     
    246246      ! 
    247247      !                             !--------------------! 
    248       !                             ! Open listing units !  -> need ln_ctl from namctl to define lwp 
     248      !                             ! Open listing units !  -> need sn_cfctl from namctl to define lwp 
    249249      !                             !--------------------! 
    250250      ! 
     
    254254902   IF( ios >  0 )   CALL ctl_nam ( ios , 'namctl in configuration namelist' ) 
    255255      ! 
    256       lwp = (narea == 1) .OR. ln_ctl    ! control of all listing output print 
     256      ! finalize the definition of namctl variables 
     257      IF( sn_cfctl%l_allon ) THEN 
     258         ! Turn on all options. 
     259         CALL nemo_set_cfctl( sn_cfctl, .TRUE., .TRUE. ) 
     260         ! Ensure all processors are active 
     261         sn_cfctl%procmin = 0 ; sn_cfctl%procmax = 1000000 ; sn_cfctl%procincr = 1 
     262      ELSEIF( sn_cfctl%l_config ) THEN 
     263         ! Activate finer control of report outputs 
     264         ! optionally switch off output from selected areas (note this only 
     265         ! applies to output which does not involve global communications) 
     266         IF( ( narea < sn_cfctl%procmin .OR. narea > sn_cfctl%procmax  ) .OR. & 
     267           & ( MOD( narea - sn_cfctl%procmin, sn_cfctl%procincr ) /= 0 ) )    & 
     268           &   CALL nemo_set_cfctl( sn_cfctl, .FALSE., .FALSE. ) 
     269      ELSE 
     270         ! turn off all options. 
     271         CALL nemo_set_cfctl( sn_cfctl, .FALSE., .TRUE. ) 
     272      ENDIF 
     273      ! 
     274      lwp = (narea == 1) .OR. sn_cfctl%l_oceout    ! control of all listing output print 
    257275      ! 
    258276      IF(lwp) THEN                      ! open listing units 
     
    289307         ! 
    290308      ENDIF 
    291      ! 
    292       ! finalize the definition of namctl variables 
    293       IF( sn_cfctl%l_config ) THEN 
    294          ! Activate finer control of report outputs 
    295          ! optionally switch off output from selected areas (note this only 
    296          ! applies to output which does not involve global communications) 
    297          IF( ( narea < sn_cfctl%procmin .OR. narea > sn_cfctl%procmax  ) .OR. & 
    298            & ( MOD( narea - sn_cfctl%procmin, sn_cfctl%procincr ) /= 0 ) )    & 
    299            &   CALL nemo_set_cfctl( sn_cfctl, .FALSE., .FALSE. ) 
    300       ELSE 
    301          ! Use ln_ctl to turn on or off all options. 
    302          CALL nemo_set_cfctl( sn_cfctl, ln_ctl, .TRUE. ) 
    303       ENDIF 
    304309      ! 
    305310      IF(lwm) WRITE( numond, namctl ) 
     
    343348                           CALL eos_init        ! Equation of seawater 
    344349                           CALL dom_init('SAS') ! Domain 
    345       IF( ln_ctl      )    CALL prt_ctl_init    ! Print control 
     350      IF( sn_cfctl%l_prtctl )   & 
     351         &                 CALL prt_ctl_init        ! Print control 
    346352       
    347353                           CALL day_init        ! model calendar (using both namelist and restart infos) 
     
    371377      !! ** Purpose :   control print setting 
    372378      !! 
    373       !! ** Method  : - print namctl information and check some consistencies 
     379      !! ** Method  : - print namctl and namcfg information and check some consistencies 
    374380      !!---------------------------------------------------------------------- 
    375381      ! 
     
    379385         WRITE(numout,*) '~~~~~~~~' 
    380386         WRITE(numout,*) '   Namelist namctl' 
    381          WRITE(numout,*) '      run control (for debugging)     ln_ctl     = ', ln_ctl 
     387         WRITE(numout,*) '                              sn_cfctl%l_glochk  = ', sn_cfctl%l_glochk 
     388         WRITE(numout,*) '                              sn_cfctl%l_allon   = ', sn_cfctl%l_allon 
    382389         WRITE(numout,*) '       finer control over o/p sn_cfctl%l_config  = ', sn_cfctl%l_config 
    383390         WRITE(numout,*) '                              sn_cfctl%l_runstat = ', sn_cfctl%l_runstat 
     
    385392         WRITE(numout,*) '                              sn_cfctl%l_oceout  = ', sn_cfctl%l_oceout 
    386393         WRITE(numout,*) '                              sn_cfctl%l_layout  = ', sn_cfctl%l_layout 
    387          WRITE(numout,*) '                              sn_cfctl%l_mppout  = ', sn_cfctl%l_mppout 
    388          WRITE(numout,*) '                              sn_cfctl%l_mpptop  = ', sn_cfctl%l_mpptop 
     394         WRITE(numout,*) '                              sn_cfctl%l_prtctl  = ', sn_cfctl%l_prtctl 
     395         WRITE(numout,*) '                              sn_cfctl%l_prttrc  = ', sn_cfctl%l_prttrc 
     396         WRITE(numout,*) '                              sn_cfctl%l_oasout  = ', sn_cfctl%l_oasout 
    389397         WRITE(numout,*) '                              sn_cfctl%procmin   = ', sn_cfctl%procmin   
    390398         WRITE(numout,*) '                              sn_cfctl%procmax   = ', sn_cfctl%procmax   
     
    424432      !                             ! Parameter control 
    425433      ! 
    426       IF( ln_ctl ) THEN                 ! sub-domain area indices for the control prints 
     434      IF( sn_cfctl%l_prtctl .OR. sn_cfctl%l_prttrc ) THEN              ! sub-domain area indices for the control prints 
    427435         IF( lk_mpp .AND. jpnij > 1 ) THEN 
    428436            isplt = jpni   ;   jsplt = jpnj   ;   ijsplt = jpni*jpnj   ! the domain is forced to the real split domain 
     
    544552      sn_cfctl%l_oceout  = setto 
    545553      sn_cfctl%l_layout  = setto 
    546       sn_cfctl%l_mppout  = setto 
    547       sn_cfctl%l_mpptop  = setto 
     554      sn_cfctl%l_prtctl  = setto 
     555      sn_cfctl%l_prttrc  = setto 
     556      sn_cfctl%l_oasout  = setto 
    548557   END SUBROUTINE nemo_set_cfctl 
    549558 
Note: See TracChangeset for help on using the changeset viewer.