1 | MODULE 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 | USE oce_trc ! ocean dynamics and active tracers variables |
---|
12 | USE trc ! ocean passive tracers variables |
---|
13 | USE trctrp ! passive tracers transport |
---|
14 | |
---|
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 | |
---|
24 | CONTAINS |
---|
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 | !!---------------------------------------------------------------------- |
---|
63 | CONTAINS |
---|
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 | !!====================================================================== |
---|
71 | END MODULE trcstp |
---|