[5707] | 1 | MODULE trcini_idtra |
---|
| 2 | !!====================================================================== |
---|
| 3 | !! *** MODULE trcini_idtra *** |
---|
| 4 | !! TOP : initialisation of the IDEAL-TRACER tracers |
---|
| 5 | !!====================================================================== |
---|
| 6 | !! History : 2.0 ! 2007-12 (C. Ethe, G. Madec) from trcini.idtra.h90 |
---|
| 7 | !!---------------------------------------------------------------------- |
---|
| 8 | #if defined key_idtra |
---|
| 9 | !!---------------------------------------------------------------------- |
---|
| 10 | !! 'key_idtra' IDEAL-TRACER tracers |
---|
| 11 | !!---------------------------------------------------------------------- |
---|
| 12 | !! trc_ini_idtra : IDEAL-TRACER model initialisation |
---|
| 13 | !!---------------------------------------------------------------------- |
---|
| 14 | USE oce_trc ! Ocean variables |
---|
| 15 | USE par_trc ! TOP parameters |
---|
| 16 | USE trc ! TOP variables |
---|
| 17 | USE trcsms_idtra ! IDEAL-TRACER sms trends |
---|
| 18 | USE par_idtra ! IDEAL-TRACER parameters |
---|
| 19 | USE in_out_manager ! I/O manager |
---|
| 20 | USE lib_mpp |
---|
| 21 | USE iom |
---|
| 22 | |
---|
| 23 | IMPLICIT NONE |
---|
| 24 | PRIVATE |
---|
| 25 | |
---|
| 26 | PUBLIC trc_ini_idtra ! called by trcini.F90 module |
---|
| 27 | |
---|
| 28 | INTEGER :: inum ! unit number |
---|
| 29 | |
---|
| 30 | !!---------------------------------------------------------------------- |
---|
| 31 | !! NEMO/TOP 2.0 , LOCEAN-IPSL (2007) |
---|
| 32 | !! $Id: trcini_idtra.F90 1581 2009-08-05 14:53:12Z smasson $ |
---|
| 33 | !! Software governed by the CeCILL licence (modipsl/doc/NEMO_CeCILL.txt) |
---|
| 34 | !!---------------------------------------------------------------------- |
---|
| 35 | CONTAINS |
---|
| 36 | |
---|
| 37 | SUBROUTINE trc_ini_idtra |
---|
| 38 | !!---------------------------------------------------------------------- |
---|
| 39 | !! *** trc_ini_idtra *** |
---|
| 40 | !! |
---|
| 41 | !! ** Purpose : initialization for idtra model |
---|
| 42 | !! |
---|
| 43 | !! ** Method : - Read the namidtra namelist and check the parameter values |
---|
| 44 | !!---------------------------------------------------------------------- |
---|
| 45 | INTEGER :: jn, jl |
---|
| 46 | !!---------------------------------------------------------------------- |
---|
| 47 | |
---|
| 48 | |
---|
| 49 | ! Initialization of trn in case of no restart |
---|
| 50 | !---------------------------------------------- |
---|
| 51 | IF( .NOT. ln_rsttr ) THEN |
---|
| 52 | IF(lwp) THEN |
---|
| 53 | WRITE(numout,*) |
---|
| 54 | WRITE(numout,*) 'Initialization de id-tracers ; No restart : ' |
---|
| 55 | WRITE(numout,*) ' ; Init field equal 1 at surface - zero elsewhere' |
---|
| 56 | ENDIF |
---|
| 57 | DO jn = jp_idtra0, jp_idtra1 |
---|
| 58 | trn(:,:,:,jn) = 0.e0 |
---|
| 59 | trn(:,:,1,jn) = 1.0 |
---|
| 60 | IF(lwp) WRITE(numout,*) 'Idealise Tracer initialisation -- jn = ',jn |
---|
| 61 | END DO |
---|
| 62 | ENDIF |
---|
| 63 | |
---|
| 64 | |
---|
| 65 | ! Ideal traceur do not need any atmospheric concentration. |
---|
| 66 | ! We consider that sucface concentration is equal to 1, |
---|
| 67 | ! that it is advectied within the water circulation, |
---|
| 68 | ! and that it is regularly degraded as if it was a radiactive tracer (tricium for example) |
---|
| 69 | ! But we can play with tha caracteristic time of |
---|
| 70 | !-------------------------------------------------------------------- |
---|
| 71 | |
---|
| 72 | |
---|
| 73 | |
---|
| 74 | IF(lwp) WRITE(numout,*) 'Initialization of IDEAL-TRACER tracers done' |
---|
| 75 | IF(lwp) WRITE(numout,*) ' ' |
---|
| 76 | |
---|
| 77 | END SUBROUTINE trc_ini_idtra |
---|
| 78 | |
---|
| 79 | #else |
---|
| 80 | !!---------------------------------------------------------------------- |
---|
| 81 | !! Dummy module No IDEAL-TRACER tracers |
---|
| 82 | !!---------------------------------------------------------------------- |
---|
| 83 | CONTAINS |
---|
| 84 | SUBROUTINE trc_ini_idtra ! Empty routine |
---|
| 85 | |
---|
| 86 | |
---|
| 87 | END SUBROUTINE trc_ini_idtra |
---|
| 88 | #endif |
---|
| 89 | |
---|
| 90 | !!====================================================================== |
---|
| 91 | END MODULE trcini_idtra |
---|
| 92 | |
---|
| 93 | |
---|
| 94 | |
---|
| 95 | |
---|