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 10986 for NEMO/branches/UKMO/NEMO_4.0_mirror_text_diagnostics/src/OCE/nemogcm.F90 – NEMO

Ignore:
Timestamp:
2019-05-16T15:23:56+02:00 (5 years ago)
Author:
andmirek
Message:

GMED 462 add flush

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/branches/UKMO/NEMO_4.0_mirror_text_diagnostics/src/OCE/nemogcm.F90

    r10968 r10986  
    225225         WRITE(numout,*) '   ==>>>   nemo_gcm: a total of ', nstop, ' errors have been found' 
    226226         WRITE(numout,*) 
     227         IF(lflush) CALL FLUSH(numout) 
    227228      ENDIF 
    228229      ! 
     
    261262      NAMELIST/namctl/ ln_ctl   , sn_cfctl, nn_print, nn_ictls, nn_ictle,   & 
    262263         &             nn_isplt , nn_jsplt, nn_jctls, nn_jctle,             & 
    263          &             ln_timing, ln_diacfl 
     264         &             ln_timing, ln_diacfl, ln_flush 
    264265      NAMELIST/namcfg/ ln_read_cfg, cn_domcfg, ln_closea, ln_write_cfg, cn_domcfg_out, ln_use_jattr 
    265266      !!---------------------------------------------------------------------- 
     
    393394         ! 
    394395         IF(nprint > 1) WRITE(numout,cform_aaa)                                        ! Flag AAAAAAA 
     396         IF(lflush) CALL FLUSH(numout) 
    395397         ! 
    396398      ENDIF 
     
    497499      IF( lk_asminc    )   CALL asm_inc_init    ! Initialize assimilation increments 
    498500      ! 
    499       IF(lwp .AND. nprint > 1) WRITE(numout,cform_aaa)           ! Flag AAAAAAA 
     501      IF(lwp .AND. nprint > 1) THEN 
     502         WRITE(numout,cform_aaa)           ! Flag AAAAAAA 
     503         IF(lflush) CALL FLUSH(numout) 
     504      ENDIF 
    500505      ! 
    501506      IF( ln_timing    )   CALL timing_stop( 'nemo_init') 
     
    541546      ENDIF 
    542547      ! 
     548      lflush    = ln_flush 
    543549      nictls    = nn_ictls 
    544550      nictle    = nn_ictle 
     
    557563         WRITE(numout,*) '         filename to be written                        cn_domcfg_out = ', TRIM(cn_domcfg_out) 
    558564         WRITE(numout,*) '      use file attribute if exists as i/p j-start   ln_use_jattr     = ', ln_use_jattr 
     565         IF(lflush) CALL FLUSH(numout) 
    559566      ENDIF 
    560567      IF( .NOT.ln_read_cfg )   ln_closea = .false.   ! dealing possible only with a domcfg file 
     
    572579            ijsplt = isplt * jsplt            ! total number of processors ijsplt 
    573580         ENDIF 
    574          IF(lwp) WRITE(numout,*)'          - The total number of processors over which the' 
    575          IF(lwp) WRITE(numout,*)'            print control will be done is ijsplt : ', ijsplt 
     581         IF(lwp) THEN 
     582            WRITE(numout,*)'          - The total number of processors over which the' 
     583            WRITE(numout,*)'            print control will be done is ijsplt : ', ijsplt 
     584            IF(lflush) CALL FLUSH(numout) 
     585         ENDIF 
    576586         ! 
    577587         !                              ! indices used for the SUM control 
Note: See TracChangeset for help on using the changeset viewer.