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

    r247 r258  
    2323   USE lbclnk          ! ocean lateral boundary condition (or mpp link)  
    2424   USE diaptr          ! poleward transport diagnostics 
     25   USE prtctl          ! Print control 
    2526 
    2627 
     
    8687      !! * Local declarations 
    8788      INTEGER  ::   ji, jj, jk              ! dummy loop indices 
    88       REAL(wp) ::   zta, zsa,            &  ! temporary scalar 
     89      REAL(wp) ::                        &  ! temporary scalar 
    8990         ztai, ztaj, ztak,               &  !    "         "    
    9091         zsai, zsaj, zsak                   !    "         "    
     
    343344      ENDIF 
    344345 
    345       IF(l_ctl) THEN 
    346          zta = SUM( ta(2:nictl,2:njctl,1:jpkm1) * tmask(2:nictl,2:njctl,1:jpkm1) ) 
    347          zsa = SUM( sa(2:nictl,2:njctl,1:jpkm1) * tmask(2:nictl,2:njctl,1:jpkm1) ) 
    348          WRITE(numout,*) ' zad  - Ta: ', zta-t_ctl, ' Sa: ', zsa-s_ctl, ' tvd' 
    349          t_ctl = zta   ;   s_ctl = zsa 
     346      IF(ln_ctl) THEN 
     347         CALL prt_ctl(tab3d_1=ta, clinfo1=' tvd adv  - Ta: ', mask1=tmask, & 
     348            &         tab3d_2=sa, clinfo2=' Sa: ', mask2=tmask, clinfo3='tra') 
    350349      ENDIF 
    351350 
Note: See TracChangeset for help on using the changeset viewer.