1 | MODULE p2zsms |
---|
2 | !!====================================================================== |
---|
3 | !! *** MODULE p2zsms *** |
---|
4 | !! TOP : Time loop of LOBSTER model |
---|
5 | !!====================================================================== |
---|
6 | !! History : 1.0 ! M. Levy |
---|
7 | !! 2.0 ! 2007-12 (C. Ethe, G. Madec) revised architecture |
---|
8 | !!---------------------------------------------------------------------- |
---|
9 | #if defined key_pisces_reduced |
---|
10 | !!---------------------------------------------------------------------- |
---|
11 | !! 'key_pisces_reduced' LOBSTER bio-model |
---|
12 | !!---------------------------------------------------------------------- |
---|
13 | !! p2zsms : Time loop of passive tracers sms |
---|
14 | !!---------------------------------------------------------------------- |
---|
15 | USE oce_trc ! |
---|
16 | USE trc |
---|
17 | USE p2zbio |
---|
18 | USE p2zopt |
---|
19 | USE p2zsed |
---|
20 | USE p2zexp |
---|
21 | USE trdmod_oce |
---|
22 | USE trdmod_trc_oce |
---|
23 | USE trdmod_trc |
---|
24 | USE trdmld_trc |
---|
25 | |
---|
26 | IMPLICIT NONE |
---|
27 | PRIVATE |
---|
28 | |
---|
29 | PUBLIC p2z_sms ! called in p2zsms.F90 |
---|
30 | |
---|
31 | !!---------------------------------------------------------------------- |
---|
32 | !! NEMO/TOP 3.3 , NEMO Consortium (2010) |
---|
33 | !! $Id: p2zsms.F90 3294 2012-01-28 16:44:18Z rblod $ |
---|
34 | !! Software governed by the CeCILL licence (NEMOGCM/NEMO_CeCILL.txt) |
---|
35 | !!---------------------------------------------------------------------- |
---|
36 | CONTAINS |
---|
37 | |
---|
38 | SUBROUTINE p2z_sms( kt ) |
---|
39 | !!--------------------------------------------------------------------- |
---|
40 | !! *** ROUTINE p2z_sms *** |
---|
41 | !! |
---|
42 | !! ** Purpose : Managment of the call to Biological sources and sinks |
---|
43 | !! routines of LOBSTER bio-model |
---|
44 | !! |
---|
45 | !! ** Method : - ??? |
---|
46 | !! -------------------------------------------------------------------- |
---|
47 | !! |
---|
48 | INTEGER, INTENT( in ) :: kt ! ocean time-step index |
---|
49 | ! |
---|
50 | INTEGER :: jn |
---|
51 | !! -------------------------------------------------------------------- |
---|
52 | ! |
---|
53 | IF( nn_timing == 1 ) CALL timing_start('p2z_sms') |
---|
54 | ! |
---|
55 | CALL p2z_opt( kt ) ! optical model |
---|
56 | CALL p2z_bio( kt ) ! biological model |
---|
57 | CALL p2z_sed( kt ) ! sedimentation model |
---|
58 | CALL p2z_exp( kt ) ! export |
---|
59 | |
---|
60 | IF( l_trdtrc ) THEN |
---|
61 | DO jn = jp_pcs0, jp_pcs1 |
---|
62 | CALL trd_mod_trc( tra(:,:,:,jn), jn, jptra_trd_sms, kt ) ! save trends |
---|
63 | END DO |
---|
64 | END IF |
---|
65 | |
---|
66 | IF( lk_trdmld_trc ) CALL trd_mld_bio( kt ) ! trends: Mixed-layer |
---|
67 | ! |
---|
68 | IF( nn_timing == 1 ) CALL timing_stop('p2z_sms') |
---|
69 | ! |
---|
70 | END SUBROUTINE p2z_sms |
---|
71 | |
---|
72 | #else |
---|
73 | !!====================================================================== |
---|
74 | !! Dummy module : No passive tracer |
---|
75 | !!====================================================================== |
---|
76 | CONTAINS |
---|
77 | SUBROUTINE p2z_sms( kt ) ! Empty routine |
---|
78 | INTEGER, INTENT( in ) :: kt |
---|
79 | WRITE(*,*) 'p2z_sms: You should not have seen this print! error?', kt |
---|
80 | END SUBROUTINE p2z_sms |
---|
81 | #endif |
---|
82 | |
---|
83 | !!====================================================================== |
---|
84 | END MODULE p2zsms |
---|