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/tests/STATION_ASF/MY_SRC – 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

Location:
NEMO/branches/2019/dev_r12072_MERGE_OPTION2_2019/tests/STATION_ASF/MY_SRC
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • NEMO/branches/2019/dev_r12072_MERGE_OPTION2_2019/tests/STATION_ASF/MY_SRC/nemogcm.F90

    r12202 r12210  
    158158      INTEGER ::   ios, ilocal_comm   ! local integers 
    159159      !! 
    160       NAMELIST/namctl/ ln_ctl   , sn_cfctl, nn_print, nn_ictls, nn_ictle,   & 
     160      NAMELIST/namctl/ sn_cfctl%l_prtctl   , sn_cfctl, nn_print, nn_ictls, nn_ictle,   & 
    161161         &             nn_isplt , nn_jsplt, nn_jctls, nn_jctle,             & 
    162162         &             ln_timing, ln_diacfl 
     
    197197      ! 
    198198      !                             !--------------------! 
    199       !                             ! Open listing units !  -> need ln_ctl from namctl to define lwp 
     199      !                             ! Open listing units !  -> need sn_cfctl%l_prtctl from namctl to define lwp 
    200200      !                             !--------------------! 
    201201      ! 
     
    206206902   IF( ios >  0 )   CALL ctl_nam ( ios , 'namctl in configuration namelist' ) 
    207207      ! 
    208       lwp = (narea == 1) .OR. ln_ctl    ! control of all listing output print 
     208      lwp = (narea == 1) .OR. sn_cfctl%l_prtctl    ! control of all listing output print 
    209209      ! 
    210210      IF(lwp) THEN                      ! open listing units 
     
    247247            &   CALL nemo_set_cfctl( sn_cfctl, .FALSE., .FALSE. ) 
    248248      ELSE 
    249          ! Use ln_ctl to turn on or off all options. 
    250          CALL nemo_set_cfctl( sn_cfctl, ln_ctl, .TRUE. ) 
     249         ! Use sn_cfctl%l_prtctl to turn on or off all options. 
     250         CALL nemo_set_cfctl( sn_cfctl, sn_cfctl%l_prtctl, .TRUE. ) 
    251251      ENDIF 
    252252      ! 
     
    292292      IF( lk_c1d       )   CALL     c1d_init        ! 1D column configuration 
    293293      CALL     dom_init("OPA") ! Domain 
    294       IF( ln_ctl       )   CALL prt_ctl_init        ! Print control 
     294      IF( sn_cfctl%l_prtctl       )   CALL prt_ctl_init        ! Print control 
    295295 
    296296      CALL day_init        ! model calendar (using both namelist and restart infos) 
     
    322322         WRITE(numout,*) '~~~~~~~~' 
    323323         WRITE(numout,*) '   Namelist namctl' 
    324          WRITE(numout,*) '      run control (for debugging)     ln_ctl     = ', ln_ctl 
     324         WRITE(numout,*) '      run control (for debugging)     sn_cfctl%l_prtctl     = ', sn_cfctl%l_prtctl 
    325325         WRITE(numout,*) '       finer control over o/p sn_cfctl%l_config  = ', sn_cfctl%l_config 
    326326         WRITE(numout,*) '                              sn_cfctl%l_runstat = ', sn_cfctl%l_runstat 
     
    367367      !                             ! Parameter control 
    368368      ! 
    369       IF( ln_ctl ) THEN                 ! sub-domain area indices for the control prints 
     369      IF( sn_cfctl%l_prtctl ) THEN                 ! sub-domain area indices for the control prints 
    370370         IF( lk_mpp .AND. jpnij > 1 ) THEN 
    371371            isplt = jpni   ;   jsplt = jpnj   ;   ijsplt = jpni*jpnj   ! the domain is forced to the real split domain 
  • NEMO/branches/2019/dev_r12072_MERGE_OPTION2_2019/tests/STATION_ASF/MY_SRC/sbcssm.F90

    r12202 r12210  
    131131      vb (:,:,1) = ssv_m(:,:) 
    132132  
    133       IF(ln_ctl) THEN                  ! print control 
     133      IF(sn_cfctl%l_prtctl) THEN                  ! print control 
    134134         CALL prt_ctl(tab2d_1=sst_m, clinfo1=' sst_m   - : ', mask1=tmask   ) 
    135135         CALL prt_ctl(tab2d_1=sss_m, clinfo1=' sss_m   - : ', mask1=tmask   ) 
  • NEMO/branches/2019/dev_r12072_MERGE_OPTION2_2019/tests/STATION_ASF/MY_SRC/stpctl.F90

    r11930 r12210  
    6767      ! 
    6868      ll_wrtstp  = ( MOD( kt, sn_cfctl%ptimincr ) == 0 ) .OR. ( kt == nitend ) 
    69       ll_colruns = ll_wrtstp .AND. ( ln_ctl .OR. sn_cfctl%l_runstat ) 
     69      ll_colruns = ll_wrtstp .AND. ( sn_cfctl%l_prtctl .OR. sn_cfctl%l_runstat ) 
    7070      ll_wrtruns = ll_colruns 
    7171      IF( kt == nit000 .AND. lwp ) THEN 
     
    7777         !                                ! open run.stat file(s) at start whatever 
    7878         !                                ! the value of sn_cfctl%ptimincr 
    79          IF( ln_ctl .OR. sn_cfctl%l_runstat ) THEN 
     79         IF( sn_cfctl%l_prtctl .OR. sn_cfctl%l_runstat ) THEN 
    8080            CALL ctl_opn( numrun, 'run.stat', 'REPLACE', 'FORMATTED', 'SEQUENTIAL', -1, numout, lwp, narea ) 
    8181            clname = 'run.stat.nc' 
     
    114114      END IF 
    115115      !                                   !==  error handling  ==! 
    116       IF( ( ln_ctl .OR. lsomeoce ) .AND. (   &             ! have use mpp_max (because ln_ctl=.T.) or contains some ocean points 
     116      IF( ( sn_cfctl%l_prtctl .OR. lsomeoce ) .AND. (   &             ! have use mpp_max (because sn_cfctl%l_prtctl=.T.) or contains some ocean points 
    117117         &  zmax(1) >    5._wp .OR.   &             ! too large wind stress ( > 5 N/m^2 ) 
    118118         &  zmax(2) > 2000._wp .OR.   &             ! too large non-solar heat flux ( > 2000 W/m^2) 
     
    128128         CALL dia_wri_state( 'output.abort' )     ! create an output.abort file 
    129129 
    130          IF( .NOT. ln_ctl ) THEN 
     130         IF( .NOT. sn_cfctl%l_prtctl ) THEN 
    131131            WRITE(ctmp8,*) 'E R R O R message from sub-domain: ', narea 
    132132            CALL ctl_stop( 'STOP', ctmp1, ' ', ctmp2, ' ', ctmp6, ' ' ) 
Note: See TracChangeset for help on using the changeset viewer.