1 | MODULE initrc |
---|
2 | !!================================================ |
---|
3 | !! |
---|
4 | !! *** MODULE initrc *** |
---|
5 | !! Initialisation the tracer model |
---|
6 | !!================================================ |
---|
7 | |
---|
8 | #if defined key_passivetrc |
---|
9 | |
---|
10 | !!------------------------------------------------------- |
---|
11 | !! TOP 1.0, LOCEAN-IPSL (2005) |
---|
12 | !! $Header$ |
---|
13 | !! This software is governed by the CeCILL licence see modipsl/doc/NEMO_CeCILL.txt |
---|
14 | !!------------------------------------------------------- |
---|
15 | |
---|
16 | !!-------------------------------------------------------------- |
---|
17 | !! * Modules used |
---|
18 | !! ============== |
---|
19 | USE oce_trc |
---|
20 | USE trc |
---|
21 | USE trcrst |
---|
22 | USE trcctl |
---|
23 | USE trclec |
---|
24 | USE trcdtr |
---|
25 | USE trcini |
---|
26 | USE prtctl_trc ! Print control passive tracers (prt_ctl_trc_init routine) |
---|
27 | |
---|
28 | IMPLICIT NONE |
---|
29 | PRIVATE |
---|
30 | |
---|
31 | |
---|
32 | !! * Accessibility |
---|
33 | PUBLIC ini_trc |
---|
34 | |
---|
35 | CONTAINS |
---|
36 | |
---|
37 | SUBROUTINE ini_trc |
---|
38 | !!--------------------------------------------------------------------- |
---|
39 | !! |
---|
40 | !! ROUTINE ini_trc |
---|
41 | !! ****************** |
---|
42 | !! |
---|
43 | !! PURPOSE : |
---|
44 | !! --------- |
---|
45 | !! initialize the tracer model |
---|
46 | !! |
---|
47 | !! METHOD : |
---|
48 | !! ------- |
---|
49 | !! |
---|
50 | !! |
---|
51 | !! History: |
---|
52 | !! ------- |
---|
53 | !! original : 91-03 () |
---|
54 | !! additions : 92-01 (C. Levy) |
---|
55 | !! 05-03 (O. Aumont and A. El Moussaoui) F90 |
---|
56 | !! 05-10 (C. Ethe ) print control initialization |
---|
57 | !!---------------------------------------------------------------------- |
---|
58 | |
---|
59 | !!--------------------------------------------------------------------- |
---|
60 | !! OPA.9, 03-2005 |
---|
61 | !!--------------------------------------------------------------------- |
---|
62 | |
---|
63 | !! 0.b PRINT the number of tracer |
---|
64 | !! ------------------------------ |
---|
65 | |
---|
66 | IF(lwp) WRITE(numout,*) ' ' |
---|
67 | IF(lwp) WRITE(numout,*) ' *** number of passive tracer jptra = ',jptra |
---|
68 | IF(lwp) WRITE(numout,*) ' ' |
---|
69 | |
---|
70 | ! 1. READ passive tracers namelists |
---|
71 | ! --------------------------------- |
---|
72 | |
---|
73 | CALL trc_lec |
---|
74 | |
---|
75 | ! 2. control consistency between parameters, cpp key and namelists |
---|
76 | ! ---------------------------------------------------------------- |
---|
77 | |
---|
78 | CALL trc_ctl |
---|
79 | |
---|
80 | ! 3. computes some initializations |
---|
81 | ! -------------------------------- |
---|
82 | |
---|
83 | CALL trc_ini |
---|
84 | |
---|
85 | ! 4. restart from a FILE (nutrst) |
---|
86 | ! ---------------------- |
---|
87 | |
---|
88 | IF( lrsttr ) THEN |
---|
89 | |
---|
90 | |
---|
91 | CALL trc_rst |
---|
92 | |
---|
93 | ELSE |
---|
94 | |
---|
95 | ! start from anything ELSE |
---|
96 | |
---|
97 | CALL trc_dtr |
---|
98 | |
---|
99 | ENDIF |
---|
100 | |
---|
101 | ! 5. Print control |
---|
102 | !------------------ |
---|
103 | |
---|
104 | IF( ln_ctl ) CALL prt_ctl_trc_init |
---|
105 | |
---|
106 | END SUBROUTINE ini_trc |
---|
107 | |
---|
108 | #else |
---|
109 | !!====================================================================== |
---|
110 | !! Empty module : No passive tracer |
---|
111 | !!====================================================================== |
---|
112 | CONTAINS |
---|
113 | SUBROUTINE ini_trc |
---|
114 | |
---|
115 | END SUBROUTINE ini_trc |
---|
116 | #endif |
---|
117 | |
---|
118 | END MODULE initrc |
---|