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 11782 for NEMO/branches/2019/dev_r11756_text_output/src/OCE/nemogcm.F90 – NEMO

Ignore:
Timestamp:
2019-10-24T10:30:30+02:00 (5 years ago)
Author:
andmirek
Message:

Ticket #2320 print levels in ICE/OCE

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/branches/2019/dev_r11756_text_output/src/OCE/nemogcm.F90

    r11536 r11782  
    153153      CALL mpp_max( 'nemogcm', nstop ) 
    154154 
    155       IF(lwp) WRITE(numout,cform_aaa)   ! Flag AAAAAAA 
     155      IF(lwp .AND. nprint > 1) WRITE(numout,cform_aaa)   ! Flag AAAAAAA 
    156156 
    157157      !                            !-----------------------! 
     
    226226      !                            !==  finalize the run  ==! 
    227227      !                            !------------------------! 
    228       IF(lwp) WRITE(numout,cform_aaa)        ! Flag AAAAAAA 
     228      IF(lwp .AND. nprint > 1) WRITE(numout,cform_aaa)        ! Flag AAAAAAA 
    229229      ! 
    230230      IF( nstop /= 0 .AND. lwp ) THEN        ! error print 
     
    309309                  CALL ctl_opn( numnam_ref,        'namelist_ref',     'OLD', 'FORMATTED', 'SEQUENTIAL', -1, -1, .FALSE. ) 
    310310                  CALL ctl_opn( numnam_cfg,        'namelist_cfg',     'OLD', 'FORMATTED', 'SEQUENTIAL', -1, -1, .FALSE. ) 
    311       IF( lwm )   CALL ctl_opn(     numond, 'output.namelist.dyn', 'REPLACE', 'FORMATTED', 'SEQUENTIAL', -1, -1, .FALSE. ) 
    312311      ! open /dev/null file to be able to supress output write easily 
    313312                  CALL ctl_opn(     numnul,           '/dev/null', 'REPLACE', 'FORMATTED', 'SEQUENTIAL', -1, -1, .FALSE. ) 
     
    325324      ! 
    326325      lwp = (narea == 1) .OR. ln_ctl    ! control of all listing output print 
     326      ! 
     327      nprint    = nn_print          ! convert DOCTOR namelist names into OLD names 
     328      ! 
     329      IF( lwm .AND. nprint > 2 )   CALL ctl_opn(     numond, 'output.namelist.dyn', 'REPLACE', 'FORMATTED', 'SEQUENTIAL', -1, -1, .FALSE. ) 
    327330      ! 
    328331      IF(lwp) THEN                      ! open listing units 
     
    352355         WRITE(numout,*) 
    353356         ! 
    354          WRITE(numout,cform_aaa)                                        ! Flag AAAAAAA 
     357         IF(nprint > 1) WRITE(numout,cform_aaa)                                        ! Flag AAAAAAA 
    355358         ! 
    356359      ENDIF 
     
    369372      ENDIF 
    370373      ! 
    371       IF(lwm) WRITE( numond, namctl ) 
     374      IF(lwm .AND. nprint > 2) WRITE( numond, namctl ) 
    372375      ! 
    373376      !                             !------------------------------------! 
     
    388391      ENDIF 
    389392      ! 
    390       IF(lwm)   WRITE( numond, namcfg ) 
     393      IF(lwm .AND. nprint > 2)   WRITE( numond, namcfg ) 
    391394      ! 
    392395      !                             !-----------------------------------------! 
     
    492495      IF( lk_asminc    )   CALL asm_inc_init    ! Initialize assimilation increments 
    493496      ! 
    494       IF(lwp) WRITE(numout,cform_aaa)           ! Flag AAAAAAA 
     497      IF(lwp .AND. nprint > 1) WRITE(numout,cform_aaa)           ! Flag AAAAAAA 
    495498      ! 
    496499      IF( ln_timing    )   CALL timing_stop( 'nemo_init') 
     
    536539      ENDIF 
    537540      ! 
    538       nprint    = nn_print          ! convert DOCTOR namelist names into OLD names 
    539541      nictls    = nn_ictls 
    540542      nictle    = nn_ictle 
Note: See TracChangeset for help on using the changeset viewer.