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