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/SBC/sbcapr.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/SBC/sbcapr.F90

    r10968 r10986  
    9191         WRITE(numout,*) '   Namelist namsbc_apr : Atmospheric PRessure as extrenal forcing' 
    9292         WRITE(numout,*) '      ref. pressure: global mean Patm (T) or a constant (F)  ln_ref_apr = ', ln_ref_apr 
     93         IF(lflush) CALL FLUSH(numout) 
    9394      ENDIF 
    9495      ! 
     
    99100         IF(lwp) WRITE(numout,*) '         Reference Patm used : ', rn_pref, ' N/m2' 
    100101      ENDIF 
     102      IF(lwp .AND. lflush) CALL FLUSH(numout) 
    101103      ! 
    102104      r1_grau = 1.e0 / (grav * rau0)               !* constant for optimization 
    103105      ! 
    104106      !                                            !* control check 
    105       IF ( ln_apr_obc  ) THEN 
    106          IF(lwp) WRITE(numout,*) '         Inverse barometer added to OBC ssh data' 
     107      IF ( ln_apr_obc  .AND. lwp) THEN 
     108         WRITE(numout,*) '         Inverse barometer added to OBC ssh data' 
     109         IF(lflush) CALL FLUSH(numout) 
    107110      ENDIF 
    108111!jc: stop below should rather be a warning  
     
    155158         !                                            !* Restart: read in restart file 
    156159         IF( ln_rstart .AND. iom_varid( numror, 'ssh_ibb', ldstop = .FALSE. ) > 0 ) THEN  
    157             IF(lwp) WRITE(numout,*) 'sbc_apr:   ssh_ibb read in the restart file' 
     160            IF(lwp .AND. nprint > 0) THEN 
     161               WRITE(numout,*) 'sbc_apr:   ssh_ibb read in the restart file' 
     162               IF(lflush) CALL FLUSH(numout) 
     163            ENDIF 
    158164            CALL iom_get( numror, jpdom_autoglo, 'ssh_ibb', ssh_ibb, ldxios = lrxios )   ! before inv. barometer ssh 
    159165            ! 
    160166         ELSE                                         !* no restart: set from nit000 values 
    161             IF(lwp) WRITE(numout,*) 'sbc_apr:   ssh_ibb set to nit000 values' 
     167            IF(lwp .AND. nprint > 0) THEN 
     168               WRITE(numout,*) 'sbc_apr:   ssh_ibb set to nit000 values' 
     169               IF(lflush) CALL FLUSH(numout) 
     170            ENDIF 
    162171            ssh_ibb(:,:) = ssh_ib(:,:) 
    163172         ENDIF 
     
    166175      IF( lrst_oce ) THEN                       !      Write in the ocean restart file     ! 
    167176         !                                      ! ---------------------------------------- ! 
    168          IF(lwp) WRITE(numout,*) 
    169          IF(lwp) WRITE(numout,*) 'sbc_apr : ssh_ib written in ocean restart file at it= ', kt,' date= ', ndastp 
    170          IF(lwp) WRITE(numout,*) '~~~~' 
     177         IF(lwp .AND. nprint > 0) THEN 
     178            WRITE(numout,*) 
     179            WRITE(numout,*) 'sbc_apr : ssh_ib written in ocean restart file at it= ', kt,' date= ', ndastp 
     180            WRITE(numout,*) '~~~~' 
     181            IF(lflush) CALL FLUSH(numout) 
     182         ENDIF 
    171183         IF( lwxios ) CALL iom_swap(      cwxios_context          ) 
    172184         CALL iom_rstput( kt, nitrst, numrow, 'ssh_ibb' , ssh_ib, ldxios = lwxios ) 
Note: See TracChangeset for help on using the changeset viewer.