Changeset 335 for trunk/NEMO/TOP_SRC/initrc.F90
- Timestamp:
- 2005-11-14T13:08:42+01:00 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/NEMO/TOP_SRC/initrc.F90
r274 r335 1 1 MODULE initrc 2 !!================================================ ===========================================2 !!================================================ 3 3 !! 4 4 !! *** MODULE initrc *** 5 5 !! Initialisation the tracer model 6 !!=========================================================================================== 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 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 6 !!================================================ 33 7 34 8 #if defined key_passivetrc 35 9 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 !!---------------------------------------------------------------------- 10 !!------------------------------------------------------- 11 !! TOP 1.0, LOCEAN-IPSL (2005) 12 !!------------------------------------------------------- 56 13 57 !!--------------------------------------------------------------------- 58 !! OPA.9, 03-2005 59 !!--------------------------------------------------------------------- 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 !!---------------------------------------------------------------------- 60 54 61 !! 0.b PRINT the number of tracer 62 !! ------------------------------ 55 !!--------------------------------------------------------------------- 56 !! OPA.9, 03-2005 57 !!--------------------------------------------------------------------- 58 59 !! 0.b PRINT the number of tracer 60 !! ------------------------------ 63 61 64 62 IF(lwp) WRITE(numout,*) ' ' … … 66 64 IF(lwp) WRITE(numout,*) ' ' 67 65 68 ! 1. READ passive tracers namelists69 ! ---------------------------------66 ! 1. READ passive tracers namelists 67 ! --------------------------------- 70 68 71 69 CALL trc_lec 72 70 73 ! 2. control consistency between parameters, cpp key and namelists74 ! ----------------------------------------------------------------71 ! 2. control consistency between parameters, cpp key and namelists 72 ! ---------------------------------------------------------------- 75 73 76 74 CALL trc_ctl 77 75 78 ! 3. computes some initializations79 ! --------------------------------76 ! 3. computes some initializations 77 ! -------------------------------- 80 78 81 79 CALL trc_ini 82 80 83 ! 4. restart from a FILE (nutrst)84 ! ----------------------81 ! 4. restart from a FILE (nutrst) 82 ! ---------------------- 85 83 86 IF( lrsttr) THEN84 IF( lrsttr ) THEN 87 85 88 CALL trc_rst 86 87 CALL trc_rst 89 88 90 89 ELSE 91 90 92 ! start from anything ELSE91 ! start from anything ELSE 93 92 94 93 CALL trc_dtr 95 94 96 95 ENDIF 97 96 98 END SUBROUTINE ini_trc97 END SUBROUTINE ini_trc 99 98 100 99 #else 101 SUBROUTINE ini_trc 102 ! no passive tracers 103 END SUBROUTINE ini_trc 100 !!====================================================================== 101 !! Empty module : No passive tracer 102 !!====================================================================== 103 CONTAINS 104 SUBROUTINE ini_trc 105 106 END SUBROUTINE ini_trc 104 107 #endif 105 108
Note: See TracChangeset
for help on using the changeset viewer.