Changeset 7646 for trunk/NEMOGCM/NEMO/OPA_SRC/TRA/tranxt.F90
- Timestamp:
- 2017-02-06T10:25:03+01:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/NEMOGCM/NEMO/OPA_SRC/TRA/tranxt.F90
r6140 r7646 37 37 USE ldftra ! lateral physics on tracers 38 38 USE ldfslp 39 USE bdy_oce ! BDY open boundary condition variables39 USE bdy_oce , ONLY: ln_bdy 40 40 USE bdytra ! open boundary condition (bdy_tra routine) 41 41 ! … … 79 79 !! - Apply lateral boundary conditions on (ta,sa) 80 80 !! at the local domain boundaries through lbc_lnk call, 81 !! at the one-way open boundaries (l k_bdy=T),81 !! at the one-way open boundaries (ln_bdy=T), 82 82 !! at the AGRIF zoom boundaries (lk_agrif=T) 83 83 !! … … 111 111 CALL lbc_lnk( tsa(:,:,:,jp_sal), 'T', 1._wp ) 112 112 ! 113 #if defined key_bdy 114 IF( lk_bdy ) CALL bdy_tra( kt ) ! BDY open boundaries 115 #endif 113 IF( ln_bdy ) CALL bdy_tra( kt ) ! BDY open boundaries 116 114 117 115 ! set time step size (Euler/Leapfrog) … … 121 119 122 120 ! trends computation initialisation 123 IF( l_trdtra ) THEN ! store now fields before applying the Asselin filter121 IF( l_trdtra ) THEN 124 122 CALL wrk_alloc( jpi, jpj, jpk, ztrdt, ztrds ) 125 ztrdt(:,:, :) = tsn(:,:,:,jp_tem)126 ztrds(:,:, :) = tsn(:,:,:,jp_sal)123 ztrdt(:,:,jk) = 0._wp 124 ztrds(:,:,jk) = 0._wp 127 125 IF( ln_traldf_iso ) THEN ! diagnose the "pure" Kz diffusive trend 128 126 CALL trd_tra( kt, 'TRA', jp_tem, jptra_zdfp, ztrdt ) 129 127 CALL trd_tra( kt, 'TRA', jp_sal, jptra_zdfp, ztrds ) 130 128 ENDIF 129 ! total trend for the non-time-filtered variables. 130 zfact = 1.0 / rdt 131 DO jk = 1, jpkm1 132 ztrdt(:,:,jk) = ( tsa(:,:,jk,jp_tem) - tsn(:,:,jk,jp_tem) ) * zfact 133 ztrds(:,:,jk) = ( tsa(:,:,jk,jp_sal) - tsn(:,:,jk,jp_sal) ) * zfact 134 END DO 135 CALL trd_tra( kt, 'TRA', jp_tem, jptra_tot, ztrdt ) 136 CALL trd_tra( kt, 'TRA', jp_sal, jptra_tot, ztrds ) 137 ! Store now fields before applying the Asselin filter 138 ! in order to calculate Asselin filter trend later. 139 ztrdt(:,:,:) = tsn(:,:,:,jp_tem) 140 ztrds(:,:,:) = tsn(:,:,:,jp_sal) 131 141 ENDIF 132 142
Note: See TracChangeset
for help on using the changeset viewer.