Changeset 771 for branches/dev_001_GM/NEMO/TOP_SRC/trcstp.F90
- Timestamp:
- 2007-12-17T11:51:41+01:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/dev_001_GM/NEMO/TOP_SRC/trcstp.F90
r768 r771 2 2 !!====================================================================== 3 3 !! *** MODULE trcstp *** 4 !! T ime-stepping : time loop of opa for passive tracer4 !! TOP : time stepping of TOP models (passive tracers) 5 5 !!====================================================================== 6 !! History : 1.0 ! 2004-03 (C. Ethe) Original code 7 !!---------------------------------------------------------------------- 6 8 #if defined key_passivetrc 7 9 !!---------------------------------------------------------------------- 8 !! trc_stp : passive tracer system time-stepping10 !! 'key_passivetrc' TOP models 9 11 !!---------------------------------------------------------------------- 10 !! * Modules used 11 USE oce_trc ! ocean dynamics and active tracers variables 12 USE trc ! ocean passive tracers variables 13 USE trctrp ! passive tracers transport 14 USE trcsms ! passive tracers sources and sinks 15 USE prtctl_trc ! Print control for debbuging 16 USE trcdia 17 USE trcdit 18 USE trcrst 12 !! trc_stp : passive tracer system time-stepping 13 !!---------------------------------------------------------------------- 14 USE oce_trc ! ocean dynamics and active tracers variables 15 USE trc ! ocean passive tracers variables 16 USE trctrp ! passive tracers transport 17 USE trcsms ! passive tracers sources and sinks 18 USE prtctl_trc ! Print control for debbuging 19 USE trcdia ! passive tracer diagnostics 20 USE trcdit ! ??? 21 USE trcrst ! ??? 19 22 20 23 IMPLICIT NONE 21 24 PRIVATE 22 25 23 !! * Routine accessibility24 PUBLIC trc_stp ! called by step 26 PUBLIC trc_stp ! called in step.F90 module 27 25 28 !!---------------------------------------------------------------------- 26 !! 27 !! $ Header$28 !! This software is governed by the CeCILL licence see modipsl/doc/NEMO_CeCILL.txt29 !! NEMO/TOP 1.0 , LOCEAN-IPSL (2005) 30 !! $Id$ 31 !! Software governed by the CeCILL licence (modipsl/doc/NEMO_CeCILL.txt) 29 32 !!---------------------------------------------------------------------- 30 33 … … 32 35 33 36 SUBROUTINE trc_stp( kt, kindic ) 34 !!------------------------------------------------------------------- 37 !!---------------------------------------------------------------------- 35 38 !! *** ROUTINE trc_stp *** 36 39 !! 37 !! ** Purpose : Time loop of opa forpassive tracer40 !! ** Purpose : Time loop of TOP passive tracer 38 41 !! 39 !! ** Method : 40 !! Compute the passive tracers trends 41 !! Update the passive tracers 42 !! 43 !! History : 44 !! 9.0 ! 04-03 (C. Ethe) Original 45 !!------------------------------------------------------------------- 46 !! * Arguments 47 INTEGER, INTENT( in ) :: kt ! ocean time-step index 48 INTEGER, INTENT( in ) :: kindic 42 !! ** Method : Compute the passive tracers trends 43 !! Update the passive tracers 44 !!---------------------------------------------------------------------- 45 INTEGER, INTENT( in ) :: kt ! ocean time-step index 46 INTEGER, INTENT( in ) :: kindic ! ??? 49 47 CHARACTER (len=25) :: charout 48 !!---------------------------------------------------------------------- 50 49 51 ! this ROUTINE is called only every ndttrc time step 52 IF( MOD( kt , ndttrc ) /= 0 ) RETURN 50 IF( MOD( kt, ndttrc ) /= 0 ) RETURN ! routine called only every ndttrc time step 53 51 54 CALL trc_rst_opn( kt ) ! Open tracer restart file55 56 ! tracers: sink and source57 52 IF(ln_ctl) THEN 58 53 WRITE(charout,FMT="('kt =', I4,' d/m/y =',I2,I2,I4)") kt, nday, nmonth, nyear … … 60 55 ENDIF 61 56 62 CALL trc_sms( kt )57 CALL trc_rst_opn( kt ) ! Open tracer restart file 63 58 64 IF(ln_ctl) THEN ! print mean trends (used for debugging) 65 WRITE(charout, FMT="('SMS')") 66 CALL prt_ctl_trc_info(charout) 67 CALL prt_ctl_trc(tab4d=tra, mask=tmask, clinfo=ctrcnm) 68 ENDIF 59 CALL trc_sms( kt ) ! sink and source of passive tracers 69 60 70 ! transport of passive tracers 71 CALL trc_trp( kt ) 61 CALL trc_trp( kt ) ! transport of passive tracers 72 62 73 IF(ln_ctl) THEN ! print mean trends (used for debugging) 74 WRITE(charout, FMT="('TRP')") 75 CALL prt_ctl_trc_info(charout) 76 CALL prt_ctl_trc(tab4d=tra, mask=tmask, clinfo=ctrcnm) 77 ENDIF 63 IF( lrst_trc ) CALL trc_rst_wri( kt ) ! write tracer restart file 78 64 79 IF( lrst_trc ) CALL trc_rst_wri( kt ) ! write tracer restart file 80 81 CALL trc_dia( kt, kindic ) ! diagnostics 82 83 65 CALL trc_dia( kt, kindic ) ! diagnostics 66 ! 84 67 END SUBROUTINE trc_stp 85 68 86 69 #else 87 70 !!---------------------------------------------------------------------- 88 !! D efault key NO passive tracers71 !! Dummy module No TOP models 89 72 !!---------------------------------------------------------------------- 90 73 CONTAINS
Note: See TracChangeset
for help on using the changeset viewer.