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 334 for trunk/NEMO/TOP_SRC/TRP/trcsbc.F90 – NEMO

Ignore:
Timestamp:
2005-11-14T12:53:13+01:00 (19 years ago)
Author:
opalod
Message:

nemo_v1_update_022 : CE + RB + CT : add print control possibility

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEMO/TOP_SRC/TRP/trcsbc.F90

    r274 r334  
    1111   USE oce_trc             ! ocean dynamics and active tracers variables 
    1212   USE trc                 ! ocean  passive tracers variables 
     13   USE prtctl_trc          ! Print control for debbuging 
     14 
    1315 
    1416   IMPLICIT NONE 
     
    2123#  include "passivetrc_substitute.h90" 
    2224   !!---------------------------------------------------------------------- 
    23    !!  TOP 1.0,  LOCEAN-IPSL (2005)  
    24    !! $Header$  
    25    !! This software is governed by the CeCILL licence see modipsl/doc/NEMO_CeCILL.txt  
     25   !!   OPA 9.0 , LODYC-IPSL (2003) 
    2626   !!---------------------------------------------------------------------- 
    2727 
     
    6060      INTEGER  ::   ji, jj, jn           ! dummy loop indices 
    6161      REAL(wp) ::   ztra, zsrau, zse3t   ! temporary scalars 
     62      CHARACTER (len=22) :: charout 
    6263      !!---------------------------------------------------------------------- 
    6364 
     
    8990         END DO 
    9091          
    91          IF(ln_ctl) THEN         ! print mean trends (used for debugging) 
    92             ztra = SUM( tra(2:nictle,2:njctle,1:jpkm1,jn) * tmask(2:nictle,2:njctle,1:jpkm1) ) 
    93             WRITE(numout,*) ' trc/sbc  - ',ctrcnm(jn),' : ', ztra-tra_ctl(jn) 
    94             tra_ctl(jn) = ztra  
    95          ENDIF 
    9692      END DO 
     93 
     94      IF(ln_ctl)   THEN  ! print mean trends (used for debugging) 
     95         WRITE(charout, FMT="('sbc')") 
     96         CALL prt_ctl_trc_info(charout) 
     97         CALL prt_ctl_trc(tab4d=tra, mask=tmask, clinfo=ctrcnm,clinfo2='trd') 
     98      ENDIF 
    9799 
    98100   END SUBROUTINE trc_sbc 
Note: See TracChangeset for help on using the changeset viewer.