[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 | !!---------------------------------------------------------------------- |
---|
[32] | 27 | LOGICAL, PUBLIC, PARAMETER :: lk_obc = .TRUE. !: Ocean Boundary Condition flag |
---|
[3] | 28 | |
---|
| 29 | # if defined key_eel_r5 |
---|
| 30 | !!---------------------------------------------------------------------- |
---|
| 31 | !! 'key_eel_r5' : EEL R5 configuration |
---|
| 32 | !!---------------------------------------------------------------------- |
---|
| 33 | # include "obc_par_EEL_R5.h90" |
---|
| 34 | |
---|
[1647] | 35 | # elif defined key_pomme_r025 |
---|
| 36 | !!---------------------------------------------------------------------- |
---|
| 37 | !! 'key_pomme_r025' : POMME R025 configuration |
---|
| 38 | !!---------------------------------------------------------------------- |
---|
| 39 | # include "obc_par_POMME_R025.h90" |
---|
| 40 | |
---|
[3] | 41 | # else |
---|
| 42 | !!--------------------------------------------------------------------- |
---|
| 43 | !! open boundary parameter |
---|
| 44 | !!--------------------------------------------------------------------- |
---|
[353] | 45 | INTEGER, PARAMETER :: & !: time dimension of the BCS fields on input |
---|
| 46 | jptobc = 2 |
---|
[3] | 47 | !! * EAST open boundary |
---|
[32] | 48 | LOGICAL, PARAMETER :: & !: |
---|
[78] | 49 | lp_obc_east = .FALSE. !: to active or not the East open boundary |
---|
[32] | 50 | INTEGER, PARAMETER :: & !: |
---|
| 51 | jpieob = jpiglo-2, & !: i-localization of the East open boundary (must be ocean U-point) |
---|
| 52 | jpjed = 2, & !: j-starting indice of the East open boundary (must be land T-point) |
---|
| 53 | jpjef = jpjglo-1, & !: j-ending indice of the East open boundary (must be land T-point) |
---|
| 54 | jpjedp1 = jpjed+1, & !: first ocean point " " |
---|
| 55 | jpjefm1 = jpjef-1 !: last ocean point " " |
---|
[3] | 56 | |
---|
| 57 | !! * WEST open boundary |
---|
[32] | 58 | LOGICAL, PARAMETER :: & !: |
---|
[78] | 59 | lp_obc_west = .FALSE. !: to active or not the West open boundary |
---|
[32] | 60 | INTEGER, PARAMETER :: & !: |
---|
| 61 | jpiwob = 2, & !: i-localization of the West open boundary (must be ocean U-point) |
---|
| 62 | jpjwd = 2, & !: j-starting indice of the West open boundary (must be land T-point) |
---|
| 63 | jpjwf = jpjglo-1, & !: j-ending indice of the West open boundary (must be land T-point) |
---|
| 64 | jpjwdp1 = jpjwd+1, & !: first ocean point " " |
---|
| 65 | jpjwfm1 = jpjwf-1 !: last ocean point " " |
---|
[3] | 66 | |
---|
| 67 | !! * NORTH open boundary |
---|
[32] | 68 | LOGICAL, PARAMETER :: & !: |
---|
[78] | 69 | lp_obc_north = .FALSE. !: to active or not the North open boundary |
---|
[32] | 70 | INTEGER, PARAMETER :: & !: |
---|
| 71 | jpjnob = jpjglo-2, & !: j-localization of the North open boundary (must be ocean V-point) |
---|
| 72 | jpind = 2, & !: i-starting indice of the North open boundary (must be land T-point) |
---|
| 73 | jpinf = jpiglo-1, & !: i-ending indice of the North open boundary (must be land T-point) |
---|
| 74 | jpindp1 = jpind+1, & !: first ocean point " " |
---|
| 75 | jpinfm1 = jpinf-1 !: last ocean point " " |
---|
[3] | 76 | |
---|
| 77 | !! * SOUTH open boundary |
---|
[32] | 78 | LOGICAL, PARAMETER :: & !: |
---|
[78] | 79 | lp_obc_south = .FALSE. !: to active or not the South open boundary |
---|
[32] | 80 | INTEGER, PARAMETER :: & !: |
---|
| 81 | jpjsob = 2, & !: j-localization of the South open boundary (must be ocean V-point) |
---|
| 82 | jpisd = 2, & !: i-starting indice of the South open boundary (must be land T-point) |
---|
| 83 | jpisf = jpiglo-1, & !: i-ending indice of the South open boundary (must be land T-point) |
---|
| 84 | jpisdp1 = jpisd+1, & !: first ocean point " " |
---|
| 85 | jpisfm1 = jpisf-1 !: last ocean point " " |
---|
[3] | 86 | |
---|
[32] | 87 | INTEGER, PARAMETER :: & !: |
---|
| 88 | jpnic = 2700 !: maximum number of isolated coastlines points |
---|
[3] | 89 | |
---|
| 90 | # endif |
---|
| 91 | |
---|
| 92 | #else |
---|
| 93 | !!---------------------------------------------------------------------- |
---|
| 94 | !! Default option : NO open boundary condition |
---|
| 95 | !!---------------------------------------------------------------------- |
---|
[32] | 96 | LOGICAL, PUBLIC, PARAMETER :: lk_obc = .FALSE. !: Ocean Boundary Condition flag |
---|
[3] | 97 | #endif |
---|
| 98 | |
---|
| 99 | !!====================================================================== |
---|
| 100 | END MODULE obc_par |
---|