New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
traqsr.F90 in trunk/NEMO/OFF_SRC/TRA – NEMO

source: trunk/NEMO/OFF_SRC/TRA/traqsr.F90 @ 325

Last change on this file since 325 was 325, checked in by opalod, 19 years ago

Initial revision

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 3.4 KB
Line 
1MODULE 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   !! * Modules used
12   USE in_out_manager  ! I/O manager
13
14   IMPLICIT NONE
15   PRIVATE
16
17   !! * Routine accessibility
18   PUBLIC tra_qsr_init ! routine called by opa.F90
19
20   !! * Shared module variables
21   LOGICAL, PUBLIC ::   ln_traqsr = .TRUE.   !: qsr flag (Default=T)
22
23   !! * Module variables
24   REAL(wp), PUBLIC ::  & !!! * penetrative solar radiation namelist *
25      xsi1 = 0.35_wp     ! first depth of extinction
26
27   !!----------------------------------------------------------------------
28   !!   OPA 9.0 , LODYC-IPSL (2003)
29   !!----------------------------------------------------------------------
30
31CONTAINS
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 namqsr 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/namqsr/ ln_traqsr, xsi1
57      !!----------------------------------------------------------------------
58
59      ! Read Namelist namqsr : ratio and length of penetration
60      ! --------------------
61      REWIND ( numnam )
62      READ   ( numnam, namqsr )
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 namqsr : 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 ) THEN
84         IF(lwp) WRITE(numout,cform_err)
85         IF(lwp) WRITE(numout,*) '             0<xsi1 not satisfied'
86         nstop = nstop + 1
87      ENDIF
88
89
90   END SUBROUTINE tra_qsr_init
91
92   !!======================================================================
93END MODULE traqsr
Note: See TracBrowser for help on using the repository browser.