Changeset 2528 for trunk/NEMOGCM/NEMO/TOP_SRC/trcwri.F90
- Timestamp:
- 2010-12-27T18:33:53+01:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/NEMOGCM/NEMO/TOP_SRC/trcwri.F90
- Property svn:keywords set to Id
r1836 r2528 5 5 !!==================================================================================== 6 6 !! History : 1.0 ! 2009-05 (C. Ethe) Original code 7 !! ! 2010-03 (C. Ethe, R. Seferian ) Add the tracer transport trends8 7 !!---------------------------------------------------------------------- 9 8 #if defined key_top && defined key_iomput … … 12 11 !!---------------------------------------------------------------------- 13 12 !! trc_wri_trc : outputs of concentration fields 14 !! trc_wri_trd : outputs of transport trends15 13 !!---------------------------------------------------------------------- 16 14 USE dom_oce ! ocean space and time domain variables 17 15 USE oce_trc 18 USE trp_trc19 16 USE trc 20 USE trdmld_trc_oce, ONLY : luttrd21 17 USE iom 22 #if defined key_off_tra23 USE oce_trc24 18 USE dianam 25 #endif26 19 27 20 IMPLICIT NONE … … 32 25 !! * Substitutions 33 26 # include "top_substitute.h90" 34 !!----------------------------------------------------------------------35 !! NEMO/TOP 1.0 , LOCEAN-IPSL (2005)36 !! $Id: trcdia.F90 1450 2009-05-15 14:12:12Z cetlod $37 !! Software governed by the CeCILL licence (modipsl/doc/NEMO_CeCILL.txt)38 !!----------------------------------------------------------------------39 27 40 28 CONTAINS … … 50 38 51 39 ! 52 CALL iom_setkt ( kt + n dttrc - 1 ) ! set the passive tracer time step40 CALL iom_setkt ( kt + nn_dttrc - 1 ) ! set the passive tracer time step 53 41 CALL trc_wri_trc( kt ) ! outputs for tracer concentration 54 CALL trc_wri_trd( kt ) ! outputs for dynamical trends55 42 CALL iom_setkt ( kt ) ! set the model time step 56 43 ! … … 65 52 INTEGER, INTENT( in ) :: kt ! ocean time-step 66 53 INTEGER :: jn 67 CHARACTER (len=20) :: cltra, cltras 68 #if defined key_off_tra 54 CHARACTER (len=20) :: cltra 69 55 CHARACTER (len=40) :: clhstnam 70 56 INTEGER :: inum = 11 ! temporary logical unit 71 #endif72 57 !!--------------------------------------------------------------------- 73 58 74 #if defined key_off_tra 75 IF( kt == nittrc000 ) THEN 76 ! WRITE root name in date.file for use by postpro 77 IF(lwp) THEN 78 CALL dia_nam( clhstnam, nwritetrc,' ' ) 79 CALL ctl_opn( inum, 'date.file', 'REPLACE', 'FORMATTED', 'SEQUENTIAL', -1, numout, lwp, narea ) 80 WRITE(inum,*) clhstnam 81 CLOSE(inum) 82 ENDIF 59 IF( lk_offline .AND. kt == nit000 .AND. lwp ) THEN ! WRITE root name in date.file for use by postpro 60 CALL dia_nam( clhstnam, nn_writetrc,' ' ) 61 CALL ctl_opn( inum, 'date.file', 'REPLACE', 'FORMATTED', 'SEQUENTIAL', -1, numout, lwp, narea ) 62 WRITE(inum,*) clhstnam 63 CLOSE(inum) 83 64 ENDIF 84 #endif85 65 ! write the tracer concentrations in the file 86 66 ! --------------------------------------- … … 92 72 END SUBROUTINE trc_wri_trc 93 73 94 # if defined key_trc_diatrd95 96 SUBROUTINE trc_wri_trd( kt )97 !!----------------------------------------------------------------------98 !! *** ROUTINE trc_wri_trd ***99 !!100 !! ** Purpose : output of passive tracer : advection-diffusion trends101 !!102 !!----------------------------------------------------------------------103 INTEGER, INTENT( in ) :: kt ! ocean time-step104 !!105 CHARACTER (len=3) :: cltra106 INTEGER :: jn, jl, ikn107 !!----------------------------------------------------------------------108 109 DO jn = 1, jptra110 IF( luttrd(jn) ) THEN111 ikn = ikeep(jn)112 DO jl = 1, jpdiatrc113 IF( jl == jptrc_xad ) WRITE (cltra,"(3a)") 'XAD' ! x advection for tracer114 IF( jl == jptrc_yad ) WRITE (cltra,"(3a)") 'YAD' ! y advection for tracer115 IF( jl == jptrc_zad ) WRITE (cltra,"(3a)") 'ZAD' ! z advection for tracer116 IF( jl == jptrc_xdf ) WRITE (cltra,"(3a)") 'XDF' ! x diffusion for tracer117 IF( jl == jptrc_ydf ) WRITE (cltra,"(3a)") 'YDF' ! y diffusion for tracer118 IF( jl == jptrc_zdf ) WRITE (cltra,"(3a)") 'ZDF' ! z diffusion for tracer119 # if defined key_trcldf_eiv120 IF( jl == jptrc_xei ) WRITE (cltra,"(3a)") 'XGV' ! x gent velocity for tracer121 IF( jl == jptrc_yei ) WRITE (cltra,"(3a)") 'YGV' ! y gent velocity for tracer122 IF( jl == jptrc_zei ) WRITE (cltra,"(3a)") 'ZGV' ! z gent velocity for tracer123 # endif124 # if defined key_trcdmp125 IF( jl == jptrc_dmp ) WRITE (cltra,"(3a)") 'DMP' ! damping126 # endif127 IF( jl == jptrc_sbc ) WRITE (cltra,"(3a)") 'SBC' ! surface boundary conditions128 ! write the trends129 CALL iom_put( cltra, trtrd(:,:,:,ikn,jl) )130 END DO131 END IF132 END DO133 !134 END SUBROUTINE trc_wri_trd135 136 # else137 SUBROUTINE trc_wri_trd( kt ) ! Dummy routine138 INTEGER, INTENT ( in ) :: kt139 END SUBROUTINE trc_wri_trd140 #endif141 74 #else 142 75 !!---------------------------------------------------------------------- … … 150 83 #endif 151 84 85 !!---------------------------------------------------------------------- 86 !! NEMO/TOP 3.3 , NEMO Consortium (2010) 87 !! $Id$ 88 !! Software governed by the CeCILL licence (NEMOGCM/NEMO_CeCILL.txt) 152 89 !!====================================================================== 153 90 END MODULE trcwri
Note: See TracChangeset
for help on using the changeset viewer.