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.
c1d.F90 in NEMO/trunk/src/OCE/C1D – NEMO

source: NEMO/trunk/src/OCE/C1D/c1d.F90

Last change on this file was 15023, checked in by gsamson, 3 years ago

merge ticket2680_C1D_PAPA branch back into the trunk; see ticket #2680 for details

  • Property svn:keywords set to Id
File size: 2.7 KB
Line 
1MODULE c1d
2   !!======================================================================
3   !!                     ***  MODULE  c1d  ***
4   !! Ocean domain  :  1D configuration
5   !!=====================================================================
6   !! History :  2.0  !  2004-09 (C. Ethe)     Original code
7   !!            3.0  !  2008-04 (G. Madec)    adaptation to SBC
8   !!            3.5  !  2013-10 (D. Calvert)  add namelist
9   !!----------------------------------------------------------------------
10
11   !!----------------------------------------------------------------------
12   !!   c1d_init      : read in the C1D namelist
13   !!----------------------------------------------------------------------
14   USE par_kind       ! kind parameters
15   !
16   USE in_out_manager ! I/O manager
17   USE lib_mpp        ! MPP library
18
19   IMPLICIT NONE
20   PRIVATE
21
22   PUBLIC   c1d_init   ! called by nemogcm.F90
23
24   REAL(wp), PUBLIC ::  rn_lat1d     !: Column latitude
25   REAL(wp), PUBLIC ::  rn_lon1d     !: Column longitude
26
27   !!----------------------------------------------------------------------
28   !! NEMO/OCE 4.0 , NEMO Consortium (2018)
29   !! $Id$
30   !! Software governed by the CeCILL license (see ./LICENSE)
31   !!======================================================================
32CONTAINS
33
34   SUBROUTINE c1d_init
35      !!----------------------------------------------------------------------
36      !!                  ***  ROUTINE c1d_init  ***
37      !!
38      !! ** Purpose :   Initialization of C1D options
39      !!
40      !! ** Method  :   Read namelist namc1d
41      !!----------------------------------------------------------------------
42      INTEGER ::   ios   ! Local integer
43      !!
44      NAMELIST/namc1d/ rn_lat1d, rn_lon1d
45      !!----------------------------------------------------------------------
46      !
47      READ  ( numnam_ref, namc1d, IOSTAT = ios, ERR = 901)
48901   IF( ios /= 0 )   CALL ctl_nam ( ios , 'namc1d in reference namelist' )
49      !
50      READ  ( numnam_cfg, namc1d, IOSTAT = ios, ERR = 902 )
51902   IF( ios >  0 )   CALL ctl_nam ( ios , 'namc1d in configuration namelist' )
52      IF(lwm) WRITE ( numond, namc1d )
53      !
54      IF(lwp) THEN                    ! Control print
55         WRITE(numout,*)
56         WRITE(numout,*) 'c1d_init : Initialize 1D model configuration options'
57         WRITE(numout,*) '~~~~~~~~'
58         WRITE(numout,*) '   Namelist namc1d : set options for the C1D model'
59         WRITE(numout,*) '      column latitude                 rn_lat1d     = ', rn_lat1d
60         WRITE(numout,*) '      column longitude                rn_lon1d     = ', rn_lon1d
61      ENDIF
62      !
63   END SUBROUTINE c1d_init
64
65   !!======================================================================
66END MODULE c1d
Note: See TracBrowser for help on using the repository browser.