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.
ini1d.F90 in tags/nemo_v1_02/NEMO/C1D_SRC – NEMO

source: tags/nemo_v1_02/NEMO/C1D_SRC/ini1d.F90 @ 7041

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

nemo_v1_update_001 : Add the 1D configuration possibility

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.4 KB
Line 
1MODULE ini1d
2   !!======================================================================
3   !!                     ***  MODULE  ini1D  ***
4   !! Ocean state   :  1D initialization
5   !!=====================================================================
6#if defined key_cfg_1d
7   !!----------------------------------------------------------------------
8   !!   'key_cfg_1d'               1D Configuration
9   !!----------------------------------------------------------------------
10   !!   init_1d   : initial mask
11   !!----------------------------------------------------------------------
12   !! * Modules used
13   USE dom_oce         ! ocean space and time domain
14   USE phycst
15   USE in_out_manager
16
17   IMPLICIT NONE
18   PRIVATE
19
20   !! * Share Module variables
21   LOGICAL, PUBLIC, PARAMETER ::  lk_cfg_1d = .TRUE.       !: 1D flag
22
23   !! * Routine accessibility
24   PUBLIC init_1d   ! routine called by OPA.F90
25
26   !!----------------------------------------------------------------------
27   !!   OPA 9.0 , LODYC-IPSL  (2003)
28   !!----------------------------------------------------------------------
29
30CONTAINS
31
32   SUBROUTINE init_1d
33      !!----------------------------------------------------------------------
34      !!                   ***  ROUTINE init_1d  ***
35      !!
36      !! ** Purpose :   Re-Initialization of masks on 1D configuration
37      !!
38      !! ** Method  :
39      !!
40      !! History :
41      !!   9.0  !  04-09  (C. Ethe) 1D configuration
42      !!----------------------------------------------------------------------
43      !! * Local declarations
44      !!----------------------------------------------------------------------
45
46      IF(lwp) WRITE(numout,*)
47      IF(lwp) WRITE(numout,*) 'init_1d :  masks on 1D configuration'
48      IF(lwp) WRITE(numout,*) '~~~~~~~~~'
49
50      ! set umask and vmask equal tmask in 1D configuration
51      umask(:,:,:) = tmask(:,:,:)
52      vmask(:,:,:) = tmask(:,:,:)     
53
54   END SUBROUTINE init_1d
55
56#else
57   !!----------------------------------------------------------------------
58   !!   Default key                                     NO 1D Config
59   !!----------------------------------------------------------------------
60   LOGICAL , PUBLIC, PARAMETER ::   lk_cfg_1d = .FALSE.    !: internal damping flag
61CONTAINS
62   SUBROUTINE init_1d       ! Empty routine
63
64   END SUBROUTINE init_1d
65#endif
66
67   !!=====================================================================
68END MODULE ini1d
Note: See TracBrowser for help on using the repository browser.