Changeset 2587 for branches/TAM_V3_0/NEMOTAM/OPATAM_SRC/TRA/trasbc_tam.F90
- Timestamp:
- 2011-02-15T12:58:59+01:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/TAM_V3_0/NEMOTAM/OPATAM_SRC/TRA/trasbc_tam.F90
r1885 r2587 96 96 PUBLIC tra_sbc_adj ! routine called by step_tam.F90 97 97 PUBLIC tra_sbc_adj_tst ! routine called by tst.F90 98 #if defined key_tst_tlm 98 99 PUBLIC tra_sbc_tlm_tst ! routine calle by tamtst.F90 100 #endif 99 101 100 102 !! * Substitutions … … 579 581 END SUBROUTINE tra_sbc_adj_tst 580 582 581 583 #if defined key_tst_tlm 582 584 SUBROUTINE tra_sbc_tlm_tst ( kumadt ) 583 585 !!----------------------------------------------------------------------- … … 612 614 USE tamtrj ! writing out state trajectory 613 615 USE par_tlm, ONLY: & 616 & tlm_bch, & 614 617 & cur_loop, & 615 618 & h_ratio … … 676 679 & zgsp7 677 680 CHARACTER (LEN=14) :: cl_name 678 CHARACTER (LEN=128) :: file_out, file_wop 681 CHARACTER (LEN=128) :: file_out, file_wop, file_xdx 679 682 CHARACTER (LEN=90) :: FMT 680 683 REAL(KIND=wp), DIMENSION(100):: & … … 731 734 ! Output filename Xn=F(X0) 732 735 !-------------------------------------------------------------------- 733 file_wop='trj_wop_trasbc'734 736 CALL tlm_namrd 735 737 gamma = h_ratio 738 file_wop='trj_wop_trasbc' 739 file_xdx='trj_xdx_trasbc' 736 740 !-------------------------------------------------------------------- 737 741 ! Initialize the tangent input with random noise: dx … … 778 782 ! Complete Init for Direct 779 783 !------------------------------------------------------------------- 780 CALL istate_p784 IF ( tlm_bch /= 2 ) CALL istate_p 781 785 782 786 ! *** initialize the reference trajectory … … 804 808 ! Compute the direct model F(X0,t=n) = Xn 805 809 !-------------------------------------------------------------------- 806 CALL tra_sbc(nit000) 807 808 IF ( cur_loop .EQ. 0) CALL trj_wri_spl(file_wop) 809 810 IF ( tlm_bch /= 2 ) CALL tra_sbc(nit000) 811 IF ( tlm_bch == 0 ) CALL trj_wri_spl(file_wop) 812 IF ( tlm_bch == 1 ) CALL trj_wri_spl(file_xdx) 810 813 !-------------------------------------------------------------------- 811 814 ! Compute the Tangent 812 815 !-------------------------------------------------------------------- 813 IF ( cur_loop .NE. 0) THEN 814 !-------------------------------------------------------------------- 815 ! Storing data 816 !-------------------------------------------------------------------- 817 zta_out (:,:,:) = ta (:,:,:) 818 zsa_out (:,:,:) = sa (:,:,:) 819 816 IF ( tlm_bch == 2 ) THEN 820 817 !-------------------------------------------------------------------- 821 818 ! Initialize the tangent variables: dy^* = W dy … … 836 833 ! Compute the scalar product: ( L(t0,tn) gamma dx0 ) ) 837 834 !-------------------------------------------------------------------- 838 839 835 zsp2_1 = DOT_PRODUCT( ta_tl, ta_tl ) 840 836 zsp2_2 = DOT_PRODUCT( sa_tl, sa_tl ) … … 847 843 zta_wop (:,:,:) = ta (:,:,:) 848 844 zsa_wop (:,:,:) = sa (:,:,:) 845 CALL trj_rd_spl(file_xdx) 846 zta_out (:,:,:) = ta (:,:,:) 847 zsa_out (:,:,:) = sa (:,:,:) 849 848 !-------------------------------------------------------------------- 850 849 ! Compute the Linearization Error … … 981 980 !!====================================================================== 982 981 #endif 982 #endif 983 983 END MODULE trasbc_tam
Note: See TracChangeset
for help on using the changeset viewer.