New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
trcstp.F90 in trunk/NEMO/TOP_SRC/TRP – NEMO

source: trunk/NEMO/TOP_SRC/TRP/trcstp.F90 @ 1175

Last change on this file since 1175 was 1175, checked in by cetlod, 16 years ago

update transport modules to take into account new trends organization, see ticket:248

  • Property svn:executable set to *
  • Property svn:keywords set to Id
File size: 3.3 KB
Line 
1MODULE trcstp
2   !!======================================================================
3   !!                       ***  MODULE trcstp  ***
4   !! Time-stepping    : time loop of opa for passive tracer
5   !!======================================================================
6#if defined key_top
7   !!----------------------------------------------------------------------
8   !!   trc_stp      : passive tracer system time-stepping
9   !!----------------------------------------------------------------------
10   !! * Modules used
11   USE oce_trc          ! ocean dynamics and active tracers variables
12   USE trp_trc
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 trcrst
18   USE trdmld_trc_oce
19   USE trdmld_trc
20   USE trdmld_trc_rst
21
22   IMPLICIT NONE
23   PRIVATE
24
25   !! * Routine accessibility
26   PUBLIC trc_stp           ! called by step
27   !!----------------------------------------------------------------------
28   !!   TOP 1.0 , LOCEAN-IPSL (2005)
29   !! $Id$
30   !! This software is governed by the CeCILL licence see modipsl/doc/NEMO_CeCILL.txt
31   !!----------------------------------------------------------------------
32
33CONTAINS
34
35   SUBROUTINE trc_stp( kt, kindic )
36      !!-------------------------------------------------------------------
37      !!                     ***  ROUTINE trc_stp  ***
38      !!                     
39      !! ** Purpose : Time loop of opa for passive tracer
40      !!
41      !! ** Method  :
42      !!              Compute the passive tracers trends
43      !!              Update the passive tracers
44      !!
45      !! History :
46      !!   9.0  !  04-03  (C. Ethe)  Original
47      !!-------------------------------------------------------------------
48      !! * Arguments
49      INTEGER, INTENT( in ) ::  kt  ! ocean time-step index
50      INTEGER, INTENT( in ) ::  kindic
51      CHARACTER (len=25)    ::  charout
52
53      ! this ROUTINE is called only every ndttrc time step
54      IF( MOD( kt , ndttrc ) /= 0 ) RETURN
55
56      IF(ln_ctl) THEN
57         WRITE(charout,FMT="('kt =', I4,'  d/m/y =',I2,I2,I4)") kt, nday, nmonth, nyear
58         CALL prt_ctl_trc_info(charout)
59      ENDIF
60
61                             CALL trc_rst_opn( kt )       ! Open tracer restart file
62
63                             CALL trd_mld_trc_rst_opn( kt ) ! Open restart file for trends
64
65                             CALL trc_sms( kt )           ! tracers: sink and source
66
67                             CALL trc_trp( kt )           ! transport of passive tracers
68
69      IF( lrst_trc )         CALL trc_rst_wri( kt )       ! write tracer restart file
70
71                             CALL trc_dia( kt, kindic )   ! diagnostics
72
73      IF( lk_trdmld_trc  )   CALL trd_mld_trc( kt )     ! trends: Mixed-layer
74
75   END SUBROUTINE trc_stp
76
77#else
78   !!----------------------------------------------------------------------
79   !!   Default key                                     NO passive tracers
80   !!----------------------------------------------------------------------
81CONTAINS
82   SUBROUTINE trc_stp( kt )        ! Empty routine
83      INTEGER, INTENT(in) :: kt
84      WRITE(*,*) 'trc_stp: You should not have seen this print! error?', kt
85   END SUBROUTINE trc_stp
86#endif
87
88   !!======================================================================
89END MODULE trcstp
Note: See TracBrowser for help on using the repository browser.