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/sbcisf.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/sbcisf.F90

    r10968 r10986  
    206206         IF( ln_rstart .AND.    &                     ! Restart: read in restart file 
    207207            &   iom_varid( numror, 'fwf_isf_b', ldstop = .FALSE. ) > 0 ) THEN 
    208             IF(lwp .AND. nprint > 0) WRITE(numout,*) '          nit000-1 isf tracer content forcing fields read in the restart file' 
     208            IF(lwp .AND. nprint > 0) THEN 
     209               WRITE(numout,*) '          nit000-1 isf tracer content forcing fields read in the restart file' 
     210               IF(lflush) CALL FLUSH(numout) 
     211            ENDIF 
    209212            CALL iom_get( numror, jpdom_autoglo, 'fwf_isf_b', fwfisf_b(:,:)         , ldxios = lrxios )   ! before salt content isf_tsc trend 
    210213            CALL iom_get( numror, jpdom_autoglo, 'isf_sc_b' , risf_tsc_b(:,:,jp_sal), ldxios = lrxios )   ! before salt content isf_tsc trend 
     
    217220      !  
    218221      IF( lrst_oce ) THEN 
    219          IF(lwp .AND. nprint > 0) WRITE(numout,*) 
    220          IF(lwp .AND. nprint > 0) WRITE(numout,*) 'sbc : isf surface tracer content forcing fields written in ocean restart file ',   & 
     222         IF(lwp .AND. nprint > 0) THEN 
     223            WRITE(numout,*) 
     224            WRITE(numout,*) 'sbc : isf surface tracer content forcing fields written in ocean restart file ',   & 
    221225            &                    'at it= ', kt,' date= ', ndastp 
    222          IF(lwp .AND. nprint > 0) WRITE(numout,*) '~~~~' 
     226            WRITE(numout,*) '~~~~' 
     227            IF(lflush) CALL FLUSH(numout) 
     228         ENDIF 
    223229         IF( lwxios ) CALL iom_swap(      cwxios_context          ) 
    224230         CALL iom_rstput( kt, nitrst, numrow, 'fwf_isf_b', fwfisf(:,:)         , ldxios = lwxios ) 
     
    285291      IF(lwm .AND. nprint > 2) WRITE ( numond, namsbc_isf ) 
    286292 
    287       IF(lwp) WRITE(numout,*) 
    288       IF(lwp) WRITE(numout,*) 'sbc_isf_init : heat flux of the ice shelf' 
    289       IF(lwp) WRITE(numout,*) '~~~~~~~~~~~~' 
    290       IF(lwp) WRITE(numout,*) '   Namelist namsbc_isf :' 
    291       IF(lwp) WRITE(numout,*) '      type ice shelf melting/freezing         nn_isf      = ', nn_isf 
    292       IF(lwp) WRITE(numout,*) '      bulk formulation (nn_isf=1 only)        nn_isfblk   = ', nn_isfblk 
    293       IF(lwp) WRITE(numout,*) '      thickness of the top boundary layer     rn_hisf_tbl = ', rn_hisf_tbl 
    294       IF(lwp) WRITE(numout,*) '      gamma formulation                       nn_gammablk = ', nn_gammablk  
    295       IF(lwp) WRITE(numout,*) '      gammat coefficient                      rn_gammat0  = ', rn_gammat0   
    296       IF(lwp) WRITE(numout,*) '      gammas coefficient                      rn_gammas0  = ', rn_gammas0   
    297       IF(lwp) WRITE(numout,*) '      top drag coef. used (from namdrg_top)   rn_Cd0      = ', r_Cdmin_top  
     293      IF(lwp) THEN 
     294         WRITE(numout,*) 
     295         WRITE(numout,*) 'sbc_isf_init : heat flux of the ice shelf' 
     296         WRITE(numout,*) '~~~~~~~~~~~~' 
     297         WRITE(numout,*) '   Namelist namsbc_isf :' 
     298         WRITE(numout,*) '      type ice shelf melting/freezing         nn_isf      = ', nn_isf 
     299         WRITE(numout,*) '      bulk formulation (nn_isf=1 only)        nn_isfblk   = ', nn_isfblk 
     300         WRITE(numout,*) '      thickness of the top boundary layer     rn_hisf_tbl = ', rn_hisf_tbl 
     301         WRITE(numout,*) '      gamma formulation                       nn_gammablk = ', nn_gammablk  
     302         WRITE(numout,*) '      gammat coefficient                      rn_gammat0  = ', rn_gammat0   
     303         WRITE(numout,*) '      gammas coefficient                      rn_gammas0  = ', rn_gammas0   
     304         WRITE(numout,*) '      top drag coef. used (from namdrg_top)   rn_Cd0      = ', r_Cdmin_top  
     305         IF(lflush) CALL FLUSH(numout) 
     306      ENDIF 
    298307 
    299308 
     
    377386         CALL ctl_stop( 'sbc_isf_init: wrong value of nn_isf' ) 
    378387      END SELECT 
     388      IF(lwp .AND. lflush) CALL FLUSH(numout) 
    379389          
    380390      rhisf_tbl_0(:,:) = rhisf_tbl(:,:) 
Note: See TracChangeset for help on using the changeset viewer.