[3] | 1 | MODULE obc_par |
---|
| 2 | !!============================================================================== |
---|
| 3 | !! *** MODULE obc_par *** |
---|
| 4 | !! Open Boundary Cond. : define related parameters |
---|
| 5 | !!============================================================================== |
---|
| 6 | #if defined key_obc |
---|
| 7 | !!---------------------------------------------------------------------- |
---|
| 8 | !! 'key_obc' : Open Boundary Condition |
---|
| 9 | !!---------------------------------------------------------------------- |
---|
| 10 | !! history : |
---|
| 11 | !! 8.0 01/91 (CLIPPER) Original code |
---|
| 12 | !! 9.0 06/02 (C. Talandier) modules |
---|
[353] | 13 | !! 06/04 (F. Durand) ORCA_R2_ZIND config |
---|
| 14 | !! 06/04 (F. Durand) jptobc is defined as a parameter, |
---|
| 15 | !! in order to allow time-dependent OBCs fields on input |
---|
[3] | 16 | !!---------------------------------------------------------------------- |
---|
| 17 | !! * Modules used |
---|
| 18 | USE par_oce ! ocean parameters |
---|
| 19 | |
---|
| 20 | IMPLICIT NONE |
---|
| 21 | PUBLIC |
---|
[247] | 22 | !!---------------------------------------------------------------------- |
---|
| 23 | !! OPA 9.0 , LOCEAN-IPSL (2005) |
---|
[1152] | 24 | !! $Id$ |
---|
[247] | 25 | !! This software is governed by the CeCILL licence see modipsl/doc/NEMO_CeCILL.txt |
---|
| 26 | !!---------------------------------------------------------------------- |
---|
[2007] | 27 | #if ! defined key_agrif |
---|
| 28 | LOGICAL, PUBLIC, PARAMETER :: lk_obc = .TRUE. !: Ocean Boundary Condition flag |
---|
| 29 | #else |
---|
| 30 | LOGICAL, PUBLIC :: lk_obc = .TRUE. !: Ocean Boundary Condition flag |
---|
| 31 | #endif |
---|
[3] | 32 | |
---|
| 33 | # if defined key_eel_r5 |
---|
| 34 | !!---------------------------------------------------------------------- |
---|
| 35 | !! 'key_eel_r5' : EEL R5 configuration |
---|
| 36 | !!---------------------------------------------------------------------- |
---|
| 37 | # include "obc_par_EEL_R5.h90" |
---|
| 38 | |
---|
[1647] | 39 | # elif defined key_pomme_r025 |
---|
| 40 | !!---------------------------------------------------------------------- |
---|
| 41 | !! 'key_pomme_r025' : POMME R025 configuration |
---|
| 42 | !!---------------------------------------------------------------------- |
---|
| 43 | # include "obc_par_POMME_R025.h90" |
---|
| 44 | |
---|
[3] | 45 | # else |
---|
| 46 | !!--------------------------------------------------------------------- |
---|
| 47 | !! open boundary parameter |
---|
| 48 | !!--------------------------------------------------------------------- |
---|
[2007] | 49 | INTEGER :: & !: time dimension of the BCS fields on input |
---|
[353] | 50 | jptobc = 2 |
---|
[3] | 51 | !! * EAST open boundary |
---|
[2007] | 52 | LOGICAL :: & !: |
---|
[78] | 53 | lp_obc_east = .FALSE. !: to active or not the East open boundary |
---|
[2007] | 54 | INTEGER :: & |
---|
[32] | 55 | jpieob = jpiglo-2, & !: i-localization of the East open boundary (must be ocean U-point) |
---|
| 56 | jpjed = 2, & !: j-starting indice of the East open boundary (must be land T-point) |
---|
| 57 | jpjef = jpjglo-1, & !: j-ending indice of the East open boundary (must be land T-point) |
---|
| 58 | jpjedp1 = jpjed+1, & !: first ocean point " " |
---|
| 59 | jpjefm1 = jpjef-1 !: last ocean point " " |
---|
[3] | 60 | |
---|
| 61 | !! * WEST open boundary |
---|
[2007] | 62 | LOGICAL :: & !: |
---|
[78] | 63 | lp_obc_west = .FALSE. !: to active or not the West open boundary |
---|
[2007] | 64 | INTEGER :: & !: |
---|
[32] | 65 | jpiwob = 2, & !: i-localization of the West open boundary (must be ocean U-point) |
---|
| 66 | jpjwd = 2, & !: j-starting indice of the West open boundary (must be land T-point) |
---|
| 67 | jpjwf = jpjglo-1, & !: j-ending indice of the West open boundary (must be land T-point) |
---|
| 68 | jpjwdp1 = jpjwd+1, & !: first ocean point " " |
---|
| 69 | jpjwfm1 = jpjwf-1 !: last ocean point " " |
---|
[3] | 70 | |
---|
| 71 | !! * NORTH open boundary |
---|
[2007] | 72 | LOGICAL :: & !: |
---|
[78] | 73 | lp_obc_north = .FALSE. !: to active or not the North open boundary |
---|
[2007] | 74 | INTEGER :: & !: |
---|
[32] | 75 | jpjnob = jpjglo-2, & !: j-localization of the North open boundary (must be ocean V-point) |
---|
| 76 | jpind = 2, & !: i-starting indice of the North open boundary (must be land T-point) |
---|
| 77 | jpinf = jpiglo-1, & !: i-ending indice of the North open boundary (must be land T-point) |
---|
| 78 | jpindp1 = jpind+1, & !: first ocean point " " |
---|
| 79 | jpinfm1 = jpinf-1 !: last ocean point " " |
---|
[3] | 80 | |
---|
| 81 | !! * SOUTH open boundary |
---|
[2007] | 82 | LOGICAL :: & !: |
---|
[78] | 83 | lp_obc_south = .FALSE. !: to active or not the South open boundary |
---|
[2007] | 84 | INTEGER :: & !: |
---|
[32] | 85 | jpjsob = 2, & !: j-localization of the South open boundary (must be ocean V-point) |
---|
| 86 | jpisd = 2, & !: i-starting indice of the South open boundary (must be land T-point) |
---|
| 87 | jpisf = jpiglo-1, & !: i-ending indice of the South open boundary (must be land T-point) |
---|
| 88 | jpisdp1 = jpisd+1, & !: first ocean point " " |
---|
| 89 | jpisfm1 = jpisf-1 !: last ocean point " " |
---|
[3] | 90 | |
---|
[32] | 91 | INTEGER, PARAMETER :: & !: |
---|
| 92 | jpnic = 2700 !: maximum number of isolated coastlines points |
---|
[3] | 93 | |
---|
| 94 | # endif |
---|
| 95 | |
---|
| 96 | #else |
---|
| 97 | !!---------------------------------------------------------------------- |
---|
| 98 | !! Default option : NO open boundary condition |
---|
| 99 | !!---------------------------------------------------------------------- |
---|
[32] | 100 | LOGICAL, PUBLIC, PARAMETER :: lk_obc = .FALSE. !: Ocean Boundary Condition flag |
---|
[3] | 101 | #endif |
---|
| 102 | |
---|
| 103 | !!====================================================================== |
---|
| 104 | END MODULE obc_par |
---|