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 258 for trunk/NEMO/OPA_SRC/TRA/traldf_bilapg.F90 – NEMO

Ignore:
Timestamp:
2005-09-02T17:48:36+02:00 (19 years ago)
Author:
opalod
Message:

nemo_v1_update_004 : CT : Integration of the control print option for debugging work

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEMO/OPA_SRC/TRA/traldf_bilapg.F90

    r247 r258  
    2222   USE lbclnk          ! ocean lateral boundary condition (or mpp link) 
    2323   USE diaptr          ! poleward transport diagnostics  
     24   USE prtctl          ! Print control 
    2425 
    2526   IMPLICIT NONE 
     
    8081      !! * Local declarations 
    8182      INTEGER ::   ji, jj, jk                 ! dummy loop indices 
    82       REAL(wp) ::   zta, zsa                  ! temporary scalars  
    8383      REAL(wp), DIMENSION(jpi,jpj,jpk) ::   & 
    8484         wk3, wk4                ! work array used for rotated biharmonic 
     
    134134      ENDIF 
    135135 
    136       IF(l_ctl) THEN         ! print mean trends (used for debugging) 
    137          zta = SUM( ta(2:nictl,2:njctl,1:jpkm1) * tmask(2:nictl,2:njctl,1:jpkm1) ) 
    138          zsa = SUM( sa(2:nictl,2:njctl,1:jpkm1) * tmask(2:nictl,2:njctl,1:jpkm1) ) 
    139          WRITE(numout,*) ' ldf  - Ta: ', zta-t_ctl, ' Sa: ', zsa-s_ctl 
    140          t_ctl = zta   ;   s_ctl = zsa 
     136      IF(ln_ctl) THEN         ! print mean trends (used for debugging) 
     137         CALL prt_ctl(tab3d_1=ta, clinfo1=' ldf  - Ta: ', mask1=tmask, & 
     138            &         tab3d_2=sa, clinfo2=' Sa: ', mask2=tmask, clinfo3='tra') 
    141139      ENDIF 
    142140 
Note: See TracChangeset for help on using the changeset viewer.