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.
usrdef_nam.F90 in NEMO/branches/2020/dev_r12563_ASINTER-06_ABL_improvement/tests/STATION_ASF/MY_SRC – NEMO

source: NEMO/branches/2020/dev_r12563_ASINTER-06_ABL_improvement/tests/STATION_ASF/MY_SRC/usrdef_nam.F90 @ 13159

Last change on this file since 13159 was 12249, checked in by laurent, 4 years ago

Made STATION_ASF testcase fully compliant with new timestepping scheme.

File size: 4.3 KB
Line 
1MODULE usrdef_nam
2   !!======================================================================
3   !!                     ***  MODULE usrdef_nam   ***
4   !!
5   !!                     ===  STATION_ASF configuration  ===
6   !!
7   !! User defined : set the domain characteristics of a user configuration
8   !!======================================================================
9   !! History :  4.0  ! 2016-03  (S. Flavoni, G. Madec)  Original code
10   !! History :  4.x  ! 2019-10  (L. Brodeau) for STATION_ASF (C1D meets SAS)
11   !!----------------------------------------------------------------------
12
13   !!----------------------------------------------------------------------
14   !!   usr_def_nam   : read user defined namelist and set global domain size
15   !!   usr_def_hgr   : initialize the horizontal mesh
16   !!----------------------------------------------------------------------
17   USE dom_oce  , ONLY: nimpp, njmpp             ! ocean space and time domain
18   USE dom_oce  , ONLY: ln_zco, ln_zps, ln_sco   ! flag of type of coordinate
19   USE par_oce        ! ocean space and time domain
20   USE phycst         ! physical constants
21   !
22   USE in_out_manager ! I/O manager
23   USE lib_mpp        ! MPP library
24   
25   IMPLICIT NONE
26   PRIVATE
27
28   PUBLIC   usr_def_nam   ! called in nemogcm.F90 module
29
30   !                              !!* namusr_def namelist *!!
31   REAL(wp), PUBLIC::   rn_dept1   ! Depth (m) at which the SST is taken/measured == depth of first T point!
32
33   !!----------------------------------------------------------------------
34   !! NEMO/OCE 4.0 , NEMO Consortium (2018)
35   !! $Id: usrdef_nam.F90 11536 2019-09-11 13:54:18Z smasson $
36   !! Software governed by the CeCILL license (see ./LICENSE)
37   !!----------------------------------------------------------------------
38CONTAINS
39
40   SUBROUTINE usr_def_nam( cd_cfg, kk_cfg, kpi, kpj, kpk, kperio )
41      !!----------------------------------------------------------------------
42      !!                     ***  ROUTINE dom_nam  ***
43      !!                   
44      !! ** Purpose :   read user defined namelist and define the domain size
45      !!
46      !! ** Method  :   read in namusr_def containing all the user specific namelist parameter
47      !!
48      !!                Here STATION_ASF configuration
49      !!
50      !! ** input   : - namusr_def namelist found in namelist_cfg
51      !!----------------------------------------------------------------------
52      CHARACTER(len=*), INTENT(out) ::   cd_cfg          ! configuration name
53      INTEGER         , INTENT(out) ::   kk_cfg          ! configuration resolution
54      INTEGER         , INTENT(out) ::   kpi, kpj, kpk   ! global domain sizes
55      INTEGER         , INTENT(out) ::   kperio          ! lateral global domain b.c.
56      !
57      INTEGER ::   ios   ! Local integer
58      !!
59      NAMELIST/namusr_def/ rn_dept1
60      !!----------------------------------------------------------------------
61      !
62      READ  ( numnam_cfg, namusr_def, IOSTAT = ios, ERR = 902 )
63902   IF( ios /= 0 )   CALL ctl_nam ( ios , 'namusr_def in configuration namelist' )
64      !
65      IF(lwm)   WRITE( numond, namusr_def )
66      !
67      cd_cfg = 'STATION_ASF'               ! name & resolution (not used)
68      kk_cfg = 0
69
70      ! Global Domain size: STATION_ASF domain is 3 x 3 grid-points x 75 or vertical levels
71      kpi = 3
72      kpj = 3
73      kpk = 1
74      !
75      !                             ! Set the lateral boundary condition of the global domain
76      kperio =  7                   ! C1D configuration : 3x3 basin with cyclic Est-West and Norht-South condition
77      !
78      !                             ! control print
79      IF(lwp) THEN
80         WRITE(numout,*) '   '
81         WRITE(numout,*) 'usr_def_nam  : read the user defined namelist (namusr_def) in namelist_cfg'
82         WRITE(numout,*) '~~~~~~~~~~~ '
83         WRITE(numout,*) '   Namelist namusr_def : STATION_ASF case'
84         WRITE(numout,*) '         Detpth of first T-point (bulk SST): rn_dept1 = ', rn_dept1
85         WRITE(numout,*) '         jpiglo, jpjglo  = ', kpi, kpj
86         WRITE(numout,*) '      number of model levels                              kpk = ', kpk
87         WRITE(numout,*) '   '
88         WRITE(numout,*) '   Lateral b.c. of the domain set to       jperio = ', kperio
89      ENDIF
90      !
91   END SUBROUTINE usr_def_nam
92
93   !!======================================================================
94END MODULE usrdef_nam
Note: See TracBrowser for help on using the repository browser.