[259] | 1 | MODULE initrc |
---|
| 2 | !!=========================================================================================== |
---|
| 3 | !! |
---|
| 4 | !! *** MODULE initrc *** |
---|
| 5 | !! Initialisation the tracer model |
---|
| 6 | !!=========================================================================================== |
---|
[274] | 7 | |
---|
| 8 | !!---------------------------------------------------------------------- |
---|
| 9 | !! TOP 1.0, LOCEAN-IPSL (2005) |
---|
| 10 | !! $Header$ |
---|
| 11 | !! This software is governed by the CeCILL licence see modipsl/doc/NEMO_CeCILL.txt |
---|
| 12 | !!---------------------------------------------------------------------- |
---|
| 13 | |
---|
[259] | 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 | #if defined key_passivetrc |
---|
| 35 | |
---|
| 36 | SUBROUTINE ini_trc |
---|
| 37 | !!--------------------------------------------------------------------- |
---|
| 38 | !! |
---|
| 39 | !! ROUTINE ini_trc |
---|
| 40 | !! ****************** |
---|
| 41 | !! |
---|
| 42 | !! PURPOSE : |
---|
| 43 | !! --------- |
---|
| 44 | !! initialize the tracer model |
---|
| 45 | !! |
---|
| 46 | !! METHOD : |
---|
| 47 | !! ------- |
---|
| 48 | !! |
---|
| 49 | !! |
---|
| 50 | !! History: |
---|
| 51 | !! ------- |
---|
| 52 | !! original : 91-03 () |
---|
| 53 | !! additions : 92-01 (C. Levy) |
---|
| 54 | !! 05-03 (O. Aumont and A. El Moussaoui) F90 |
---|
| 55 | !!---------------------------------------------------------------------- |
---|
| 56 | |
---|
| 57 | !!--------------------------------------------------------------------- |
---|
| 58 | !! OPA.9, 03-2005 |
---|
| 59 | !!--------------------------------------------------------------------- |
---|
| 60 | |
---|
| 61 | !! 0.b PRINT the number of tracer |
---|
| 62 | !! ------------------------------ |
---|
| 63 | |
---|
| 64 | IF(lwp) WRITE(numout,*) ' ' |
---|
| 65 | IF(lwp) WRITE(numout,*) ' *** number of passive tracer jptra = ',jptra |
---|
| 66 | IF(lwp) WRITE(numout,*) ' ' |
---|
| 67 | |
---|
| 68 | ! 1. READ passive tracers namelists |
---|
| 69 | ! --------------------------------- |
---|
| 70 | |
---|
| 71 | CALL trc_lec |
---|
| 72 | |
---|
| 73 | ! 2. control consistency between parameters, cpp key and namelists |
---|
| 74 | ! ---------------------------------------------------------------- |
---|
| 75 | |
---|
| 76 | CALL trc_ctl |
---|
| 77 | |
---|
| 78 | ! 3. computes some initializations |
---|
| 79 | ! -------------------------------- |
---|
| 80 | |
---|
| 81 | CALL trc_ini |
---|
| 82 | |
---|
| 83 | ! 4. restart from a FILE (nutrst) |
---|
| 84 | ! ---------------------- |
---|
| 85 | |
---|
| 86 | IF(lrsttr) THEN |
---|
| 87 | |
---|
| 88 | CALL trc_rst |
---|
| 89 | |
---|
| 90 | ELSE |
---|
| 91 | |
---|
| 92 | ! start from anything ELSE |
---|
| 93 | |
---|
| 94 | CALL trc_dtr |
---|
| 95 | |
---|
| 96 | ENDIF |
---|
| 97 | |
---|
| 98 | END SUBROUTINE ini_trc |
---|
| 99 | |
---|
| 100 | #else |
---|
| 101 | SUBROUTINE ini_trc |
---|
| 102 | ! no passive tracers |
---|
| 103 | END SUBROUTINE ini_trc |
---|
| 104 | #endif |
---|
| 105 | |
---|
| 106 | END MODULE initrc |
---|