1 | MODULE trcsms |
---|
2 | !!====================================================================== |
---|
3 | !! *** MODULE trcsms *** |
---|
4 | !! TOP : Time loop of passive tracers sms |
---|
5 | !!====================================================================== |
---|
6 | !! History : 1.0 ! 2005-03 (O. Aumont, A. El Moussaoui) F90 |
---|
7 | !! 2.0 ! 2007-12 (C. Ethe, G. Madec) revised architecture |
---|
8 | !!---------------------------------------------------------------------- |
---|
9 | #if defined key_top |
---|
10 | !!---------------------------------------------------------------------- |
---|
11 | !! 'key_top' TOP models |
---|
12 | !!---------------------------------------------------------------------- |
---|
13 | !! trc_sms : Time loop of passive tracers sms |
---|
14 | !!---------------------------------------------------------------------- |
---|
15 | USE oce_trc ! |
---|
16 | USE trc ! |
---|
17 | USE trcsms_pisces ! PISCES biogeo-model |
---|
18 | USE trcsms_cfc ! CFC 11 &/or 12 |
---|
19 | USE trcsms_c14 ! C14 |
---|
20 | USE trcsms_age ! AGE |
---|
21 | USE trcsms_my_trc ! MY_TRC tracers |
---|
22 | USE prtctl_trc ! Print control for debbuging |
---|
23 | |
---|
24 | IMPLICIT NONE |
---|
25 | PRIVATE |
---|
26 | |
---|
27 | PUBLIC trc_sms ! called in trcstp.F90 |
---|
28 | |
---|
29 | !!---------------------------------------------------------------------- |
---|
30 | !! NEMO/TOP 4.0 , NEMO Consortium (2018) |
---|
31 | !! $Id$ |
---|
32 | !! Software governed by the CeCILL license (see ./LICENSE) |
---|
33 | !!---------------------------------------------------------------------- |
---|
34 | CONTAINS |
---|
35 | |
---|
36 | SUBROUTINE trc_sms( kt ) |
---|
37 | !!--------------------------------------------------------------------- |
---|
38 | !! *** ROUTINE trc_sms *** |
---|
39 | !! |
---|
40 | !! ** Purpose : Managment of the time loop of passive tracers sms |
---|
41 | !! |
---|
42 | !! ** Method : - call the main routine of of each defined tracer model |
---|
43 | !! ------------------------------------------------------------------------------------- |
---|
44 | INTEGER, INTENT( in ) :: kt ! ocean time-step index |
---|
45 | !! |
---|
46 | CHARACTER (len=25) :: charout |
---|
47 | !!--------------------------------------------------------------------- |
---|
48 | ! |
---|
49 | IF( ln_timing ) CALL timing_start('trc_sms') |
---|
50 | ! |
---|
51 | IF( ln_pisces ) CALL trc_sms_pisces ( kt ) ! main program of PISCES |
---|
52 | IF( ll_cfc ) CALL trc_sms_cfc ( kt ) ! surface fluxes of CFC |
---|
53 | IF( ln_c14 ) CALL trc_sms_c14 ( kt ) ! surface fluxes of C14 |
---|
54 | IF( ln_age ) CALL trc_sms_age ( kt ) ! Age tracer |
---|
55 | IF( ln_my_trc ) CALL trc_sms_my_trc ( kt ) ! MY_TRC tracers |
---|
56 | |
---|
57 | IF(ln_ctl) THEN ! print mean trends (used for debugging) |
---|
58 | WRITE(charout, FMT="('sms ')") |
---|
59 | CALL prt_ctl_trc_info( charout ) |
---|
60 | CALL prt_ctl_trc( tab4d=trn, mask=tmask, clinfo=ctrcnm ) |
---|
61 | ENDIF |
---|
62 | ! |
---|
63 | IF( ln_timing ) CALL timing_stop('trc_sms') |
---|
64 | ! |
---|
65 | END SUBROUTINE trc_sms |
---|
66 | |
---|
67 | #else |
---|
68 | !!====================================================================== |
---|
69 | !! Dummy module : No passive tracer |
---|
70 | !!====================================================================== |
---|
71 | CONTAINS |
---|
72 | SUBROUTINE trc_sms( kt ) ! Empty routine |
---|
73 | INTEGER, INTENT( in ) :: kt |
---|
74 | WRITE(*,*) 'trc_sms: You should not have seen this print! error?', kt |
---|
75 | END SUBROUTINE trc_sms |
---|
76 | #endif |
---|
77 | |
---|
78 | !!====================================================================== |
---|
79 | END MODULE trcsms |
---|