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 2587 for branches/TAM_V3_0/NEMOTAM/OPATAM_SRC/DYN/dynadv_tam.F90 – NEMO

Ignore:
Timestamp:
2011-02-15T12:58:59+01:00 (13 years ago)
Author:
vidard
Message:

refer to ticket #798

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/TAM_V3_0/NEMOTAM/OPATAM_SRC/DYN/dynadv_tam.F90

    r1885 r2587  
    547547      END IF 
    548548   END SUBROUTINE dyn_adv_ctl_tam 
    549  
     549#if defined key_tst_tlm 
    550550   SUBROUTINE dyn_adv_tlm_tst( kumadt ) 
    551551      !!----------------------------------------------------------------------- 
     
    580580      USE tamtrj              ! writing out state trajectory 
    581581      USE par_tlm,    ONLY: & 
     582        & tlm_bch,          & 
    582583        & cur_loop,         & 
    583584        & h_ratio 
     
    641642 
    642643      CHARACTER(LEN=14)   :: cl_name 
    643       CHARACTER (LEN=128) :: file_out, file_wop 
     644      CHARACTER (LEN=128) :: file_out, file_wop, file_xdx 
    644645      CHARACTER (LEN=90)  ::  FMT 
    645646      REAL(KIND=wp), DIMENSION(100):: & 
     
    696697      ! Output filename Xn=F(X0) 
    697698      !-------------------------------------------------------------------- 
    698       file_wop='trj_wop_dynadv' 
    699  
    700699      CALL tlm_namrd 
    701700      gamma = h_ratio 
    702  
     701      file_wop='trj_wop_dynadv' 
     702      file_xdx='trj_xdx_dynadv' 
    703703      !-------------------------------------------------------------------- 
    704704      ! Initialize the tangent input with random noise: dx 
     
    741741      ! Complete Init for Direct 
    742742      !------------------------------------------------------------------- 
    743       CALL istate_p   
     743      IF ( tlm_bch /= 2 )      CALL istate_p   
    744744 
    745745      ! *** initialize the reference trajectory 
     
    769769      !  Compute the direct model F(X0,t=n) = Xn 
    770770      !-------------------------------------------------------------------- 
    771       CALL dyn_adv(nit000) 
    772       IF ( cur_loop .EQ. 0) CALL trj_wri_spl(file_wop) 
     771      IF ( tlm_bch /= 2 ) CALL dyn_adv(nit000) 
     772      IF ( tlm_bch == 0 ) CALL trj_wri_spl(file_wop) 
     773      IF ( tlm_bch == 1 ) CALL trj_wri_spl(file_xdx) 
    773774      !-------------------------------------------------------------------- 
    774775      !  Compute the Tangent  
    775776      !-------------------------------------------------------------------- 
    776       IF ( cur_loop .NE. 0) THEN 
    777          !-------------------------------------------------------------------- 
    778          !  Storing data 
    779          !--------------------------------------------------------------------   
    780          zua_out  (:,:,:) = ua   (:,:,:) 
    781          zva_out  (:,:,:) = va   (:,:,:)           
    782  
     777      IF ( tlm_bch == 2 ) THEN         
    783778         !-------------------------------------------------------------------- 
    784779         ! Initialize the tangent variables  
     
    812807         zua_wop  (:,:,:) = ua  (:,:,:) 
    813808         zva_wop  (:,:,:) = va  (:,:,:) 
     809         CALL trj_rd_spl(file_xdx)  
     810         zua_out  (:,:,:) = ua  (:,:,:) 
     811         zva_out  (:,:,:) = va  (:,:,:) 
    814812         !-------------------------------------------------------------------- 
    815813         ! Compute the Linearization Error  
     
    944942   END SUBROUTINE dyn_adv_tlm_tst 
    945943#endif 
     944#endif 
    946945END MODULE dynadv_tam 
Note: See TracChangeset for help on using the changeset viewer.