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 @ 15084

Last change on this file since 15084 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
RevLine 
[2409]1MODULE c1d
2   !!======================================================================
3   !!                     ***  MODULE  c1d  ***
4   !! Ocean domain  :  1D configuration
5   !!=====================================================================
[6140]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
[2409]9   !!----------------------------------------------------------------------
[15023]10
[4245]11   !!----------------------------------------------------------------------
[6140]12   !!   c1d_init      : read in the C1D namelist
[4245]13   !!----------------------------------------------------------------------
[6140]14   USE par_kind       ! kind parameters
15   !
16   USE in_out_manager ! I/O manager
17   USE lib_mpp        ! MPP library
[2409]18
19   IMPLICIT NONE
20   PRIVATE
21
[6140]22   PUBLIC   c1d_init   ! called by nemogcm.F90
[2409]23
[6140]24   REAL(wp), PUBLIC ::  rn_lat1d     !: Column latitude
25   REAL(wp), PUBLIC ::  rn_lon1d     !: Column longitude
[4245]26
[2409]27   !!----------------------------------------------------------------------
[10068]28   !! NEMO/OCE 4.0 , NEMO Consortium (2018)
[5215]29   !! $Id$
[10068]30   !! Software governed by the CeCILL license (see ./LICENSE)
[2409]31   !!======================================================================
[4245]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      !!----------------------------------------------------------------------
[6140]42      INTEGER ::   ios   ! Local integer
43      !!
[15023]44      NAMELIST/namc1d/ rn_lat1d, rn_lon1d
[4245]45      !!----------------------------------------------------------------------
46      !
47      READ  ( numnam_ref, namc1d, IOSTAT = ios, ERR = 901)
[11536]48901   IF( ios /= 0 )   CALL ctl_nam ( ios , 'namc1d in reference namelist' )
[6140]49      !
[4245]50      READ  ( numnam_cfg, namc1d, IOSTAT = ios, ERR = 902 )
[11536]51902   IF( ios >  0 )   CALL ctl_nam ( ios , 'namc1d in configuration namelist' )
[4624]52      IF(lwm) WRITE ( numond, namc1d )
[4245]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'
[4667]59         WRITE(numout,*) '      column latitude                 rn_lat1d     = ', rn_lat1d
60         WRITE(numout,*) '      column longitude                rn_lon1d     = ', rn_lon1d
[4245]61      ENDIF
62      !
63   END SUBROUTINE c1d_init
64
65   !!======================================================================
[2409]66END MODULE c1d
Note: See TracBrowser for help on using the repository browser.