Changeset 3294 for trunk/NEMOGCM/NEMO/TOP_SRC/TRP/trcbbl.F90
- Timestamp:
- 2012-01-28T17:44:18+01:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/NEMOGCM/NEMO/TOP_SRC/TRP/trcbbl.F90
r2528 r3294 53 53 INTEGER, INTENT( in ) :: kt ! ocean time-step 54 54 CHARACTER (len=22) :: charout 55 REAL(wp), DIMENSION(:,:,:,:), ALLOCATABLE:: ztrtrd55 REAL(wp), POINTER, DIMENSION(:,:,:,:) :: ztrtrd 56 56 !!---------------------------------------------------------------------- 57 58 IF( .NOT. lk_offline ) THEN 59 CALL bbl( kt, 'TRC' ) ! Online coupling with dynamics : Computation of bbl coef and bbl transport 60 l_bbl = .FALSE. ! Offline coupling with dynamics : Read bbl coef and bbl transport from input files 57 ! 58 IF( nn_timing == 1 ) CALL timing_start('trc_bbl') 59 ! 60 IF( .NOT. lk_offline .AND. nn_dttrc == 1 ) THEN 61 CALL bbl( kt, nittrc000, 'TRC' ) ! Online coupling with dynamics : Computation of bbl coef and bbl transport 62 l_bbl = .FALSE. ! Offline coupling with dynamics : Read bbl coef and bbl transport from input files 61 63 ENDIF 62 64 63 65 IF( l_trdtrc ) THEN 64 ALLOCATE( ztrtrd(jpi,jpj,jpk,jptra) )! temporary save of trends66 CALL wrk_alloc( jpi, jpj, jpk, jptra, ztrtrd ) ! temporary save of trends 65 67 ztrtrd(:,:,:,:) = tra(:,:,:,:) 66 68 ENDIF … … 93 95 CALL trd_tra( kt, 'TRC', jn, jptra_trd_ldf, ztrtrd(:,:,:,jn) ) 94 96 END DO 95 DEALLOCATE( ztrtrd )97 CALL wrk_dealloc( jpi, jpj, jpk, jptra, ztrtrd ) ! temporary save of trends 96 98 ENDIF 99 ! 100 IF( nn_timing == 1 ) CALL timing_stop('trc_bbl') 97 101 ! 98 102 END SUBROUTINE trc_bbl
Note: See TracChangeset
for help on using the changeset viewer.