1 | MODULE traqsr |
---|
2 | !!====================================================================== |
---|
3 | !! *** MODULE traqsr *** |
---|
4 | !! Ocean physics: solar radiation penetration in the top ocean levels |
---|
5 | !!====================================================================== |
---|
6 | |
---|
7 | !!---------------------------------------------------------------------- |
---|
8 | !! tra_qsr : trend due to the solar radiation penetration |
---|
9 | !! tra_qsr_init : solar radiation penetration initialization |
---|
10 | !!---------------------------------------------------------------------- |
---|
11 | !! OPA 9.0 , LOCEAN-IPSL (2005) |
---|
12 | !! $Header$ |
---|
13 | !! This software is governed by the CeCILL licence see modipsl/doc/NEMO_CeCILL.txt |
---|
14 | !!---------------------------------------------------------------------- |
---|
15 | !! * Modules used |
---|
16 | USE in_out_manager ! I/O manager |
---|
17 | |
---|
18 | IMPLICIT NONE |
---|
19 | PRIVATE |
---|
20 | |
---|
21 | !! * Routine accessibility |
---|
22 | PUBLIC tra_qsr_init ! routine called by opa.F90 |
---|
23 | |
---|
24 | !! * Shared module variables |
---|
25 | LOGICAL, PUBLIC :: ln_traqsr = .TRUE. !: qsr flag (Default=T) |
---|
26 | |
---|
27 | !! * Module variables |
---|
28 | REAL(wp), PUBLIC :: & !!! * penetrative solar radiation namelist * |
---|
29 | xsi1 = 0.35_wp ! first depth of extinction |
---|
30 | |
---|
31 | CONTAINS |
---|
32 | |
---|
33 | SUBROUTINE tra_qsr_init |
---|
34 | !!---------------------------------------------------------------------- |
---|
35 | !! *** ROUTINE tra_qsr_init *** |
---|
36 | !! |
---|
37 | !! ** Purpose : Initialization for the penetrative solar radiation |
---|
38 | !! |
---|
39 | !! ** Method : The profile of solar radiation within the ocean is set |
---|
40 | !! from two length scale of penetration (xsr1,xsr2) and a ratio |
---|
41 | !! (rabs). These parameters are read in the nam_qsr namelist. The |
---|
42 | !! default values correspond to clear water (type I in Jerlov' |
---|
43 | !! (1968) classification. |
---|
44 | !! called by tra_qsr at the first timestep (nit000) |
---|
45 | !! |
---|
46 | !! ** Action : - initialize xsr1, xsr2 and rabs |
---|
47 | !! |
---|
48 | !! Reference : |
---|
49 | !! Jerlov, N. G., 1968 Optical Oceanography, Elsevier, 194pp. |
---|
50 | !! |
---|
51 | !! History : |
---|
52 | !! 8.5 ! 02-06 (G. Madec) Original code |
---|
53 | !!---------------------------------------------------------------------- |
---|
54 | !! * Local declarations |
---|
55 | |
---|
56 | NAMELIST/nam_qsr/ ln_traqsr, xsi1 |
---|
57 | !!---------------------------------------------------------------------- |
---|
58 | |
---|
59 | ! Read Namelist nam_qsr : ratio and length of penetration |
---|
60 | ! -------------------- |
---|
61 | REWIND ( numnam ) |
---|
62 | READ ( numnam, nam_qsr ) |
---|
63 | |
---|
64 | ! Parameter control and print |
---|
65 | ! --------------------------- |
---|
66 | IF( ln_traqsr ) THEN |
---|
67 | IF ( lwp ) THEN |
---|
68 | WRITE(numout,*) |
---|
69 | WRITE(numout,*) 'tra_qsr_init : penetration of the surface solar radiation' |
---|
70 | WRITE(numout,*) '~~~~~~~~~~~~' |
---|
71 | WRITE(numout,*) ' Namelist nam_qsr : set the parameter of penetration' |
---|
72 | WRITE(numout,*) ' first depth of extinction xsi1 = ',xsi1 |
---|
73 | WRITE(numout,*) ' ' |
---|
74 | END IF |
---|
75 | ELSE |
---|
76 | IF ( lwp ) THEN |
---|
77 | WRITE(numout,*) |
---|
78 | WRITE(numout,*) 'tra_qsr_init : NO solar flux penetration' |
---|
79 | WRITE(numout,*) '~~~~~~~~~~~~' |
---|
80 | END IF |
---|
81 | ENDIF |
---|
82 | |
---|
83 | IF( xsi1 < 0.e0 ) & |
---|
84 | CALL ctl_stop( ' 0<xsi1 not satisfied' ) |
---|
85 | |
---|
86 | |
---|
87 | END SUBROUTINE tra_qsr_init |
---|
88 | |
---|
89 | !!====================================================================== |
---|
90 | END MODULE traqsr |
---|