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 10774 for branches/UKMO/dev_r5518_GO6_package_text_diagnostics/NEMOGCM/NEMO/OPA_SRC/nemogcm.F90 – NEMO

Ignore:
Timestamp:
2019-03-19T12:32:19+01:00 (5 years ago)
Author:
andmirek
Message:

GMED 450 add flush after prints

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/UKMO/dev_r5518_GO6_package_text_diagnostics/NEMOGCM/NEMO/OPA_SRC/nemogcm.F90

    r10759 r10774  
    250250      NAMELIST/namctl/ ln_ctl  ,sn_cfctl, nn_print, nn_ictls, nn_ictle,   & 
    251251         &             nn_isplt, nn_jsplt, nn_jctls, nn_jctle,   & 
    252          &             nn_bench, nn_timing 
     252         &             nn_bench, nn_timing, ln_flush 
    253253      NAMELIST/namcfg/ cp_cfg, cp_cfz, jp_cfg, jpidta, jpjdta, jpkdta, jpiglo, jpjglo, & 
    254254         &             jpizoom, jpjzoom, jperio, ln_use_jattr 
     
    296296#endif 
    297297      nprint    = nn_print          ! convert DOCTOR namelist names into OLD names 
     298      lflush    = ln_flush          ! convert namelist variable to model variable 
    298299      !do it here because output.namelist.dyn is opened before nprint was set earlier 
    299300      ! 
     
    405406         END DO 
    406407         WRITE(numout,cform_aaa)                                         ! Flag AAAAAAA 
     408         IF(lflush) CALL flush(numout) 
    407409         ! 
    408410      ENDIF 
     
    510512      IF( lk_asminc     )   CALL asm_inc_init   ! Initialize assimilation increments 
    511513      IF(lwp) WRITE(numout,*) 'Euler time step switch is ', neuler 
     514      IF(lwp .AND. lflush) CALL flush(numout) 
    512515       
    513516      IF (nstop > 0) THEN 
     
    546549         WRITE(numout,*) '                              sn_cfctl%ptimincr  = ', sn_cfctl%ptimincr  
    547550         WRITE(numout,*) '      level of print                  nn_print   = ', nn_print 
     551         WRITE(numout,*) '      flush numout/stat               ln_flush   = ', ln_flush 
    548552         WRITE(numout,*) '      Start i indice for SUM control  nn_ictls   = ', nn_ictls 
    549553         WRITE(numout,*) '      End i indice for SUM control    nn_ictle   = ', nn_ictle 
     
    554558         WRITE(numout,*) '      benchmark parameter (0/1)       nn_bench   = ', nn_bench 
    555559         WRITE(numout,*) '      timing activated    (0/1)       nn_timing  = ', nn_timing 
     560         IF(lflush) CALL flush(numout) 
    556561      ENDIF 
    557562      ! 
     
    581586         WRITE(numout,*) '      lateral cond. type (between 0 and 6) jperio = ', jperio    
    582587         WRITE(numout,*) '      use file attribute if exists as i/p j-start ln_use_jattr = ', ln_use_jattr 
     588         IF(lflush) CALL flush(numout) 
    583589      ENDIF 
    584590      !                             ! Parameter control 
     
    596602         IF(lwp) WRITE(numout,*)'          - The total number of processors over which the' 
    597603         IF(lwp) WRITE(numout,*)'            print control will be done is ijsplt : ', ijsplt 
     604         IF(lwp .AND. lflush) CALL flush(numout) 
    598605         ! 
    599606         !                              ! indices used for the SUM control 
     
    767774         WRITE (numout, *) 'WARNING: factorisation of number of PEs failed' 
    768775         WRITE (numout, *) '       : using grid of ',num_pes,' x 1' 
     776         IF(lflush) CALL flush(numout) 
    769777         jpnj = 1 
    770778         jpni = num_pes 
Note: See TracChangeset for help on using the changeset viewer.