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

Ignore:
Timestamp:
2019-11-06T11:16:45+01:00 (4 years ago)
Author:
acc
Message:

Branch 2019/fix_sn_cfctl_ticket2328. Changes to enable correct functionality for the sn_cfctl%l_oceout option. See #2328

File:
1 edited

Legend:

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

    r11536 r11866  
    256256902   IF( ios >  0 )   CALL ctl_nam ( ios , 'namctl in configuration namelist' ) 
    257257      ! 
    258       lwp = (narea == 1) .OR. ln_ctl    ! control of all listing output print 
     258      ! finalize the definition of namctl variables 
     259      IF( sn_cfctl%l_config ) THEN 
     260         ! Activate finer control of report outputs 
     261         ! optionally switch off output from selected areas (note this only 
     262         ! applies to output which does not involve global communications) 
     263         IF( ( narea < sn_cfctl%procmin .OR. narea > sn_cfctl%procmax  ) .OR. & 
     264           & ( MOD( narea - sn_cfctl%procmin, sn_cfctl%procincr ) /= 0 ) )    & 
     265           &   CALL nemo_set_cfctl( sn_cfctl, .FALSE., .FALSE. ) 
     266      ELSE 
     267         ! Use ln_ctl to turn on or off all options. 
     268         CALL nemo_set_cfctl( sn_cfctl, ln_ctl, .TRUE. ) 
     269      ENDIF 
     270      ! 
     271      lwp = (narea == 1) .OR. ln_ctl .OR. sn_cfctl%l_oceout    ! control of all listing output print 
    259272      ! 
    260273      IF(lwp) THEN                      ! open listing units 
     
    291304         ! 
    292305      ENDIF 
    293      ! 
    294       ! finalize the definition of namctl variables 
    295       IF( sn_cfctl%l_config ) THEN 
    296          ! Activate finer control of report outputs 
    297          ! optionally switch off output from selected areas (note this only 
    298          ! applies to output which does not involve global communications) 
    299          IF( ( narea < sn_cfctl%procmin .OR. narea > sn_cfctl%procmax  ) .OR. & 
    300            & ( MOD( narea - sn_cfctl%procmin, sn_cfctl%procincr ) /= 0 ) )    & 
    301            &   CALL nemo_set_cfctl( sn_cfctl, .FALSE., .FALSE. ) 
    302       ELSE 
    303          ! Use ln_ctl to turn on or off all options. 
    304          CALL nemo_set_cfctl( sn_cfctl, ln_ctl, .TRUE. ) 
    305       ENDIF 
    306306      ! 
    307307      IF(lwm) WRITE( numond, namctl ) 
     
    347347                           CALL eos_init        ! Equation of seawater 
    348348                           CALL dom_init('SAS') ! Domain 
    349       IF( ln_ctl      )    CALL prt_ctl_init    ! Print control 
     349      IF( ln_ctl .OR. sn_cfctl%l_mppout )   & 
     350         &                 CALL prt_ctl_init        ! Print control 
    350351       
    351352                           CALL day_init        ! model calendar (using both namelist and restart infos) 
Note: See TracChangeset for help on using the changeset viewer.