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 @ 197

Last change on this file since 197 was 186, checked in by opalod, 20 years ago

CL + CE : NEMO TRC_SRC start

  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 2.4 KB
Line 
1MODULE trcstp
2   !!======================================================================
3   !!                       ***  MODULE trcstp  ***
4   !! Time-stepping    : time loop of opa for passive tracer
5   !!======================================================================
6#if defined key_passivetrc
7   !!----------------------------------------------------------------------
8   !!   trc_stp      : passive tracer system time-stepping
9   !!----------------------------------------------------------------------
10   !! * Modules used
11   !! * Modules used
12   USE oce_trc     ! ocean dynamics variables
13   USE trc         ! passive tracers variables
14   USE trctrp      ! passive tracers transport
15   IMPLICIT NONE
16   PRIVATE
17
18   !! * Routine accessibility
19   PUBLIC trc_stp           ! called by step
20   !!----------------------------------------------------------------------
21   !!   OPA 9.0 , LODYC-IPSL (2003)
22   !!----------------------------------------------------------------------
23
24CONTAINS
25
26   SUBROUTINE trc_stp( kt )
27      !!-------------------------------------------------------------------
28      !!                     ***  ROUTINE trc_stp  ***
29      !!                     
30      !! ** Purpose : Time loop of opa for passive tracer
31      !!
32      !! ** Method  :
33      !!              Compute the passive tracers trends
34      !!              Update the passive tracers
35      !!
36      !! History :
37      !!   9.0  !  04-03  (C. Ethe)  Original
38      !!-------------------------------------------------------------------
39      !! * Arguments
40      INTEGER, INTENT( in ) ::  kt  ! ocean time-step index
41
42
43      ! this ROUTINE is called only every ndttrc time step
44      IF( MOD( kt , ndttrc ) /= 0 ) RETURN
45
46      ! tracers: sink and source
47
48
49      CALL trcsms( kt )
50 
51
52      ! transport of passive tracers
53
54      CALL trc_trp( kt )
55
56
57   END SUBROUTINE trc_stp
58
59#else
60   !!----------------------------------------------------------------------
61   !!   Default key                                     No passive tracers
62   !!----------------------------------------------------------------------
63CONTAINS
64   SUBROUTINE trc_stp( kt )        ! Empty routine
65      INTEGER, INTENT(in) :: kt
66      WRITE(*,*) 'trc_stp: You should not have seen this print! error?', kt
67   END SUBROUTINE trc_stp
68#endif
69
70   !!======================================================================
71END MODULE trcstp
Note: See TracBrowser for help on using the repository browser.